Delete a custom role
curl --request DELETE \
--url https://api.trycomp.ai/v1/roles/{roleId} \
--header 'X-API-Key: <api-key>'const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/roles/{roleId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/roles/{roleId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"success": true,
"message": "<string>"
}Roles
Delete a custom role | Comp AI API
Delete a custom role in Comp AI. Create custom roles and resolve permission sets for organization-level access control.
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>'const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/roles/{roleId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/roles/{roleId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"success": true,
"message": "<string>"
}Was this page helpful?

