Spis treści dokumentu

API Zadania Tłumaczenia

Usuń zadanie tłumaczenia

POST/v1/translation/delete

Usuń zadanie tłumaczenia według jego ID.

Pełny adres
https://otranslator.com/api/v1/translation/delete
Uwierzytelnienie
Należy przekazać API Key w nagłówku żądania Authorization
Content-Type
application/json
Nieprawidłowy format
{ "error": "Invalid API key." }

Uwagi

Po usunięciu zadanie zostanie oznaczone jako usunięte i zostanie wywołana usługa tłumaczenia w celu wyczyszczenia zasobów związanych z zadaniem.

Przykład

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

Parametry żądania

ParametryTypDomyślnyOpisPrzykład
*taskIdString-

ID zadania tłumaczenia

-

Odpowiedź

ParametryTypDomyślnyOpisPrzykład
successBoolean-

Czy usunięcie powiodło się

-

Typowe błędy

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.

API Zadania Tłumaczenia
Zapytanie o zadania tłumaczenia
API Zadania Tłumaczenia
Pobierz tłumaczenie