On this Work Structure Organization Level page you can use the method :
1. GET
- Get List of Organization Levels based on active parameter
Objective : To get a list of company organizational levels based on the active parameter
Method : GET
API Endpoint : [[baseurl]]/api/integration/v1/organization-levels?active=[[value]]
๐Notes Parameter [[value]] filled with “true” if the company's organizational level data is active or “false” if the company's organizational level data is inactive.
HEADER
X-TenantID: [[tenantid]]
Authorization: Bearer [[accesstoken]]
CONSUME VIA CURL
curl --location --request GET '[[baseurl]]/api/integration/v1/organization-levels?active=[[value]]'
--header 'X-TenantID: [[tenantid]]'
--header 'Authorization: Bearer [[accesstoken]]'
๐Notes To find out [[baseurl]], And [[tenantid]], You can learn about it on the page Integration Credential. And for [[accesstoken]] can be studied on the page Authorization Token.
API Response :
[
{
"id": "897ace9d-1aa4-11ec-87a7-0adbcc9eaaa8",
"name": "Default",
"level": 1,
"active": true
},
{
"id": "5dc6bb61-a05c-11ec-b8ff-560003594849",
"name": "Department",
"level": 3,
"active": true
}
]