POST ./orar/clasa
It is used to create the schedule to a class.
The activities in a time interval can be of 2 types: cmcID or actName
- cmcID: the actName and actUaID fields will be present but empty. The other fields are required.
- actName: The cmcID field will be present but empty. The other fields are required.
POST parameters
| Name | Value Type | Validation | Details |
|---|---|---|---|
| sioID | string | Required | Id of time slot set from GET ./orar/sio |
| clID | string | Required | Class ID. |
| ziID[] | array | Required | values[1..7] ; Days ID. 1 = Monday...7 = Sunday. |
| ioID[] | array | Required | Id of a time slot in the set. |
| cmcID[] | array | Required | The link ID between a teacher, a subject and a class. |
| saptTip[] | array | Required | values[0,1,2]; Weekly frequency. 0 = all weeks; 1 = Even weel, 2= Odd week |
| actNume[] | array | Required | Name of the activity. |
| actUaID[] | array | Required | The user with whom the activity is supported from actNume. |
Validation
| Error Field | Error Code | Error Message |
|---|---|---|
| sioID | 101 | Time slot doesn't exist. |
| clID | 102 | The class doesn't exist. |
| ioID[] | 103 | Time slot doesn't exist. |
| cmcID[] | 104 | cmcID doesn't exist. |
| actUaID[] | 105 | uaID doesn't exist. |
Output example
{"result": true}
