curl --request DELETE \
--url https://api.example.com/v1/organizations/{organizationId}/roles/{id}Delete a role
curl --request DELETE \
--url https://api.example.com/v1/organizations/{organizationId}/roles/{id}{
"message": "Role successfully deleted",
"id": "role123"
}
{
"error": {
"code": "NOT_FOUND",
"message": "Role not found"
}
}
{
"error": {
"code": "SYSTEM_ROLE",
"message": "System roles cannot be deleted",
"details": {
"role": "owner"
}
}
}
curl -X DELETE "https://api.metabind.ai/v1/organizations/org123/roles/role123" \
-H "Authorization: Bearer YOUR_API_KEY"