Logo
Profit.co's Public API Documentation

Create Department

POST https://api.profit.co/app/dao/v5/appsettings?a=createDepartment&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>

To create a new 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
Curl
curl -X POST 'https://api.profit.co/app/dao/v5/appsettings?a=createDepartment&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>?a=createDepartment&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>' -F '{"name"=>"data", "value"=>"{\"parentDepartmentId\":2285025,\"parentDepartmentName\":\"Engineering\",\"parentIconCls\": \"star\",\"customAttributes\":[],\"hrbp\":[],\"grades\":[],\"modifiedGradeIds\":[],\"iconCls\":\"history\",\"deptHeadName\":\"\",\"cc\":\"#2196F3\",\"isAssignAsObjToggle\":false,\"totalWt\":\"0.00\",\"departmentName\":\"Mobile\",\"deptHeadObjRefId\":null,\"reviewCriterias\":[],\"authorizedEmployees\":[],\"isEnabled\":\"Y\"}\n", "datatype"=>"string"}=' -F '{"name"=>"subDepartmentIds", "value"=>"[]", "datatype"=>"string"}='

ENDPOINTS