Logo
Profit.co's Public API Documentation

Update User

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

To update the user in the organization

 

Body PARAM

Curl
curl -X POST 'https://api.profit.co/app/dao/v6/employees?a=update&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>?a=update&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>' -F '{"name"=>"updateEmployeeData", "value"=>"{\"objectStatus\":\"0\",\"employeeNumber\":\"2\",\"firstName\":\"API\",\"lastName\":\"Testing1\",\"fullName\":\"API Testing1\",\"employeeId\":2115956,\"effectiveStartDate\":\"11/01/2021\",\"managerName\":\"Profit APITest\",\"managerId\":2115252,\"loginEnabled\":\"Y\",\"enabled\":\"Y\",\"workShiftId\":2035938,\"workShiftName\":\"Standard\",\"personStatus\":\"Employee\",\"status\":\"Active\",\"emailId\":\"profitapitesting1@berijam.com\",\"userId\":2094833,\"pfau\":\"N\",\"okrScoreId\":5,\"impersonators\":[],\"firmId\":260069,\"phoneNumbers\":[],\"createdBy\":2094137,\"lastUpdatedBy\":2094137,\"createdByName\":\"Profit APITest\",\"creationDate\":\"Nov 01, 2021 07:41:44 AM\",\"lastUpdateDate\":\"Nov 01, 2021 07:41:44 AM\",\"lastUpdatedByName\":\"Profit APITest\",\"version\":0,\"sortNumber\":\"000000000000000000000000000000000000000000000000000000000002\",\"uniqueColor\":\"#ff7675\",\"nameAsIcon\":\"AT\",\"objectId\":8,\"objectRefId\":2115956,\"objectRefName\":\"API Testing1\",\"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\":2}],\"title\":\"\",\"hrbp\":[],\"mmrs\":[],\"customAttributes\":[],\"taCurrencyCode\":\"USD\",\"departmentName\":\"Engineering\",\"departmentId\":2265538,\"jobTitleId\":null,\"jobTitleName\":null,\"okrScoreName\":\"Individual Contributors\",\"labels\":[],\"tags\":[]}", "datatype"=>"string"}=' -F '{"name"=>"attributeName", "value"=>" [\"departmentName\"]", "datatype"=>"string"}='

ENDPOINTS

    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