Department API can perform functions to interact or exchange data for Department.
Add department
Name
{ "id": "apiTestDept", "name": "API TEST Department", "description": "This is a department created by API." }
Delete department
{ "date": "Wed Aug 28 01:29:38 SGT 2019", "code": "200", "message": "Successful operation" }
Find department
Gets all departments from all organizations by default.
Able to filter or sort the returned results via parameters.
Department data column to sort.
Must be used in conjunction with "sortDescending" parameter.
Sort the specified "sort" parameter value in ascending or descending order.
Expects a boolean value.
Must be used in conjunction with "sort" parameter.
[ { "id": "D-001", "name": "CEO Office", "description": "" }, { "id": "D-002", "name": "Human Resource and Admin", "description": "" }, ..... ]
Get department by ID
{ "id": "D-001", "name": "CEO Office", "description": "" }
Update department
{ "id": "apiTestDept", "name": "API TEST Department", "description": "I update this department description via API." }