PUT ./ani/vacations

It is used to update a period for a school year.

PUT parameters

NameValue TypeValidationDetails
v2pIDintRequiredThe vacation ID
namestringmin_length[3]Name of the period
startDatedateRequired; rfc_dateSets the begininngs of the period.
endDatedateRequired; rfc_dateSets the end of the period.

Validation

Error FieldError CodeError Message
v2pID101Invalid v2pID.
startDate, endDate102The date in invalid
endDate103The end date must be higher than start date.
endDate104The selected period is overlaped with other vacation.
startDate & endDate105The period should be fully included in the school year.

Output example

{
"result": true
}