Indice del documento

API Attività di Traduzione

Revisiona traduzione

POST/v1/translation/updateTexts

Invia revisione per i testi tradotti in un'attività, con opzione per rigenerare le traduzioni.

Indirizzo completo
https://otranslator.com/api/v1/translation/updateTexts
Autenticazione
È necessario passare la API Key nell'intestazione della richiesta Authorization
Content-Type
application/json
Formato errato
{ "error": "Invalid API key." }

Note importanti

revisedTexts verranno scritti nella cache di traduzione delle attività, usati per salvare le traduzioni revisionate manualmente.

Quando startTranslation è true, l'elaborazione del task verrà riavviata dopo il salvataggio della revisione.

Esempio

curl
1curl -X POST 'https://otranslator.com/api/v1/translation/updateTexts' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{
5  "taskId": "[string]",
6  "revisedTexts": {
7    "key": "value"
8  }
9}'

Parametri della Richiesta

ParametriTipoPredefinitoDescrizioneEsempio
*taskIdString-

ID dell'attività di traduzione

-
*revisedTextsJSON-

Traduzione revisionata

-
startTranslationBooleanfalse

Se rigenerare la traduzione

-

Risposta

ParametriTipoPredefinitoDescrizioneEsempio
successBoolean-

Aggiornamento completato con successo

-

Errori comuni

401 Missing API key.

The Authorization request header is required.

401 Invalid API key.

The API key does not exist, has been deleted, or is no longer valid.

400 Missing required parameter: taskId.

Provide the taskId returned by the create translation task API.

404 Task not found.

The task does not exist, has been deleted, does not belong to the current API account, or was not created through the API.

409 Task is processing. Try again after it finishes.

revisedTexts cannot be updated while the task is processing.

API Attività di Traduzione
Ottieni traduzione
API Attività di Traduzione
Riavvia attività di traduzione