Update course

PUT /courses/{ID}

Path parameters

  • ID integer Required

    Resource ID

application/json

Body Required

  • registration_type string
  • course_type string
  • description string
  • url string
  • name string
  • 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 string(date-time)
  • waitlist string
  • late_registrations string
  • online_card_provider string
  • online_transfer_provider string
  • online_registration boolean
  • auto_waitlist_notification boolean
  • hide_if_full boolean
  • use_extra_fields boolean
  • feedback_during_course boolean
  • feedback_after_course boolean
  • cash boolean
  • online_card boolean
  • online_transfer boolean
  • fees_included_in_price boolean
  • public boolean
  • archive boolean
  • for_children boolean
  • allow_guest_registration boolean
  • payments_managed_by_buyer boolean
  • allow_reschedule_of_replacements boolean
  • flexible_replacements_limit boolean
  • replacements_limit_per_events integer
  • allow_replacements_from_other_companies boolean
  • payment_schedule_is_mandatory boolean
  • allow_replacements boolean
  • allow_replacements_waitlist boolean
  • allow_custom_replacements boolean
  • custom_email integer

    Custom registration confirmation email ID

  • custom_email_event_notification integer

    Custom event notification email ID

  • allow_replacement_cancellation boolean
  • allow_using_replacement_credits_as_discount boolean
  • auto_approve_custom_replacements boolean
  • upcoming_events_notification boolean
  • event_notfication boolean
  • replacements_settings object
  • replacements_settings_other_companies object
  • hide_before integer
  • replacements_limit integer
  • price integer(float)
  • registration_fee integer(float)
  • iban string
  • color string
  • swift string
  • registration_slots_max integer
  • registration_slots_min integer
  • get_basic_fields_from string

    Values are registrant or all.

  • get_extra_fields_from string

    Values are all or other.

  • extra_fields array[object]
    Hide extra_fields attributes Show extra_fields attributes object
    • id integer

      If submitted - existing field will be updated

    • active boolean
    • custom_label string
    • field_options object
    • course_id integer

      Required if creating new field

    • field_id integer

      Required if creating new field. It's the field id from the definition, not stored instance on course

Responses

  • 200 application/json

    Updated course

    Hide response attributes Show response attributes object
    • company_id string

      ID of company that record belongs to

    • id integer

      Resource ID

    • registration_slots_min integer
    • registration_slots_max integer
    • registration_open boolean
    • show_on_site boolean
    • allow_cancel_until integer
    • replacements_limit integer
    • custom_email integer
    • custom_email_event_notification integer
    • hide_before integer
    • replacements_limit_per_events integer
    • cash boolean
    • online_card boolean
    • online_transfer boolean
    • fees_included_in_price boolean
    • public boolean
    • archive boolean
    • online_registration boolean
    • on_behalf boolean
    • feedback_during_course boolean
    • feedback_after_course boolean
    • hide_if_full boolean
    • allow_replacements boolean
    • allow_custom_replacements boolean
    • auto_approve_custom_replacements boolean
    • allow_replacements_waitlist boolean
    • auto_waitlist_notification boolean
    • use_extra_fields boolean
    • for_children boolean
    • event_notfication boolean
    • allow_registration_after_end boolean
    • allow_replacement_cancellation boolean
    • upcoming_events_notification boolean
    • allow_guest_registration boolean
    • allow_replacements_from_other_companies boolean
    • payment_schedule_is_mandatory boolean
    • allow_using_replacement_credits_as_discount boolean
    • flexible_replacements_limit boolean
    • allow_reschedule_of_replacements boolean
    • payments_managed_by_buyer boolean
    • online_card_provider string

      Values are tatra_banka, tatra_banka_cz, or stripe.

    • online_transfer_provider string

      Value is besteron.

    • created string(date-time)
    • name string
    • url string
    • get_extra_fields_from string

      Extra fields are required for:

      • all: Every person
      • other: Every person but registrant (first person)

      Values are all or other.

    • get_basic_fields_from string

      Basic fields ( First name, last name, email, phone ) are required for:

      • all: Every person
      • registrant: Just first person

      Values are all or registrant.

    • registration_type string

      Values are full2, open, or single.

    • course_type string

      Values are course, event, online_event, or photography.

    • waitlist string

      Values are any or this.

    • description string
    • theme string
    • late_registrations string

      Values are confirmation_required or auto_approve.

    • 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 string(date-time)
    • iban string
    • swift string
    • color string
    • price number(float)
    • registration_fee number(float)
    • __calc__fee_cash number(float)
    • __calc__fee_online_card number(float)
    • __calc__fee_online_transfer number(float)
    • replacements_settings object
      Hide replacements_settings attributes Show replacements_settings attributes object
    • replacements_settings_other_companies object
      Hide replacements_settings_other_companies attributes Show replacements_settings_other_companies attributes object
    • extra_fields array[object]
      Hide extra_fields attributes Show extra_fields attributes object
      • id integer

        Resource ID

      • field_order integer
      • course_id integer

        Resource ID

      • column_name string

        Values are dob, full_name, address, slots, business_name, business_address, business_id, tax_id, vat, identification_number, extra_field_1, extra_field_2, extra_field_3, extra_field_4, or extra_field_5.

      • name string
      • description string
      • custom_label string
      • active boolean
      • field_options object

        Age limit is used with field dob to limit values submitted within this extra field.

        Limit types

        There are three possible types: 1. none - limit is not used 2. date - date range is used for validation. Submitted value must be formated as date string 3. age - age range is used for validation. Submitted value must be formatted as integer

        Limit units

        If limit type is set to age, limit unit describes whether submitted integer is considered to be in years or months

        Limit usage

        Limit usage defines range that is used for validation: 1. both - both minimum limit and maximum limits are used. That means that submitted value must fall between these two values 2. min- only minimum value of limit is used. For example if minimum limit is set to 3 months, then any number equal or larger than 3 will pass the test 3. max- the opposite of minimum value

        Minimum and maximum limit values

        Depending on limit type this can either be a number (in case of age) or date string (in case of date)

        Hide field_options attributes Show field_options attributes object
    • feedback_questions array[object]
      Hide feedback_questions attributes Show feedback_questions attributes object
      • course_id integer

        Resource ID

      • company_id integer

        Resource ID

      • question_id integer

        Resource ID

      • question_active_during boolean
      • question_active_after boolean
      • is_mandatory boolean
      • name string
      • type string
PUT /courses/{ID}
curl \
 --request PUT 'https://api.zooza.app/v1/courses/{ID}' \
 --header "Content-Type: application/json" \
 --data '{"registration_type":"string","course_type":"string","description":"string","url":"string","name":"string","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":"2025-05-04T09:42:00Z","waitlist":"string","late_registrations":"string","online_card_provider":"string","online_transfer_provider":"string","online_registration":true,"auto_waitlist_notification":true,"hide_if_full":true,"use_extra_fields":true,"feedback_during_course":true,"feedback_after_course":true,"cash":true,"online_card":true,"online_transfer":true,"fees_included_in_price":true,"public":true,"archive":true,"for_children":true,"allow_guest_registration":true,"payments_managed_by_buyer":true,"allow_reschedule_of_replacements":true,"flexible_replacements_limit":true,"replacements_limit_per_events":42,"allow_replacements_from_other_companies":true,"payment_schedule_is_mandatory":true,"allow_replacements":true,"allow_replacements_waitlist":true,"allow_custom_replacements":true,"custom_email":42,"custom_email_event_notification":42,"allow_replacement_cancellation":true,"allow_using_replacement_credits_as_discount":true,"auto_approve_custom_replacements":true,"upcoming_events_notification":true,"event_notfication":true,"replacements_settings":{},"replacements_settings_other_companies":{},"hide_before":42,"replacements_limit":42,"price":42,"registration_fee":42,"iban":"string","color":"string","swift":"string","registration_slots_max":42,"registration_slots_min":42,"get_basic_fields_from":"registrant","get_extra_fields_from":"all","extra_fields":[{"id":42,"active":true,"custom_label":"string","field_options":{},"course_id":42,"field_id":42}]}'
Request examples
{
  "registration_type": "string",
  "course_type": "string",
  "description": "string",
  "url": "string",
  "name": "string",
  "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": "2025-05-04T09:42:00Z",
  "waitlist": "string",
  "late_registrations": "string",
  "online_card_provider": "string",
  "online_transfer_provider": "string",
  "online_registration": true,
  "auto_waitlist_notification": true,
  "hide_if_full": true,
  "use_extra_fields": true,
  "feedback_during_course": true,
  "feedback_after_course": true,
  "cash": true,
  "online_card": true,
  "online_transfer": true,
  "fees_included_in_price": true,
  "public": true,
  "archive": true,
  "for_children": true,
  "allow_guest_registration": true,
  "payments_managed_by_buyer": true,
  "allow_reschedule_of_replacements": true,
  "flexible_replacements_limit": true,
  "replacements_limit_per_events": 42,
  "allow_replacements_from_other_companies": true,
  "payment_schedule_is_mandatory": true,
  "allow_replacements": true,
  "allow_replacements_waitlist": true,
  "allow_custom_replacements": true,
  "custom_email": 42,
  "custom_email_event_notification": 42,
  "allow_replacement_cancellation": true,
  "allow_using_replacement_credits_as_discount": true,
  "auto_approve_custom_replacements": true,
  "upcoming_events_notification": true,
  "event_notfication": true,
  "replacements_settings": {},
  "replacements_settings_other_companies": {},
  "hide_before": 42,
  "replacements_limit": 42,
  "price": 42,
  "registration_fee": 42,
  "iban": "string",
  "color": "string",
  "swift": "string",
  "registration_slots_max": 42,
  "registration_slots_min": 42,
  "get_basic_fields_from": "registrant",
  "get_extra_fields_from": "all",
  "extra_fields": [
    {
      "id": 42,
      "active": true,
      "custom_label": "string",
      "field_options": {},
      "course_id": 42,
      "field_id": 42
    }
  ]
}
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": "2025-05-04T09:42:00Z",
  "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": "2025-05-04T09:42:00Z",
  "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"
    }
  ]
}