文書目次

翻訳タスク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}'

リクエストパラメータ

パラメータタイプデフォルト説明
*taskIdString-

翻訳タスクID

-

レスポンス

パラメータタイプデフォルト説明
successBoolean-

削除が成功したかどうか

-

よくあるエラー

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
翻訳タスクの照会
翻訳タスクAPI
訳文を取得