Update schedule
Path parameters
-
Resource ID
Body
Any parameter can be sent, there's no mandatory parameters
-
price integer(float)
-
registration_fee integer(float)
-
capacity integer
-
registrations_cap integer
-
status string
Values are
active
,archive
, orinactive
. -
Values are
always
,never
, orweek
. -
name string
-
note string
-
extra_capacity integer
-
extra_capacity_usage string
-
billing_period_id integer
-
course_id integer
-
trainer_id integer
-
update_mode_trainer string
If sent along with trainer_id will update either all or just upcoming events
Values are
upcoming
orall
. -
trainer_rate_type_id integer
-
If sent along with trainer_rate_type_id will update either all or just upcoming events
Values are
upcoming
orall
. -
duration integer
-
update_mode_duration string
If sent along with duration will update either all or just upcoming events
Values are
upcoming
orall
. -
place_id integer
-
room_id integer
-
update_mode_place string
If sent along with place_id and room_id will update either all or just upcoming events
Values are
upcoming
orall
.
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
}