POST
/
organization
/
{organizationId}
/
department
curl --request POST \
  --url https://app.teable.cn/api/organization/%7BorganizationId%7D/department \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: application/json' \
  --data '{"id":"string","name":"string","parentId":"string"}'
{
  "id": "<string>",
  "name": "<string>",
  "parentId": "<string>",
  "path": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

organizationId
string
required

Body

application/json
name
string
required
id
string
parentId
string

Response

201 - application/json
Create department successfully
id
string
required
name
string
required
parentId
string
path
string[]