Update event
Path parameters
-
Resource ID
Body
-
notify boolean
Notify attendees about changes in the event
-
event_name string
-
duration integer
-
status string
Values are
unplanned
orscheduled
. -
trainer_id integer
Trainer_ID is a synonym to User_ID
-
room_id integer
-
place_id integer
-
trainer_rate_type_id integer
-
date string(date-time)
-
attendance string
not used
-
video_expires_in string
-
video_expiry string
-
schedule_id integer
-
additional_trainers array[object]
PUT
/events/{ID}
curl \
-X PUT https://api.zooza.app/v1/events/{ID} \
-H "Content-Type: application/json" \
-d '{"notify":true,"event_name":"string","duration":42,"status":"unplanned","trainer_id":42,"room_id":42,"place_id":42,"trainer_rate_type_id":42,"date":"2024-05-04T09:42:00+00:00","attendance":"string","video_expires_in":"string","video_expiry":"string","schedule_id":42,"additional_trainers":[{"trainer_id":42,"is_active":true}]}'
Request examples
{
"notify": true,
"event_name": "string",
"duration": 42,
"status": "unplanned",
"trainer_id": 42,
"room_id": 42,
"place_id": 42,
"trainer_rate_type_id": 42,
"date": "2024-05-04T09:42:00+00:00",
"attendance": "string",
"video_expires_in": "string",
"video_expiry": "string",
"schedule_id": 42,
"additional_trainers": [
{
"trainer_id": 42,
"is_active": true
}
]
}
Response examples (200)
{
"id": 42,
"name": "string",
"status": "scheduled",
"date": "2024-05-04T09:42:00+00:00",
"happened": true,
"live_stream": 42,
"has_live_stream": true,
"replacement": true,
"end": "2024-05-04T09:42:00+00:00",
"duration": 42,
"cancellation_limit": "2024-05-04T09:42:00+00:00",
"can_cancel": true,
"has_video": true,
"has_files": true,
"places": {},
"courses": {},
"trainers": {},
"additional_trainers": [
{
"role": "string",
"full_name": "string"
}
]
}