POST ./ani/vacations

It is used to add new period for a school year.

POST parameters

NameValue TypeValidationDetails
ascIDintRequiredSchool Year
namestringRequired; min_length[3]Name of the vacation
startDatedateRequired; rfc_dateSets the begininngs of the vacation.
endDatedateRequired; rfc_dateSets the end of the vacation.

Validation

Error FieldError CodeError Message
ascID101Invalid ascID.
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 selected school year.

Output example

{
"id": 13
}