別のアカウントの認証情報

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"
}