凭据属于其他账户

Moses Skoda工程师预计阅读 1 分钟

API 会针对 422 Unprocessable Content 返回此错误,其 type 为 https://lingo.dev/docs/api/errors/connection-account-mismatch。有关所有错误的通用结构,请参阅错误和状态码。

新凭据对应的 GitHub 账户与连接 <id> 关联的账户不同。请使用该连接所关联账户的凭据,或为另一个账户创建新连接。

字段#

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

字段类型
idstring
provider"github" | "zendesk" | "payload" | "jira" | "crowdin" | "blend"

示例#

json
{
  "detail": "The new credential reaches a different GitHub account than connection <id>. Use a credential for the same account, or create a new connection for the other one.",
  "id": "<id>",
  "provider": "github",
  "type": "https://lingo.dev/docs/api/errors/connection-account-mismatch",
  "status": 422,
  "title": "Credential for another account"
}