PUT ./timetables/activities/{activityId}

Change the activity data.

NameValue TypeValidationDetails
activityIdintRequiredTimetable id
slotIDintRequiredslot id
cadIDintRequiredteacher id
clIDintRequiredclass id
roomIDintOptionalRoom id
dayIDstringRequiredactivity day
typestringRequired(official,extra)activity type
cmcIDintRequired if type = 'official'incadrare id
namestringRequired if type = 'extra'activity name

Validation

Error FieldError CodeError Message
activityId101timetableID not found.
slotID101slotID not found.
cadID101cadID not found
clID101clID not found
clID102clAscID does not match timetable ascID
roomID101roomID not found
dayID26The field must contain one of:Sun,Mon,Tue,Wed,Thu,Fri,Sat
type26The field must contain one of the following values:official,extra
cmcID101cmcID not found
cmcID102cmcClasaID does not match clID
cmcID103cmcCadruID does not match cadID.

Output example

{
"result": true
}