Create new events

POST /events
application/json

Body Required

Responses

POST /events
curl \
 -X POST https://api.zooza.app/v1/events \
 -H "Content-Type: application/json" \
 -d '[{"duration":42,"date_string":"YYYY-MM-DD","time_string":"HH:MM","course_id":42,"schedule_id":42,"trainer_id":42,"trainer_rate_type_id":42,"place_id":42,"room_id":42}]'
Request examples
[
  {
    "duration": 42,
    "date_string": "YYYY-MM-DD",
    "time_string": "HH:MM",
    "course_id": 42,
    "schedule_id": 42,
    "trainer_id": 42,
    "trainer_rate_type_id": 42,
    "place_id": 42,
    "room_id": 42
  }
]
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"
      }
    ]
  }
]