POST/v4/create
| Route | {root}/v4/work/create |
| Request type | BODY |
| User level | SUPER USER |
| Requires authentication | Yes |
| Response type | Single |
Parameters
| Name | Type | Nullable? | Required? | Min. | Max. | Nest | Custom |
|---|---|---|---|---|---|---|---|
| user_id | [INT32] | REQUIRED | 0 | 2147483647 | - | - | |
| start_date | DATE | REQUIRED | - | - | |||
| monday | MINUTE(INT32) | REQUIRED | 0 | 1440 | - | - | |
| tuesday | MINUTE(INT32) | REQUIRED | 0 | 1440 | - | - | |
| wednesday | MINUTE(INT32) | REQUIRED | 0 | 1440 | - | - | |
| thursday | MINUTE(INT32) | REQUIRED | 0 | 1440 | - | - | |
| friday | MINUTE(INT32) | REQUIRED | 0 | 1440 | - | - | |
| saturday | MINUTE(INT32) | REQUIRED | 0 | 1440 | - | - | |
| sunday | MINUTE(INT32) | REQUIRED | 0 | 1440 | - | - | |
| allowance_type_id | CUSTOM | REQUIRED | 0 | 1 | - | ||
| monday_label | [BYTE] | ✓ | OPTIONAL | 0 | 255 | - | - |
| tuesday_label | [BYTE] | ✓ | OPTIONAL | 0 | 255 | - | - |
| wednesday_label | [BYTE] | ✓ | OPTIONAL | 0 | 255 | - | - |
| thursday_label | [BYTE] | ✓ | OPTIONAL | 0 | 255 | - | - |
| friday_label | [BYTE] | ✓ | OPTIONAL | 0 | 255 | - | - |
| saturday_label | [BYTE] | ✓ | OPTIONAL | 0 | 255 | - | - |
| sunday_label | [BYTE] | ✓ | OPTIONAL | 0 | 255 | - | - |
Sample cURL
curl --location --request POST "{{ROOT}}/v4/work/create/" \
-H "Authorization: Bearer {{BEARER_TOKEN}}" \
-H "app-id:{{APP_ID}}" \
-H "Content-Type: application/json" \
-H "Accept-Encoding: gzip" \
-H "accept: */*" \
--data '{"user_id": "123456","allowance_type_id": "0"}'
Sample response
[
{
"object_name":"work_id",
"type":"Int32",
"is_nullable":false,
"nest":null,
"custom":null
"note":
}
]