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

NameValue TypeValidationDetails
sioIDstringRequiredId of time slot set from GET ./orar/sio
clIDstringRequiredClass ID.
ziID[]arrayRequiredvalues[1..7] ; Days ID. 1 = Monday...7 = Sunday.
ioID[]arrayRequiredId of a time slot in the set.
cmcID[]arrayRequiredThe link ID between a teacher, a subject and a class.
saptTip[]arrayRequiredvalues[0,1,2]; Weekly frequency. 0 = all weeks; 1 = Even weel, 2= Odd week
actNume[]arrayRequiredName of the activity.
actUaID[]arrayRequiredThe user with whom the activity is supported from actNume.

Validation

Error FieldError CodeError Message
sioID101Time slot doesn't exist.
clID102The class doesn't exist.
ioID[]103Time slot doesn't exist.
cmcID[]104cmcID doesn't exist.
actUaID[]105uaID doesn't exist.

Output example

{
"result": true
}