翻譯任務API
重新啟動翻譯任務
/v1/translation/start用於重新啟動已終止的任務,或支付積分進行全文翻譯
範例
curl
1curl -X POST 'https://otranslator.com/api/v1/translation/start' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{
5 "taskId": "[string]"
6}'請求參數
| 參數 | 類型 | 預設 | 描述 | 範例 |
|---|---|---|---|---|
| *taskId | String | - | 翻譯任務ID | - |
| payWithCredits | Boolean | - | 是否支付翻譯任務,只有文檔未支付時有效,已支付的文檔不會重複扣費 | - |
| model | String | - |
| - |
響應
| 參數 | 類型 | 預設 | 描述 | 範例 |
|---|---|---|---|---|
| success | Boolean | - | 是否啟動成功 | - |