POST/ create
Route | {root}/v4/overtime-type/create |
Request type | BODY |
User level | SUPER USER |
Requires authentication | Yes |
Response type | Single |
Parameters
Name | Type | Nullable? | Required? | Min. | Max. | Nest | Custom |
---|---|---|---|---|---|---|---|
name | STRING | REQUIRED | 0 | 50 | - | - | |
code | STRING | REQUIRED | 0 | 2 | - | - | |
colour | STRING | REQUIRED | 0 | 7 | - | - | |
requires_approval | [BOOLEAN] | REQUIRED | - | - | |||
note_required | [BOOLEAN] | REQUIRED | - | - | |||
email_request_id | CUSTOM | REQUIRED | 0 | 4 | - | ||
email_approve_id | CUSTOM | REQUIRED | 0 | 4 | - | ||
email_cancel_id | CUSTOM | REQUIRED | 0 | 4 | - | ||
lieu_time | [BOOLEAN] | REQUIRED | - | - | |||
status_id | CUSTOM | REQUIRED | 0 | 1 | - | ||
available_to_id | CUSTOM | REQUIRED | 100 | 310 | - | ||
message | STRING | OPTIONAL | 0 | 500 | - | - |
Sample cURL
curl --location --request POST "{{ROOT}}overtime-type/create/" \ -H "Authorization: Bearer {{BEARER_TOKEN}}" \ -H "app-id:{{APP_ID}}" \ -H "Content-Type: application/json" \ -H "Accept-Encoding: gzip" \ -H "accept: */*" \ --data '{"name": "sample","code": "sample","colour": "sample","requires_approval": false,"note_required": false,"email_request_id": "0","email_approve_id": "0","email_cancel_id": "0","lieu_time": false,"status_id": "0","available_to_id": "100","message": "sample"}'
Sample response
[
{
"object_name":"overtime_type_id",
"type":"Int32",
"is_nullable":false,
"nest":null,
"custom":null
"note":
}
]