本地化任务属于内容同步运行

了解 LocalizationJobOwnedByContentSync 错误(409 冲突)的含义、包含的字段,以及哪些端点会返回此错误。

API 返回此错误时,状态码为 409 Conflict,其 type 为 https://lingo.dev/docs/api/errors/localization-job-owned-by-content-sync。所有错误的通用结构请参阅错误和状态码。

本地化任务 <id> 属于内容同步运行 <runId>。请改为在 Lingo.dev 中对应的集成内取消该运行,这样同步也会停止回写翻译。

字段 #

除标准成员 type、status、title 和 detail 外,响应体还包含以下字段。detail 文本根据这些字段生成,因此客户端也可以显示自定义文本。

字段类型
idstring
runIdstring

示例 #

json
{
  "detail": "Localization job <id> belongs to content sync run <runId>. Cancel the run from its integration in Lingo.dev instead, so the sync stops writing translations back too.",
  "id": "<id>",
  "runId": "<runId>",
  "type": "https://lingo.dev/docs/api/errors/localization-job-owned-by-content-sync",
  "status": 409,
  "title": "Localization job belongs to a content sync run"
}

返回此错误的端点 #

  • POST /v2/localization/jobs/{id}/cancel