GET Department
URL: http://{{server-url}}/api/v1/department
You can fetch the list of departments by calling the above endpoint.
You need the following key-values:
Header
Key | Description |
---|---|
Authorization | Bearer {access token obtained after authorization or API Key} |
Example (Request & Response)
Request
curl --location 'http://172.16.12.232/api/v1/department' \
--header 'Authorization: Apikey KPVhkfL9w7%2FLMn3k%40VPQNOa8kNQFwtkWWnsx5ogGGoujb1G9BKJh9UwYSP0IKdF1BF8Q9Ug%3D%3D'
Response
{
"objectList":
[{"node":
{"id":1,"name":"HR"},
"childrens":null},
{"node":
{"id":2,"name":"IT"},
"childrens":null},
{"node":
{"id":3,"name":"Finance"},"
childrens":null}],
"totalCount":3
}