Calls: {root}/department
POSTcreate
Route: | {root}/v4/department/create |
Request type | User level | Requires authentication | Response type |
---|---|---|---|
BODY | SUPER USER | Yes | Single |
Params
Name | Type | Nullable? | Required? | Min. | Max. | Nest | Custom |
---|---|---|---|---|---|---|---|
name | STRING | REQUIRED | 0 | 50 | - | - | |
min_user | INT16 | REQUIRED | 0 | 32767 | - | - |
GETretrieve
Route: | {root}/v4/department/retrieve |
Sample call: {root}/v4/department/retrieve/?department_id=12345678
Request type | User level | Requires authentication | Response type |
---|---|---|---|
URL | STAFF | Yes | Array() |
Params
Name | Type | Nullable? | Required? | Min. | Max. | Nest | Custom |
---|---|---|---|---|---|---|---|
department_id | INT32 | OPTIONAL | 0 | 2147483647 | - | - |
PUTupdate
Route: | {root}/v4/department/update |
Request type | User level | Requires authentication | Response type |
---|---|---|---|
BODY | SUPER USER | Yes | Single |
Params
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 | - | - |
DELETEdel
Route: | {root}/v4/department/del |
Sample call: {root}/v4/department/del/12345678/true
Request type | User level | Requires authentication | Response type |
---|---|---|---|
URL | SUPER USER | Yes | Single |
Params
Name | Type | Nullable? | Required? | Min. | Max. | Nest | Custom |
---|---|---|---|---|---|---|---|
department_id | INT32 | REQUIRED | 0 | 2147483647 | - | - | |
force_removal | BOOLEAN | REQUIRED | - | - |
Don't have a WhosOff account yet?
Instantly reduce time spent on leave management with your FREE, no obligation trial today!
Sign up today and get until Friday, 25th April 2025 to try the full service, for Free!