Calls: {root}/{version}/department
POST/v4/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
Sample response
[
{
"object_name":"department_id",
"type":"Int32",
"is_nullable":false,
"nest":null,
"custom":null
"note":
}
]
GET/v4/retrieve
| Route |
{root}/v4/department/retrieve |
| Request type |
URL |
| User level |
STAFF |
| Requires authentication |
Yes |
| Response type |
Array() |
| Sample call | {root}/v0/department/retrieve/?department_id=12345678 |
Parameters
| Name |
Type |
Nullable? |
Required? |
Min. |
Max. |
Nest |
Custom |
| department_id |
INT32 |
|
OPTIONAL |
0 |
2147483647 |
- |
- |
Sample cURL
Sample response
[
{
"object_name":"department_id",
"type":"Int32",
"is_nullable":false,
"nest":null,
"custom":null
"note":
},
{
"object_name":"name",
"type":"String",
"is_nullable":false,
"nest":null,
"custom":null
"note":
},
{
"object_name":"min_user",
"type":"Int16",
"is_nullable":false,
"nest":null,
"custom":null
"note":
},
{
"object_name":"max_user",
"type":"Int16",
"is_nullable":false,
"nest":null,
"custom":null
"note":
}
]
PUT/v4/update
| Route |
{root}/v4/department/update |
| Request type |
BODY |
| User level |
SUPER USER |
| Requires authentication |
Yes |
| Response type |
Single |
Parameters
| Name |
Type |
Nullable? |
Required? |
Min. |
Max. |
Nest |
Custom |
| department_id |
[INT32] |
|
REQUIRED |
0 |
2147483647 |
- |
- |
| name |
STRING |
|
OPTIONAL |
0 |
50 |
- |
- |
| min_user |
INT16 |
|
OPTIONAL |
0 |
32767 |
- |
- |
| max_user |
INT16 |
|
OPTIONAL |
0 |
32767 |
- |
- |
Sample cURL
Sample response
Standard response object returned, see API Overview for structure.
DELETE/v4/del
| Route |
{root}/v4/department/del |
| Request type |
URL |
| User level |
SUPER USER |
| Requires authentication |
Yes |
| Response type |
Single |
| Sample call | {root}/v0/department/del/12345678/true |
Parameters
| Name |
Type |
Nullable? |
Required? |
Min. |
Max. |
Nest |
Custom |
| department_id |
INT32 |
|
REQUIRED |
0 |
2147483647 |
- |
- |
| force_removal |
BOOLEAN |
|
REQUIRED |
|
|
- |
- |
Sample cURL
Sample response
Standard response object returned, see API Overview for structure.