Update event

PUT /events/{ID}

Path parameters

  • ID integer Required

    Resource ID

application/json

Body

Responses

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"
    }
  ]
}