连接已存在
API 返回 409 Conflict 响应时,会附带此问题详情。其 type 为 https://lingo.dev/docs/api/errors/connection-already-exists。所有错误的通用结构,请参阅错误和状态码。
<account> 已连接到另一个组织,而每个 GitHub 账户只能属于一个组织。请先在该组织中断开连接。
字段#
除标准的 type、status、title 和 detail 成员外,响应体还包含以下字段。detail 文本根据这些字段生成,因此客户端也可以显示自己的文本。
| 字段 | 类型 |
|---|---|
provider | "github" | "zendesk" | "payload" | "jira" | "crowdin" | "blend" |
account | string |
elsewhere | boolean |
示例#
json
{
"detail": "<account> is connected to another organization, and a GitHub account can belong to one organization only. Disconnect it there first.",
"provider": "github",
"account": "<account>",
"elsewhere": true,
"type": "https://lingo.dev/docs/api/errors/connection-already-exists",
"status": 409,
"title": "Connection already exists"
}