Skip to main content

Delete a role

JAVASCRIPT
1
2
3
4
5
6
7
client.roles.delete('71f73a9b-2a13-4d63-bcc1-e8ee5047b01c') .then(result => { console.log('API call was successful'); }) .catch(error => { console.log('API call fetch error: ', error); });
JSON
1
2
3
4
5
6
7
8
9
10
11
{ "logId": "00000000-0000-0000-0000-000000000000", "message": "There are validation errors deleting the role", "data": [ { "field": "projectId", "message": "The project does not exist" } ], "type": "Validation" }
JSON
1
2
3
4
5
6
7
8
9
10
11
{ "logId": "00000000-0000-0000-0000-000000000000", "message": "There are validation errors deleting the role", "data": [ { "field": "projectId", "message": "The role with id '71f73a9b-2a13-4d63-bcc1-e8ee5047b01c' does not exist" } ], "type": "Validation" }
JSON
1
2
3
4
5
6
7
8
9
10
{ "logId": "00000000-0000-0000-0000-000000000000", "message": "There are validation errors deleting the role", "data": [ { "message": "Access denied" } ], "type": "Validation" }

Still need help?

New support request