Documentinhoudsopgave

Translation Task API

Vertaaltaak verwijderen

POST/v1/translation/delete

Verwijder een vertaaltaak op basis van het ID.

Volledig adres
https://shangyiai.com/api/v1/translation/delete
Authenticatie
De API Key moet doorgegeven worden in de Authorization-verzoekheader
Content-Type
application/json
Onjuist formaat
{ "error": "Invalid API key." }

Aandachtspunten

Na verwijdering wordt de taak gemarkeerd als verwijderd en wordt de vertaalservice aangeroepen om taakgerelateerde bronnen op te ruimen.

Voorbeeld

curl
1curl -X POST 'https://shangyiai.com/api/v1/translation/delete' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{
5  "taskId": "[string]"
6}'

Verzoekparameters

ParametersTypeStandaardBeschrijvingVoorbeeld
*taskIdString-

Vertaalopdracht-ID

-

Reactie

ParametersTypeStandaardBeschrijvingVoorbeeld
successBoolean-

Is verwijdering succesvol

-

Veelvoorkomende fouten

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.

Translation Task API
Vertaaltaken opvragen
Translation Task API
Vertaling ophalen