Update event

PUT /events/{ID}

Path parameters

  • ID integer Required

    Resource ID

application/json

Body

  • notify boolean

    Notify attendees about changes in the event

  • event_name string
  • duration integer
  • status string

    Values are unplanned or scheduled.

  • 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]
    Hide additional_trainers attributes Show additional_trainers attributes object
    • trainer_id integer

      Trainer_ID is a synonym to User_ID

    • is_active boolean

Responses

  • 200 application/json

    Updated event (TODO - Verify that the resource is exactly the same as GET)

    Hide response attributes Show response attributes object
    • id integer
    • name string
    • status string

      Values are scheduled or unplanned.

    • date string(date-time)
    • happened boolean
    • live_stream integer
    • has_live_stream boolean
    • replacement boolean
    • end string(date-time)
    • duration integer
    • cancellation_limit string(date-time)
    • can_cancel boolean
    • has_video boolean
    • has_files boolean
    • places object
    • courses object
    • trainers object
    • additional_trainers array[object]
      Hide additional_trainers attributes Show additional_trainers attributes object
      • role string
      • full_name string
PUT /events/{ID}
curl \
 --request PUT 'https://api.zooza.app/v1/events/{ID}' \
 --header "Content-Type: application/json" \
 --data '{"notify":true,"event_name":"string","duration":42,"status":"unplanned","trainer_id":42,"room_id":42,"place_id":42,"trainer_rate_type_id":42,"date":"2025-05-04T09:42:00Z","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": "2025-05-04T09:42:00Z",
  "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": "2025-05-04T09:42:00Z",
  "happened": true,
  "live_stream": 42,
  "has_live_stream": true,
  "replacement": true,
  "end": "2025-05-04T09:42:00Z",
  "duration": 42,
  "cancellation_limit": "2025-05-04T09:42:00Z",
  "can_cancel": true,
  "has_video": true,
  "has_files": true,
  "places": {},
  "courses": {},
  "trainers": {},
  "additional_trainers": [
    {
      "role": "string",
      "full_name": "string"
    }
  ]
}