Připojení již existuje
API při tomto problému vrací stav 409 Conflict. Hodnota type je https://lingo.dev/docs/api/errors/connection-already-exists. Společnou strukturu všech chyb najdete v části Chyby a stavové kódy.
<account> je připojen k jiné organizaci. Účet GitHub může patřit pouze jedné organizaci, proto ho nejprve odpojte od té stávající.
Pole#
Kromě standardních položek type, status, title a detail obsahuje tělo odpovědi následující pole. Z jejich hodnot se sestavuje text detail, takže klient může místo něj zobrazit vlastní text.
| Pole | Typ |
|---|---|
provider | "github" | "zendesk" | "payload" | "jira" | "crowdin" | "blend" |
account | string |
elsewhere | boolean |
Příklad#
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"
}