POST ./timetables/{timetableID}/activities
Create a new timetable activity.
POST parameters
| Name | Value Type | Validation | Details |
|---|---|---|---|
| timetableID | int | Required | Timetable id |
| slotID | int | Required | slot id |
| cadID | int | Required | teacher id |
| clID | int | Required | class id |
| roomID | int | Optional | Room id |
| dayID | string | Required | activity day |
| type | string | Required(official,extra) | activity type |
| cmcID | int | Required if type = 'official' | incadrare id |
| name | string | Required if type = 'extra' | activity name |
Validation
| Error Field | Error Code | Error Message |
|---|---|---|
| timetableID | 101 | timetableID not found. |
| slotID | 101 | slotID not found. |
| cadID | 101 | cadID not found |
| clID | 101 | clID not found |
| clID | 102 | clAscID does not match timetable ascID |
| roomID | 101 | roomID not found |
| dayID | 26 | The field must contain one of:Sun,Mon,Tue,Wed,Thu,Fri,Sat |
| type | 26 | The field must contain one of the following values:official,extra |
| cmcID | 101 | cmcID not found |
| cmcID | 102 | cmcClasaID does not match clID |
| cmcID | 103 | cmcCadruID does not match cadID. |
Output example
{"result": true}
