PUT ./orar/sio
It is used to modify a time slot.
- The time slots should not overlap.
- You can change only the name or only the time slots by calling the endpoint only with specific parameters.
- to create a new time slot the parameter ioID should be 0.
- The time slotis that are not present in the request will be deleted
PUT parameters
Name | Value Type | Validation | Details |
---|
sioID | int | Requried | Time slot ID. |
sioNume | string | Required | Name. |
ioOraStart[] | array | Required | Start hour. Format HH:MM. |
ioOraEnd[] | array | Required | End hour. Format HH:MM. |
Validation
Error Field | Error Code | Error Message |
---|
sioID | 101 | Time slot does not exist. |
ioOraStart, ioOraEnd | 103 | Invalid hour. |
ioOraStart | 102 | Invalid time slot. |
Output example
{
"result": true
}