PUT ./ani/vacations
It is used to update a period for a school year.
PUT parameters
| Name | Value Type | Validation | Details |
|---|
| v2pID | int | Required | The vacation ID |
| name | string | min_length[3] | Name of the period |
| startDate | date | Required; rfc_date | Sets the begininngs of the period. |
| endDate | date | Required; rfc_date | Sets the end of the period. |
Validation
| Error Field | Error Code | Error Message |
|---|
| v2pID | 101 | Invalid v2pID. |
| startDate, endDate | 102 | The date in invalid |
| endDate | 103 | The end date must be higher than start date. |
| endDate | 104 | The selected period is overlaped with other vacation. |
| startDate & endDate | 105 | The period should be fully included in the school year. |
Output example
{
"result": true
}