Skip to main content
POST
/
organization
/
{organizationId}
/
department
cURL
curl --request POST \
  --url http://127.0.0.1:3000/api/organization/{organizationId}/department \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "id": "<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[]
Last modified on December 10, 2025