번역 작업 API
번역 작업 삭제
POST/v1/translation/delete
ID로 번역 작업을 삭제합니다.
- 전체 주소
- https://otranslator.com/api/v1/translation/delete
- 인증
- Authorization 요청 헤더에 API Key를 전달해야 합니다
- Content-Type
- application/json
- 잘못된 형식
- { "error": "Invalid API key." }
주의사항
삭제 후 작업이 삭제됨으로 표시되며, 번역 서비스를 호출하여 작업 관련 리소스를 정리합니다.
예시
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}'요청 매개변수
| 매개변수 | 유형 | 기본값 | 설명 | 예시 |
|---|---|---|---|---|
| *taskId | String | - | 번역 작업 ID | - |
응답
| 매개변수 | 유형 | 기본값 | 설명 | 예시 |
|---|---|---|---|---|
| success | Boolean | - | 삭제 성공 여부 | - |
일반적인 오류
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.