Skip to main content
DELETE
/
v1
/
roles
/
{roleId}
Delete a custom role
curl --request DELETE \
  --url https://api.trycomp.ai/v1/roles/{roleId} \
  --header 'X-API-Key: <api-key>'
{
  "success": true,
  "message": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://www.trycomp.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

API key for authentication

Path Parameters

roleId
string
required

Role ID

Example:

"rol_abc123"

Response

Role deleted successfully

success
boolean
message
string