Get All Roles
Purpose
To get a list of all the roles from your account using Widget APIs.
Request Format
ZOHO.RECRUIT.API.getAllRoles();
Sample Request
CopiedZOHO.RECRUIT.API.getAllRoles().then(function(successResponse) {
}, function(errorResponse) {
});
Sample Response
Copied{
"roles": [
{
"display_label": "Recruiter Admin",
"share_with_peers": true,
"name": "Recruiter Admin",
"id": "486812000000071953",
"reporting_to": null
},
{
"display_label": "Recruiter",
"share_with_peers": false,
"name": "Recruiter",
"id": "486812000000071955",
"reporting_to": {
"name": "Recruiter Admin",
"id": "486812000000071953"
}
},
{
"display_label": "Client Administrator",
"share_with_peers": true,
"name": "Client Administrator",
"id": "486812000001121001",
"reporting_to": null
},
{
"display_label": "Client Interviewer",
"share_with_peers": false,
"name": "Client Interviewer",
"id": "486812000001121003",
"reporting_to": {
"name": "Client Administrator",
"id": "486812000001121001"
}
}
]
}
Show full
Show less