Skip to content

Delete a custom role

DELETE
/v1/roles/{roleId}
curl --request DELETE \
--url https://api.varman.io/v1/roles/rol_abc123 \
--header 'X-API-Key: <X-API-Key>'

Delete a custom role in Varman. Create custom roles and resolve permission sets for organization-level access control.

roleId
required
string

Example

rol_abc123

Role ID

Role deleted successfully

Media typeapplication/json
object
success
boolean
message
string

Example generated

{
"success": true,
"message": "example"
}

Cannot delete - members assigned to role

Unauthorized

Role not found