POST/ my
| Route | {root}/v4/overtime/my | 
| Request type | BODY | 
| User level | STAFF | 
| Requires authentication | Yes | 
| Response type | Array() | 
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 | - | - | |||
| status_id | CUSTOM | OPTIONAL | - | ||||
| overtime_type_ids | NESTED | OPTIONAL | List (Of overtime_type_ids) | - | 
Nested object(s)[]
| Object name | Param name | Type | Is Nullable? | Required? | Min. | Max. | 
|---|---|---|---|---|---|---|
| overtime_type_ids | ||||||
| overtime_type_id | [Int32] | False | REQUIRED | 0 | 2147483647 | |
Sample cURL
curl --location --request POST "{{ROOT}}overtime/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","status_id": "0","overtime_type_ids": [{"overtime_type_id":"234"},{"overtime_type_id":"234"}]}'
                                    
                                Sample response
[
{
"object_name":"overtime_id",
"type":"Int32",
"is_nullable":false,
"nest":null,
"custom":null
"note":
},
{
"object_name":"overtime_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":"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":"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":"lieu_requested",
"type":"minute(int32)",
"is_nullable":false,
"nest":null,
"custom":null
"note":
},
{
"object_name":"lieu_approved",
"type":"minute(int32)",
"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_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":"approver_note",
"type":"String",
"is_nullable":false,
"nest":null,
"custom":null
"note":
},
{
"object_name":"last_reminder_date",
"type":"DateTime",
"is_nullable":false,
"nest":null,
"custom":null
"note":
}
]