PUT ./ani/periods
It is used to update a period for a school year.
PUT parameters
| Name | Value Type | Validation | Details |
|---|---|---|---|
| sanID | int | Required | The period ID |
| type | string | Required | values['semestru','trimestru','modul','an'] |
| isActive | int | Required | values[0,1]; Set the period as active. |
| startDate | date | Required; rfc_date | Sets the begininngs of the period. |
| endDate | date | Required; rfc_date | Sets the end of the period. |
| orderID | int | Required | Set the school year order. |
Validation
| Error Field | Error Code | Error Message |
|---|---|---|
| sanID | 101 | Invalid sanID. |
| 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 periods from DB |
| startDate & endDate | 105 | The period should be fully included in the selected school year. |
| orderID | 20 | The field must contain a number greater than zero. |
| type | 26 | The field must contain a one of the following values: %%. |
Output example
{"result": true}
