POST ./ani/periods

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

POST parameters

NameValue TypeValidationDetails
ascIDintRequiredvalues[1]; School Year
namestringRequired, min_length[3]Name of the period
shortNamestringRequired, min_length[3]The short version of the name
isActiveintSet the period as active.
startDatedateRequired, rfc_datetimeSets the begininngs of the period.
endDatedateRequired, rfc_datetimeSets the end of the period.

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 periods from DB
startDate & endDate105The period should be fully included in the selected school year.

Output example

{
"id": 61
}