User not a member
The API answers 404 Not Found with this problem. Its type is https://lingo.dev/docs/api/errors/user-not-member. See Errors and status codes for the shape every error shares.
User <userId> is not a member of this organization. Invite them first, then set their role.
Fields#
Besides the standard type, status, title and detail members, the body carries these fields. The detail text is built from them, so a client can show its own text instead.
| Field | Type |
|---|---|
organizationId | string |
userId | string |
Example#
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"
}Returned by#
PATCH /v2/organizations/{orgId}/members/{userId}