curl --request PUT \
--url https://restapi.deepdub.ai/api/v1/issues/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"additionalComments": "Confirmed the mispronunciation reproduces with seed=42"
}
'import requests
url = "https://restapi.deepdub.ai/api/v1/issues/{id}"
payload = { "additionalComments": "Confirmed the mispronunciation reproduces with seed=42" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({additionalComments: 'Confirmed the mispronunciation reproduces with seed=42'})
};
fetch('https://restapi.deepdub.ai/api/v1/issues/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://restapi.deepdub.ai/api/v1/issues/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'additionalComments' => 'Confirmed the mispronunciation reproduces with seed=42'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://restapi.deepdub.ai/api/v1/issues/{id}"
payload := strings.NewReader("{\n \"additionalComments\": \"Confirmed the mispronunciation reproduces with seed=42\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://restapi.deepdub.ai/api/v1/issues/{id}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"additionalComments\": \"Confirmed the mispronunciation reproduces with seed=42\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://restapi.deepdub.ai/api/v1/issues/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"additionalComments\": \"Confirmed the mispronunciation reproduces with seed=42\"\n}"
response = http.request(request)
puts response.read_body{
"id": "iss_12345abcde",
"state": "open",
"rejectionReason": "duplicate report",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"generationId": "<string>",
"generatedText": "<string>",
"problemWord": "<string>",
"voicePromptId": "<string>",
"type": "hallucinations",
"locale": "en-US",
"additionalComments": "<string>",
"problemSeconds": 123,
"phoneticHeard": "<string>",
"phoneticExpected": "<string>"
}{
"message": "Invalid request body"
}{
"message": "Unauthorized"
}{
"message": "Issue not found"
}{
"message": "Failed to update issue"
}Update an issue
Update an existing issue. All fields are optional — only fields included in the body are updated.
curl --request PUT \
--url https://restapi.deepdub.ai/api/v1/issues/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"additionalComments": "Confirmed the mispronunciation reproduces with seed=42"
}
'import requests
url = "https://restapi.deepdub.ai/api/v1/issues/{id}"
payload = { "additionalComments": "Confirmed the mispronunciation reproduces with seed=42" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({additionalComments: 'Confirmed the mispronunciation reproduces with seed=42'})
};
fetch('https://restapi.deepdub.ai/api/v1/issues/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://restapi.deepdub.ai/api/v1/issues/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'additionalComments' => 'Confirmed the mispronunciation reproduces with seed=42'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://restapi.deepdub.ai/api/v1/issues/{id}"
payload := strings.NewReader("{\n \"additionalComments\": \"Confirmed the mispronunciation reproduces with seed=42\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://restapi.deepdub.ai/api/v1/issues/{id}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"additionalComments\": \"Confirmed the mispronunciation reproduces with seed=42\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://restapi.deepdub.ai/api/v1/issues/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"additionalComments\": \"Confirmed the mispronunciation reproduces with seed=42\"\n}"
response = http.request(request)
puts response.read_body{
"id": "iss_12345abcde",
"state": "open",
"rejectionReason": "duplicate report",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"generationId": "<string>",
"generatedText": "<string>",
"problemWord": "<string>",
"voicePromptId": "<string>",
"type": "hallucinations",
"locale": "en-US",
"additionalComments": "<string>",
"problemSeconds": 123,
"phoneticHeard": "<string>",
"phoneticExpected": "<string>"
}{
"message": "Invalid request body"
}{
"message": "Unauthorized"
}{
"message": "Issue not found"
}{
"message": "Failed to update issue"
}Authorizations
API key for authentication. Must start with dd- prefix.
Headers
API Key
Path Parameters
Issue ID
Body
Payload for updating an existing issue. All fields are optional.
Category of problem being reported. Any value outside the enum returns 400.
hallucinations, glossary Optional base64-encoded audio clip to attach to the issue
Optional phonetic transcription of how the word actually sounded
Optional phonetic transcription of how the word should sound
Response
Updated issue
Issue details
"iss_12345abcde"
Current state of the issue.
open, uploaded_for_correction, in_progress, resolved, rejected "open"
Why the issue was rejected. Present only when state is rejected.
"duplicate report"
Category of problem being reported.
hallucinations, glossary Locale of the reported generation, when known.
"en-US"
Phonetic transcription of how the word actually sounded
Phonetic transcription of how the word should sound
