ClavianAPI errors
All error codes

409 Conflict

An organisation needs an owner

Code
last_owner
Status
409 Conflict
Type
https://errors.clavian.io/last-owner

What it means

The change would leave the organisation with no active owner, and an organisation always has one.

What to do

Make another member an owner first, then make the change.

Example

The API answers with status 409 and this body, as application/problem+json. A detail may be added, saying what went wrong this time; it is for people, and changes.

{
  "type": "https://errors.clavian.io/last-owner",
  "title": "An organisation needs an owner",
  "status": 409,
  "code": "last_owner",
  "requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}

Endpoints that return it

From the OpenAPI document, every endpoint that names it among its answers: