GET /system-ms/department/v1/{departmentId}
Fetch a specific department. Only Admin users can use this request.
To get the details about a specific department:
-
Perform the authentication and login to the API. For more information, see POST /auth/login.
Use GET /system-ms/department/v1/{departmentId} to send an HTTP GET request.
Click Try it Out option.
-
Set the parameters as listed in the following table.
Parameter Name
Sample Value
Supported Value
Description
departmentId
departmentId
integer 32
Indicates the ID of the department.
Note:This parameter is mandatory.
-
Click on Execute to generate the request URL.
Request URL:
The following table lists the expected responses.https://<IP_Address>:<PORT>/system-ms/department/v1/1Response Type
Value
Schema
Valid Response
200 OK
{ "departmentId": 0, "departmentName": "string", "parentDepartmentId": 0, "location": { "locationId": 0, "locationName": "string", "description": "string" }, "description": "string", "udf1": "string", "udf2": "string", "udf3": "string", "udf4": "string", "udf5": "string", "udf6": "string", "udf7": "string", "udf8": "string", "udf9": "string", "udf10": "string" }Error Response
400 Bad Request
Not applicable
401 Authentication Failure
Not applicable
403 Forbidden
Not applicable
404 Not found
Not applicable
↑