POST/ create
| Route | {root}/v4/department/create |
| Request type | BODY |
| User level | SUPER USER |
| Requires authentication | Yes |
| Response type | Single |
Parameters
| Name | Type | Nullable? | Required? | Min. | Max. | Nest | Custom |
|---|---|---|---|---|---|---|---|
| name | STRING | REQUIRED | 0 | 50 | - | - | |
| min_user | INT16 | REQUIRED | 0 | 32767 | - | - | |
| max_user | INT16 | OPTIONAL | 0 | 32767 | - | - |
Sample cURL
curl --location --request POST "{{ROOT}}department/create/" \
-H "Authorization: Bearer {{BEARER_TOKEN}}" \
-H "app-id:{{APP_ID}}" \
-H "Content-Type: application/json" \
-H "Accept-Encoding: gzip" \
-H "accept: */*" \
--data '{"name": "sample"}'
Sample response
[
{
"object_name":"department_id",
"type":"Int32",
"is_nullable":false,
"nest":null,
"custom":null
"note":
}
]