Create User
POST
https://api.profit.co/app/dao/v6/employees?a=save&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>
To create a new user to the organization
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
|
HEADERS
Key |
Datatype |
Required |
Description |
RESPONSES
status
curl -X POST 'https://api.profit.co/app/dao/v6/employees?a=save&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>?a=save&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>' -F '{"name"=>"employeeData", "value"=>" {\"employeeNumber\":\"Auto Generated Number\",\"loginEnabled\":\"Y\",\"customAttributes\":[],\"managerName\":\"Profit APITest\",\"hrbp\":[],\"mmrs\":[],\"taCurrencyCode\":\"USD\",\"pfau\":\"N\",\"firstName\":\"API\",\"lastName\":\"Testing2\",\"emailId\":\"profitapitesting2@berijam.com\",\"managerId\":2115252,\"srid\":null,\"assigneeDetails\":[],\"departmentName\":\"Engineering\",\"departmentId\":2265538,\"jobTitleName\":\"Software Engineer\",\"jobTitleId\":13,\"okrScoreId\":5,\"okrScoreName\":\"Individual Contributors\",\"fullName\":\"API Testing2\",\"labels\":[],\"tags\":[],\"roles\":[{\"roleId\":\"HlzSgXsBWQ5Na8qaAekT\",\"name\":\"PROFIT_USER\",\"description\":\"Has access to create, view, update, delete objectives and key results\",\"roleName\":\"Profit User\",\"editable\":\"Y\",\"firmId\":260069,\"rolePrivileges\":[{\"privilegeId\":\"8836\",\"version\":0},{\"privilegeId\":\"8835\",\"version\":0},{\"privilegeId\":\"8834\",\"version\":0}],\"version\":0,\"isChecked\":true}],\"impersonators\":[]}", "datatype"=>"string"}='