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

Request Params

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

Request Body

[{"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"}, {"name"=>"subDepartmentIds", "value"=>"[]", "datatype"=>"string"}]