OK
curl -i -X POST \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/departments' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "workplaceId": "string", "employees": [ "string" ], "contractors": [ "string" ] }'
{ "id": "string", "companyId": "string", "workplace": { "name": "string", "address": { … } }, "name": "string", "active": true, "assignedEmployees": 0, "assignedContractors": 0 }
curl -i -X GET \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/departments?active=true&id=string&name=string&page=1&pageSize=10&workplaceId=string'
{ "hasResources": true, "totalResources": 0, "totalPages": 0, "pageSize": 0, "currentPage": 0, "previousPage": 0, "nextPage": 0, "results": [ { … } ] }
curl -i -X GET \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/departments/{departmentId}'
{ "id": "string", "companyId": "string", "workplace": { "name": "string", "address": { … } }, "name": "string", "active": true, "assignedEmployees": 0, "assignedContractors": 0 }
curl -i -X PATCH \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/departments/{departmentId}' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "active": true, "workplaceId": "string", "employeeIds": [ "string" ], "contractorIds": [ "string" ] }'
{ "id": "string", "companyId": "string", "workplace": { "name": "string", "address": { … } }, "name": "string", "active": true, "assignedEmployees": 0, "assignedContractors": 0 }