翻译任务 API
重启翻译任务
/v1/translation/start用于Terminated任务的重启,或者支付积分进行全文翻译
示例
curl
1curl -X POST 'https://dltranslator.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 | - | 是否启动成功 | - |