Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
API ReferenceAccount and accessRoles

Delete a custom role

Deletes one of the organization's custom roles and returns 204. A role still held by a member or service account is refused with 409 ROLE_IN_USE. Requires a signed-in session.

Required permission

Requires the role.manage permission. See Permissions for the roles and API key permissions that include it.

Command line

The orl CLI wraps this endpoint:

orl roles delete <role-id>
DELETE
/v1/roles/{roleId}

Authorization

apiKey
headerAuthorizationBearer <token>

OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).

Path Parameters

roleId*string

Response Body

Deleted

Example Request
curl -X DELETE 'https://api.openrelay.inc/v1/roles/string'
Example Response
Empty