GET
/
organization
/
{organizationId}
/
department
curl --request GET \
  --url 'https://app.teable.cn/api/organization/%7BorganizationId%7D/department?parentId=SOME_STRING_VALUE&search=SOME_STRING_VALUE&includeChildrenDepartment=SOME_STRING_VALUE' \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'
[
  {
    "id": "<string>",
    "name": "<string>",
    "parentId": "<string>",
    "path": [
      "<string>"
    ],
    "pathName": [
      "<string>"
    ],
    "hasChildren": true
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organizationId
string
required

Query Parameters

parentId
string
includeChildrenDepartment
string

Response

200 - application/json
Get department list successfully
id
string
required
name
string
required
hasChildren
boolean
required
parentId
string
path
string[]
pathName
string[]