Logo
Profit.co's Public API Documentation

Add Roles To Employee

POST https://api.profit.co/app/dao/v6/employees?a=addRolesToEmployee&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>

To assign the role to the user

 

Body PARAM

Key Datatype Required Description 
a
string action type
apiKey
string Required: API key of your Profit.co Account
accessKey
string Required: Access key of your Profit.co Account
Curl
curl -X POST 'https://api.profit.co/app/dao/v6/employees?a=addRolesToEmployee&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>?a=addRolesToEmployee&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>' -F '{"name"=>"employeeId", "value"=>"<EMPLOYEE_ID>", "datatype"=>"string"}=' -F '{"name"=>"employeeData", "value"=>" {\"rolesList\":[\"KlzSgXsBWQ5Na8qaAekT\"]}\n", "datatype"=>"string"}='

ENDPOINTS