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

Request Params

KeyDatatypeRequiredDescription
astringaction type
apiKeystringRequired: API key of your Profit.co Account
accessKeystringRequired: Access key of your Profit.co Account

Request Body

[{"name"=>"employeeId", "value"=>"<EMPLOYEE_ID>", "datatype"=>"string"}, {"name"=>"employeeData", "value"=>" {\"rolesList\":[\"KlzSgXsBWQ5Na8qaAekT\"]}\n", "datatype"=>"string"}]