POST https://api.profit.co/app/dao/v5/appsettings?a=updateDepartment&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>
To update the department in your profit.co account
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 Ac Curl curl -X POST 'https://api.profit.co/app/dao/v5/appsettings?a=updateDepartment&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>?a=updateDepartment&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>' -F '{"name"=>"data", "value"=>"{\"departmentId\":2289870,\"departmentName\":\"Mobile1\",\"isEnabled\":\"Y\",\"parentDepartmentId\":2285025,\"cc\":\"#5758BB\",\"iconCls\":\"pt-jira\",\"reviewCriterias\":[],\"authorizedEmployees\":[],\"rg\":[],\"hrbp\":[],\"grds\":[],\"dl\":\"Department\",\"aopkc\":\"Y\",\"firmId\":600018,\"customAttributes\":[],\"createdBy\":2112439,\"lastUpdatedBy\":2112439,\"createdByName\":\"developer mobile\",\"creationDate\":\"2022-10-12 07:48:41\",\"lastUpdateDate\":\"2022-10-12 07:48:41\",\"lastUpdatedByName\":\"developer mobile\",\"version\":1,\"objectId\":49,\"name\":\"Mobile1\",\"employeeIds\":[],\"parentIconCls\":\"star\",\"childrens\":[{\"departmentId\":2289871,\"departmentName\":\"test mobile\",\"isEnabled\":\"Y\",\"parentDepartmentId\":2289870,\"parentDepartmentName\":\"Mobile\",\"cc\":\"#4b6584\",\"iconCls\":\"donut_large\",\"reviewCriterias\":[],\"authorizedEmployees\":[],\"hrbp\":[],\"dl\":\"Department\",\"aopkc\":\"Y\",\"firmId\":600018,\"customAttributes\":[],\"createdBy\":2112439,\"lastUpdatedBy\":2112439,\"createdByName\":\"developer mobile\",\"creationDate\":\"2022-10-12 08:00:17\",\"lastUpdateDate\":\"2022-10-12 08:00:17\",\"lastUpdatedByName\":\"developer mobile\",\"version\":0,\"objectId\":49,\"name\":\"test mobile\",\"employeeIds\":[],\"parentIconCls\":\"star\"}],\"includeLoginEnabledUsers\":true,\"isAssignAsObjToggle\":false,\"totalWt\":\"0.00\",\"showDefaultOwner\":true,\"parentDepartmentName\":\"Engineering\"}", "datatype"=>"string"}=' -F '{"name"=>"subDepartmentIds", "value"=>"[SUB_DEPARTMENT_ID1,SUB_DEPARTMENT_ID2]", "datatype"=>"string"}=' ENDPOINTS |