Skip to main content

Get a role

JAVASCRIPT
1
2
3
4
5
6
7
client.roles.get('c31111e7-76f7-46dd-93fb-cbf81a853a37') .then(result => { console.log('API call result: ', result); }) .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 getting 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 getting 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 getting the role", "data": [ { "message": "Access denied" } ], "type": "Validation" }

Still need help?

New support request