Update an issue
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 on every retry",
"model": "dd-etts-4.0"
}
'import requests
url = "https://restapi.deepdub.ai/api/v1/issues/{id}"
payload = {
"additionalComments": "Confirmed the mispronunciation reproduces on every retry",
"model": "dd-etts-4.0"
}
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 on every retry',
model: 'dd-etts-4.0'
})
};
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 on every retry',
'model' => 'dd-etts-4.0'
]),
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 on every retry\",\n \"model\": \"dd-etts-4.0\"\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 on every retry\",\n \"model\": \"dd-etts-4.0\"\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 on every retry\",\n \"model\": \"dd-etts-4.0\"\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>",
"voicePromptId": "<string>",
"type": "hallucinations",
"locale": "en-US",
"model": "dd-etts-4.0",
"problemSeconds": 123,
"phoneticHeard": "<string>",
"phoneticExpected": "<string>"
}{
"message": "Invalid request body"
}{
"message": "Unauthorized"
}{
"message": "Issue not found"
}{
"message": "Failed to update issue"
}Issues
Update an issue
Update an existing issue. All fields are optional — only fields included in the body are updated.
PUT
/
issues
/
{id}
Update an issue
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 on every retry",
"model": "dd-etts-4.0"
}
'import requests
url = "https://restapi.deepdub.ai/api/v1/issues/{id}"
payload = {
"additionalComments": "Confirmed the mispronunciation reproduces on every retry",
"model": "dd-etts-4.0"
}
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 on every retry',
model: 'dd-etts-4.0'
})
};
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 on every retry',
'model' => 'dd-etts-4.0'
]),
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 on every retry\",\n \"model\": \"dd-etts-4.0\"\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 on every retry\",\n \"model\": \"dd-etts-4.0\"\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 on every retry\",\n \"model\": \"dd-etts-4.0\"\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>",
"voicePromptId": "<string>",
"type": "hallucinations",
"locale": "en-US",
"model": "dd-etts-4.0",
"problemSeconds": 123,
"phoneticHeard": "<string>",
"phoneticExpected": "<string>"
}{
"message": "Invalid request body"
}{
"message": "Unauthorized"
}{
"message": "Issue not found"
}{
"message": "Failed to update issue"
}All fields in the request body are optional — only fields you include will be updated.
That includes
model, so you can name the model on a report you already filed. The same validation applies as on create: at most 64 characters of letters, digits, ., _, :, / or -, and anything else returns 400.Body
application/json
Payload for updating an existing issue. All fields are optional.
Response
Updated issue
Issue details. generatedText, problemWord and additionalComments are accepted on create and update and kept for triage, but are never returned.
