Create course
Body Required
-
name string
-
public boolean
-
online_registration boolean
-
registration_type string
Values are
full2
,single
, oropenapi
. -
course_type string
Values are
course
,event
,online_event
, orphotography
.
POST
/courses
curl \
-X POST https://api.zooza.app/v1/courses \
-H "Content-Type: application/json" \
-d '{"name":"string","public":true,"online_registration":true,"registration_type":"full2","course_type":"course"}'
Request examples
{
"name": "string",
"public": true,
"online_registration": true,
"registration_type": "full2",
"course_type": "course"
}
Response examples (200)
{
"company_id": "string",
"id": 42,
"registration_slots_min": 42,
"registration_slots_max": 42,
"registration_open": true,
"show_on_site": true,
"allow_cancel_until": 42,
"replacements_limit": 42,
"custom_email": 42,
"custom_email_event_notification": 42,
"hide_before": 42,
"replacements_limit_per_events": 42,
"cash": true,
"online_card": true,
"online_transfer": true,
"fees_included_in_price": true,
"public": true,
"archive": true,
"online_registration": true,
"on_behalf": true,
"feedback_during_course": true,
"feedback_after_course": true,
"hide_if_full": true,
"allow_replacements": true,
"allow_custom_replacements": true,
"auto_approve_custom_replacements": true,
"allow_replacements_waitlist": true,
"auto_waitlist_notification": true,
"use_extra_fields": true,
"for_children": true,
"event_notfication": true,
"allow_registration_after_end": true,
"allow_replacement_cancellation": true,
"upcoming_events_notification": true,
"allow_guest_registration": true,
"allow_replacements_from_other_companies": true,
"payment_schedule_is_mandatory": true,
"allow_using_replacement_credits_as_discount": true,
"flexible_replacements_limit": true,
"allow_reschedule_of_replacements": true,
"payments_managed_by_buyer": true,
"online_card_provider": "tatra_banka",
"online_transfer_provider": "besteron",
"created": "2024-05-04T09:42:00+00:00",
"name": "string",
"url": "string",
"get_extra_fields_from": "all",
"get_basic_fields_from": "all",
"registration_type": "full2",
"course_type": "course",
"waitlist": "any",
"description": "string",
"theme": "string",
"late_registrations": "confirmation_required",
"custom_label_note": "string",
"custom_label_first_name": "string",
"custom_label_last_name": "string",
"custom_label_phone": "string",
"custom_label_email": "string",
"collect_feedback_start": "2024-05-04T09:42:00+00:00",
"iban": "string",
"swift": "string",
"color": "string",
"price": 42.0,
"registration_fee": 42.0,
"__calc__fee_cash": 42.0,
"__calc__fee_online_card": 42.0,
"__calc__fee_online_transfer": 42.0,
"replacements_settings": {
"courses": [],
"billing_periods": [],
"places": []
},
"replacements_settings_other_companies": {
"companies": [],
"billing_periods": [],
"places": [],
"schedules": []
},
"extra_fields": [
{
"id": 42,
"field_order": 42,
"course_id": 42,
"column_name": "dob",
"name": "string",
"description": "string",
"custom_label": "string",
"active": true,
"field_options": {
"age_limit_type": "none",
"age_limit_units": "years",
"age_limit_min": 42,
"age_limit_max": 42,
"age_limit_use": "both"
}
}
],
"feedback_questions": [
{
"course_id": 42,
"company_id": 42,
"question_id": 42,
"question_active_during": true,
"question_active_after": true,
"is_mandatory": true,
"name": "string",
"type": "string"
}
]
}