Get Specific Department / Roles Detail API
Require Authentication
This API is used to get specific department / roles detailed information for the company based on combination of deviceID and token.
Only users that have module "user_and_roles_menu" in their role/department (currently only Administrator) can view role/department detail
URL
api/companies/departmentdetail/:departmentID
Required parameter (in URL)
- :departmentID «contains departmentID that want to be looked for. It must be put in the URL, e.g: api/companies/departmentdetail/2»
Required parameter (POST)
- deviceID
- token
Optional parameter
Example JSON Payload
{
"deviceID": "ABCD-EFGH-IJKL-MNOP",
"token": "bb602ab13b8090268cd6e3bb9dfa39e2"
}
Possible return HTTP status code
- 200
- 401
- 404
- 405
Return message
{
"status": "success",
"message": {
"departmentID": 2,
"departmentName": "department from api",
"createdDate": 1449305897,
"createdBy": 3,
"modifiedDate": 1449305897,
"modifiedBy": 3,
"companyID": 1,
"total_users": 0
}
}