POST/ my
| Route | {root}/v4/leave/my | 
| Request type | BODY | 
| User level | STAFF | 
| Requires authentication | Yes | 
| Response type | Single | 
Parameters
| Name | Type | Nullable? | Required? | Min. | Max. | Nest | Custom | 
|---|---|---|---|---|---|---|---|
| date_option | CUSTOM | REQUIRED | 0 | 3 | - | ||
| start_date | DATE | REQUIRED FOR OPTION 0 | - | - | |||
| end_date | DATE | REQUIRED FOR OPTION 0 | - | - | |||
| leave_type_ids | NESTED | OPTIONAL | List (Of leave_type_ids) | - | |||
| status_id | CUSTOM | OPTIONAL | - | ||||
| include_leave | BOOLEAN | OPTIONAL | - | - | |||
| include_work | BOOLEAN | OPTIONAL | - | - | |||
| include_free_restricted | BOOLEAN | OPTIONAL | - | - | 
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}}leave/my/" \
-H "Authorization: Bearer {{BEARER_TOKEN}}" \
-H "app-id:{{APP_ID}}" \
-H "Content-Type: application/json" \
-H "Accept-Encoding: gzip" \
-H "accept: */*" \
--data '{"date_option": "0","leave_type_ids": [{"leave_type_id":"234"},{"leave_type_id":"234"}],"status_id": "0","include_leave": false,"include_work": false,"include_free_restricted": false}'
                                    
                                Sample response
[
{
"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":"NESTED",
"is_nullable":false,
"nest":[
{
"object_name":"leave_id",
"type":"Int32",
"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":"leave_type_id",
"type":"[Int32]",
"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":"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":"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":"allowance_type_id",
"type":"custom",
"is_nullable":False,
"nest":null,
"custom":"[
{
"name":"days",
"value":"0"
},
{
"name":"hours",
"value":"1"
}]"
"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":"requested_date",
"type":"DateTime",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"approver_id",
"type":"Int32",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"approver_first_name",
"type":"String",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"approver_last_name",
"type":"String",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"approved_date",
"type":"DateTime",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"approved_by_id",
"type":"[Int32]",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"approved_by_first_name",
"type":"String",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"approved_by_last_name",
"type":"String",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"request_note",
"type":"String",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"approved_note",
"type":"String",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"cancellation_period",
"type":"minute(int32)",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
},
{
"object_name":"last_reminder_date",
"type":"DateTime",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
}],
"custom":null
"note":
},
{
"object_name":"work",
"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":"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":"free_days",
"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":"",
}],
"custom":null
"note":
},
{
"object_name":"restricted_days",
"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":"",
}],
"custom":null
"note":
},
{
"object_name":"leave_types",
"type":"NESTED",
"is_nullable":false,
"nest":[
{
"object_name":"leave_type_id",
"type":"Int32",
"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":"name",
"type":"String",
"is_nullable":False,
"nest":null,
"custom":null
"note":"",
}],
"custom":null
"note":
}
]