ClavianAPI errors
All error codes

409 Conflict

Role still in use

Code
role_in_use
Status
409 Conflict
Type
https://errors.clavian.io/role-in-use

What it means

The role cannot be deleted while a member holds it, suspended members included, or while a pending invitation names it.

What to do

Give those members another role and withdraw or change those invitations, then delete the role.

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/role-in-use",
  "title": "Role still in use",
  "status": 409,
  "code": "role_in_use",
  "requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}

Endpoints that return it

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