Last owner

What the LastOwnerRemoval error (409 Conflict) means, the fields it carries, and the endpoints that return it.

The API answers 409 Conflict with this problem. Its type is https://lingo.dev/docs/api/errors/last-owner-removal. See Errors and status codes for the shape every error shares.

User <userId> is the last owner of organization <organizationId>. An organization must keep at least one owner. Give the owner role to another member first.

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.

FieldType
organizationIdstring
userIdstring

Example #

json
{
  "detail": "User <userId> is the last owner of organization <organizationId>. An organization must keep at least one owner. Give the owner role to another member first.",
  "organizationId": "<organizationId>",
  "userId": "<userId>",
  "type": "https://lingo.dev/docs/api/errors/last-owner-removal",
  "status": 409,
  "title": "Last owner"
}

Returned by #

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