Payloadの認証コレクションが無効

Moses Skodaエンジニア読了目安 1分

APIは、この問題を422 Unprocessable Contentで返します。この問題のtypeはhttps://lingo.dev/docs/api/errors/payload-auth-collection-invalidです。すべてのエラーに共通する構造については、エラーとステータスコードを参照してください。

認証コレクションには、APIキーのユーザーが属するコレクションのスラッグ(usersなど)を指定する必要があります。

フィールド#

この問題には、標準のメンバーのみが含まれます。

例#

json
{
  "detail": "The auth collection must be the slug of the collection the API key's user belongs to, such as users.",
  "type": "https://lingo.dev/docs/api/errors/payload-auth-collection-invalid",
  "status": 422,
  "title": "Payload auth collection invalid"
}