Update schedule

PUT /schedules/{ID}

Path parameters

  • ID integer Required

    Resource ID

application/json

Body

Any parameter can be sent, there's no mandatory parameters

Responses

PUT /schedules/{ID}
curl \
 -X PUT https://api.zooza.app/v1/schedules/{ID} \
 -H "Content-Type: application/json" \
 -d '{"price":42,"registration_fee":42,"capacity":42,"registrations_cap":42,"status":"active","notify_trainer_on_cancellation":"always","name":"string","note":"string","extra_capacity":42,"extra_capacity_usage":"string","billing_period_id":42,"course_id":42,"trainer_id":42,"update_mode_trainer":"upcoming","trainer_rate_type_id":42,"update_mode_trainer_rate_type":"upcoming","duration":42,"update_mode_duration":"upcoming","place_id":42,"room_id":42,"update_mode_place":"upcoming"}'
Request examples
{
  "price": 42,
  "registration_fee": 42,
  "capacity": 42,
  "registrations_cap": 42,
  "status": "active",
  "notify_trainer_on_cancellation": "always",
  "name": "string",
  "note": "string",
  "extra_capacity": 42,
  "extra_capacity_usage": "string",
  "billing_period_id": 42,
  "course_id": 42,
  "trainer_id": 42,
  "update_mode_trainer": "upcoming",
  "trainer_rate_type_id": 42,
  "update_mode_trainer_rate_type": "upcoming",
  "duration": 42,
  "update_mode_duration": "upcoming",
  "place_id": 42,
  "room_id": 42,
  "update_mode_place": "upcoming"
}
Response examples (200)
{
  "company_id": "string",
  "id": 42,
  "course_id": 42,
  "time": 42,
  "duration": 42,
  "place_id": 42,
  "room_id": 42,
  "trainer_id": 42,
  "registrations_cap": 42,
  "capacity": 42,
  "extra_capacity": 42,
  "total_events": 42,
  "__calc__total_avg_nps_score": 42,
  "__calc__total_requests": 42,
  "__calc__registered": 42,
  "__calc__waitlist": 42,
  "trainer_rate_type_id": 42,
  "__calc__remaining_events": 42,
  "type": "string",
  "name": "string",
  "start": "2024-05-04",
  "end": "2024-05-04",
  "extra_capacity_usage": "string",
  "status": "string",
  "note": "string",
  "notify_trainer_on_cancellation": "string",
  "public": true,
  "online_registration": true,
  "price": 42,
  "registration_fee": 42
}