VERSION: 4.0, DEPRECATED: NO
POSTretrieve
Params
Nested object(s)[]
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}'
[ { "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": }]
GETget detail
Sample call: {root}/v4/whosoff/get-detail/12345678
curl --location --request GET "{{ROOT}}whosoff/get-detail/12345678-H "Authorization: Bearer {{BEARER_TOKEN}}" \ -H "app-id:{{APP_ID}}" \ -H "Content-Type: application/json" \ -H "Accept-Encoding: gzip" \ -H "accept: */*" \
[ { "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":"status_id", "type":"custom", "is_nullable":false, "nest":null, "custom":[ { "name":"disabled", "value":"0" }, { "name":"active", "value":"1" }] "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":"leave_type_name", "type":"String", "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":"allowance_type_id", "type":"custom", "is_nullable":false, "nest":null, "custom":[ { "name":"days", "value":"0" }, { "name":"hours", "value":"1" }] "note": }, { "object_name":"duration", "type":"minute(int32)", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"allowance_duration", "type":"minute(int32)", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"work_duration", "type":"minute(int32)", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"free_duration", "type":"minute(int32)", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"shifts", "type":"Decimal", "is_nullable":false, "nest":null, "custom":null "note": }, { "object_name":"request_notes", "type":"String", "is_nullable":false, "nest":null, "custom":null "note": }]
INSTANTLY REDUCE TIME SPENT ON LEAVE MANAGEMENT
Start Your Free Trial