GET
/
organization
/
{organizationId}
/
department
/
{departmentId}
curl --request GET \
  --url https://app.teable.cn/api/organization/%7BorganizationId%7D/department/%7BdepartmentId%7D \
  --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
departmentId
string
required

Response

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