ユーザーがメンバーではありません

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

この問題が発生すると、APIは404 Not Foundを返します。typeはhttps://lingo.dev/docs/api/errors/user-not-memberです。すべてのエラーに共通する形式については、エラーとステータスコードをご覧ください。

ユーザー<userId>はこの組織のメンバーではありません。まずユーザーを招待してから、ロールを設定してください。

フィールド#

レスポンス本文には、標準のメンバーであるtype、status、title、detailに加え、以下のフィールドが含まれます。detailのテキストはこれらのフィールドをもとに生成されるため、クライアント側で独自のテキストに置き換えて表示できます。

フィールド型
organizationIdstring
userIdstring

例#

json
{
  "detail": "User <userId> is not a member of this organization. Invite them first, then set their role.",
  "organizationId": "<organizationId>",
  "userId": "<userId>",
  "type": "https://lingo.dev/docs/api/errors/user-not-member",
  "status": 404,
  "title": "User not a member"
}

このエラーを返すエンドポイント#

  • PATCH /v2/organizations/{orgId}/members/{userId}