POST/ retrieve
| Route | {root}/v4/whosoff/retrieve | 
| Request type | BODY | 
| User level | STAFF | 
| Requires authentication | Yes | 
| Response type | Array() | 
Parameters
| Name | Type | Nullable? | Required? | Min. | Max. | Nest | Custom | 
|---|---|---|---|---|---|---|---|
| map_type_id | CUSTOM | REQUIRED | 0 | 7 | - | ||
| map_id | INT32 | REQUIRED | 0 | 2147483647 | - | - | |
| start_date | DATE | REQUIRED | - | - | |||
| end_date | DATE | REQUIRED | - | - | |||
| leave_type_ids | NESTED | OPTIONAL | List (Of leave_type_ids) | - | |||
| include_free_restricted | BOOLEAN | REQUIRED | - | - | |||
| include_only_whosoff | BOOLEAN | REQUIRED | - | - | 
Nested object(s)[]
| Object name | Param name | Type | Is Nullable? | Required? | Min. | Max. | 
|---|---|---|---|---|---|---|
| leave_type_ids | ||||||
| leave_type_id | [Int32] | False | REQUIRED | 0 | 2147483647 | |
Sample cURL
curl --location --request POST "{{ROOT}}whosoff/retrieve/" \
-H "Authorization: Bearer {{BEARER_TOKEN}}" \
-H "app-id:{{APP_ID}}" \
-H "Content-Type: application/json" \
-H "Accept-Encoding: gzip" \
-H "accept: */*" \
--data '{"map_type_id": "0","map_id": "123456","leave_type_ids": [{"leave_type_id":"234"},{"leave_type_id":"234"}],"include_free_restricted": false,"include_only_whosoff": false}'
                                    
                                Sample response
[
{
"object_name":"user_id",
"type":"Int32",
"is_nullable":false,
"nest":null,
"custom":null
"note":
},
{
"object_name":"first_name",
"type":"String",
"is_nullable":false,
"nest":null,
"custom":null
"note":
},
{
"object_name":"last_name",
"type":"String",
"is_nullable":false,
"nest":null,
"custom":null
"note":
},
{
"object_name":"department_id",
"type":"Int32",
"is_nullable":false,
"nest":null,
"custom":null
"note":
},
{
"object_name":"department_name",
"type":"String",
"is_nullable":false,
"nest":null,
"custom":null
"note":
},
{
"object_name":"image_url_small",
"type":"String",
"is_nullable":false,
"nest":null,
"custom":null
"note":
},
{
"object_name":"image_url_large",
"type":"String",
"is_nullable":false,
"nest":null,
"custom":null
"note":
},
{
"object_name":"work",
"type":"NESTED",
"is_nullable":false,
"nest":[
{
"object_name":"start_date",
"type":"Date",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"end_date",
"type":"Date",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"monday",
"type":"minute(int32)",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"tuesday",
"type":"minute(int32)",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"wednesday",
"type":"minute(int32)",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"thursday",
"type":"minute(int32)",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"friday",
"type":"minute(int32)",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"saturday",
"type":"minute(int32)",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"sunday",
"type":"minute(int32)",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
}],
"custom":null
"note":
},
{
"object_name":"leave",
"type":"NESTED",
"is_nullable":false,
"nest":[
{
"object_name":"leave_id",
"type":"Int32",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"status_id",
"type":"custom",
"is_nullable":False,
"nest":null,
"custom":"[
{
"name":"disabled",
"value":"0"
},
{
"name":"active",
"value":"1"
}]"
"note":"",
},
{
"object_name":"leave_type_id",
"type":"Int32",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"start_date",
"type":"DateTime",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"end_date",
"type":"DateTime",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"code",
"type":"String",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"colour",
"type":"String",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"leave_type_name",
"type":"String",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
}],
"custom":null
"note":
},
{
"object_name":"free_restricted",
"type":"NESTED",
"is_nullable":false,
"nest":[
{
"object_name":"start_date",
"type":"DateTime",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"end_date",
"type":"DateTime",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"type_id",
"type":"custom",
"is_nullable":False,
"nest":null,
"custom":"[
{
"name":"free",
"value":"0"
},
{
"name":"restricted",
"value":"1"
}]"
"note":"",
},
{
"object_name":"description",
"type":"String",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
}],
"custom":null
"note":
}
]