Organization

Pada halaman Work Structure Organization ini Anda dapat menggunakan metode :

1. GET
  • Get List of Organizations based on active parameter

Tujuan : Untuk mendapatkan daftar organisasi perusahaan berdasarkan parameter active

Method : GET
API Endpoint : [[baseurl]]/api/integration/v1/organizations?active=[[value]]

๐Ÿ“Catatan Parameter [[value]] diisi dengan “true” jika data organisasi perusahaan tersebut aktif atau “false” jika data organisasi perusahaan tersebut tidak aktif.

HEADER

X-TenantID: [[tenantid]]
Authorization: Bearer [[accesstoken]]
CONSUME VIA CURL

curl --location --request GET '[[baseurl]]/api/integration/v1/organizations?active=[[value]]' 
--header 'X-TenantID: [[tenantid]]' 
--header 'Authorization: Bearer [[accesstoken]]'

๐Ÿ“Catatan Untuk mengetahui [[baseurl]], dan [[tenantid]], Anda dapat mempelajarinya pada halaman Integration Credential. Dan untuk [[accesstoken]] dapat dipelajari pada halaman Authorization Token.

API Response :

[
  {
    "id": "5dc75430-a05c-11ec-b8ff-560003594849",
    "name": "Area Operation - Jakarta",
    "description": "Area Operation - Jakarta",
    "parentId": "5dc71f29-a05c-11ec-b8ff-560003594849",
    "parentName": "Operation Division",
    "organizationLevelId": "5dc6bb61-a05c-11ec-b8ff-560003594849",
    "organizationLevelName": "Department",
    "active": true
  },
  {
    "id": "5dc75892-a05c-11ec-b8ff-560003594849",
    "name": "Area Operation - Tangerang",
    "description": "Area Operation - Tangerang",
    "parentId": "5dc71f29-a05c-11ec-b8ff-560003594849",
    "parentName": "Operation Division",
    "organizationLevelId": "5dc6bb61-a05c-11ec-b8ff-560003594849",
    "organizationLevelName": "Department",
    "active": true
  }
]