Docs
Live demo
DELETE/api/v2/organizations/{id}/roles/{role_id}

Delete a custom role. Members and tokens that held it keep their built-in role, groups keep their built-in role or lose the role entirely. Every permission of the role must be a permission of the caller. Needs members:manage.

Parameters

Path2 required of 2
idstringpathrequired

Organization ID (UUID)

role_idstring · uuidpathrequired

Custom role ID (UUID)

Responses

204

No Content

400

Bad Request: the role ID is not a UUID.

403

Forbidden: the caller lacks members:manage, or the role names permissions the caller does not have (details.reason=role_exceeds_caller, details.missing_permissions lists them).

404

Not Found: the organization, role or group does not exist or belongs to another organization.

409

Conflict (resource.conflict, details.error_code organization_administrator_required): the change would leave the organization without a person who holds every permission and can sign in.

Common errors: 401 413 429 503 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close