Zugangsdaten für ein anderes Konto
Die API gibt dieses Problem für 422 Unprocessable Content zurück. Der Wert von type ist https://lingo.dev/docs/api/errors/connection-account-mismatch. Unter Fehler und Statuscodes findest du die Struktur, die alle Fehler gemeinsam haben.
Die neuen Zugangsdaten gewähren Zugriff auf ein anderes GitHub-Konto als das, das mit der Verbindung <id> verknüpft ist. Verwende Zugangsdaten für das verknüpfte Konto oder erstelle eine neue Verbindung für das andere Konto.
Felder#
Neben den Standardfeldern type, status, title und detail enthält der Antwortinhalt die folgenden Felder. Aus diesen wird der Text für detail erstellt, sodass ein Client stattdessen einen eigenen Text anzeigen kann.
| Feld | Typ |
|---|---|
id | string |
provider | "github" | "zendesk" | "payload" | "jira" | "crowdin" | "blend" |
Beispiel#
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"
}