PUT ./ani/periods

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

PUT parameters

NameValue TypeValidationDetails
sanIDintRequiredThe period ID
typestringRequiredvalues['semestru','trimestru','modul','an']
isActiveintRequiredvalues[0,1]; Set the period as active.
startDatedateRequired; rfc_dateSets the begininngs of the period.
endDatedateRequired; rfc_dateSets the end of the period.
orderIDintRequiredSet the school year order.

Validation

Error FieldError CodeError Message
sanID101Invalid sanID.
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.
orderID20The field must contain a number greater than zero.
type26The field must contain a one of the following values: %%.

Output example

{
"result": true
}