{"components":{"schemas":{"Account":{"properties":{"category_id":{"format":"uuid","type":"string"},"checked_in_at":{"format":"date-time","type":["string","null"]},"checkin_code":{"description":"Short random code for check-in by voice or by hand","type":"string"},"completed_by_staff_at":{"description":"Marked complete by hand by the staff: the recalculation from the documents does not change it until the staff chooses another status","format":"date-time","type":["string","null"]},"created_at":{"format":"date-time","type":"string"},"email":{"type":"string"},"email_confirmed_at":{"description":"Double opt-in: while NULL the registration does not count and cannot sign in","format":"date-time","type":["string","null"]},"event_id":{"format":"uuid","type":"string"},"first_name":{"type":"string"},"id":{"format":"uuid","type":"string"},"kind":{"description":"individual | team","type":"string"},"last_name":{"type":"string"},"phone":{"type":["string","null"]},"status":{"description":"pending | complete | cancelled | removed","type":"string"},"team_name":{"type":["string","null"]},"updated_at":{"format":"date-time","type":"string"}},"required":["id","event_id","category_id","kind","email","checkin_code","first_name","last_name","status","created_at","updated_at"],"type":"object"},"AccountStatusRequest":{"properties":{"force":{"description":"true to reactivate a cancelled or removed registration even when the category is full (without it, 409 sold out)","type":"boolean"},"status":{"description":"pending | complete | cancelled | removed","type":"string"}},"required":["status"],"type":"object"},"AccountView":{"allOf":[{"$ref":"#/components/schemas/Account"},{"properties":{"checkin_code":{"description":"Short code for check-in by voice or by hand","type":"string"},"linked_to_boxly":{"description":"Signed in with Boxly credentials (without saying which user)","type":"boolean"},"participants":{"items":{"$ref":"#/components/schemas/ParticipantView"},"type":"array"}},"required":["checkin_code","linked_to_boxly","participants"],"type":"object"}]},"AttendanceRequest":{"properties":{"status":{"description":"attended or no_show (from 2 hours before the start) | booked (to correct; once the class has ended, removing an attendance makes it no_show)","type":"string"}},"required":["status"],"type":"object"},"AttendanceRow":{"properties":{"attended":{"format":"int64","type":"integer"},"booked":{"description":"Valid bookings (booked, attended or no-show)","format":"int64","type":"integer"},"cancelled":{"format":"int64","type":"integer"},"first_name":{"type":"string"},"last_name":{"type":"string"},"late_cancelled":{"format":"int64","type":"integer"},"no_show":{"format":"int64","type":"integer"},"user_id":{"format":"uuid","type":"string"}},"required":["user_id","first_name","last_name","booked","attended","no_show","late_cancelled","cancelled"],"type":"object"},"BookForRequest":{"properties":{"check_in":{"description":"true = the member is already here: booked and checked in together, from the window in which attendance can be marked (before it: 409; class full: 409, no waitlist). With an API key the set_attendance permission is also required. Once the class has started the booking is created as attended even without it","type":["boolean","null"]},"force":{"description":"true = books even without a valid membership/certificate (e.g. free trial)","type":["boolean","null"]},"user_id":{"format":"uuid","type":"string"}},"required":["user_id"],"type":"object"},"BookOutcome":{"oneOf":[{"description":"Spot confirmed","properties":{"booking":{"$ref":"#/components/schemas/Booking"},"kind":{"enum":["booked"],"type":"string"}},"required":["booking","kind"],"type":"object"},{"description":"Class full: on the waitlist at position `rank`","properties":{"entry":{"$ref":"#/components/schemas/WaitlistEntry"},"kind":{"enum":["waitlisted"],"type":"string"},"rank":{"format":"int64","type":"integer"}},"required":["entry","rank","kind"],"type":"object"},{"description":"The same request was already recorded earlier","properties":{"booking":{"$ref":"#/components/schemas/Booking"},"kind":{"enum":["already_booked"],"type":"string"}},"required":["booking","kind"],"type":"object"}]},"BookedLessons":{"description":"What to do with the future classes that have bookings when the template's days, time, class type or location change.","enum":["move","keep"],"type":"string"},"Booking":{"properties":{"booked_at":{"format":"date-time","type":"string"},"booked_by":{"format":"uuid","type":["string","null"]},"cancelled_at":{"format":"date-time","type":["string","null"]},"cancelled_by_class":{"description":"Cancelled because the gym cancelled the class (credit refunded): \"Restore\" books it again.","type":"boolean"},"checked_in_at":{"format":"date-time","type":["string","null"]},"created_at":{"format":"date-time","type":"string"},"credit_tx_id":{"description":"Credit ledger movement charged by this booking","format":"uuid","type":["string","null"]},"gym_id":{"format":"uuid","type":"string"},"id":{"format":"uuid","type":"string"},"occurrence_id":{"format":"uuid","type":"string"},"status":{"type":"string"},"updated_at":{"format":"date-time","type":"string"},"user_id":{"format":"uuid","type":"string"}},"required":["id","gym_id","occurrence_id","user_id","status","booked_at","created_at","updated_at"],"type":"object"},"BookingWithUser":{"description":"Booking with the user's data, for the staff attendance list.","properties":{"booked_at":{"format":"date-time","type":"string"},"booked_by":{"format":"uuid","type":["string","null"]},"checked_in_at":{"format":"date-time","type":["string","null"]},"email":{"type":"string"},"first_name":{"type":"string"},"id":{"format":"uuid","type":"string"},"last_name":{"type":"string"},"status":{"type":"string"},"user_id":{"format":"uuid","type":"string"}},"required":["id","user_id","first_name","last_name","email","status","booked_at"],"type":"object"},"BroadcastRequest":{"properties":{"body":{"type":"string"},"email":{"description":"Also by email, to those who allow it","type":["boolean","null"]},"title":{"type":"string"}},"required":["title","body"],"type":"object"},"BroadcastResponse":{"properties":{"queued":{"type":"boolean"}},"required":["queued"],"type":"object"},"Category":{"properties":{"capacity":{"format":"int32","type":["integer","null"]},"constraints":{"type":"object"},"created_at":{"format":"date-time","type":"string"},"event_id":{"format":"uuid","type":"string"},"id":{"format":"uuid","type":"string"},"kind":{"description":"individual | team","type":"string"},"name":{"type":"string"},"price_cents":{"format":"int32","type":["integer","null"]},"sort":{"format":"int32","type":"integer"},"team_max":{"format":"int32","type":"integer"},"team_min":{"format":"int32","type":"integer"}},"required":["id","event_id","name","kind","team_min","team_max","constraints","sort","created_at"],"type":"object"},"CategoryLeaderboard":{"properties":{"category":{"$ref":"#/components/schemas/Category"},"leaderboard":{"$ref":"#/components/schemas/EventLeaderboard"}},"required":["category","leaderboard"],"type":"object"},"CategoryPatch":{"properties":{"capacity":{"description":"Places in the category (`null` = no limit)","format":"int32","type":["integer","null"]},"constraints":{"type":["object","null"]},"force":{"description":"Update only: true to lower the places below the registrations already holding them (without it, 409)","type":"boolean"},"kind":{"description":"individual | team","type":["string","null"]},"name":{"type":["string","null"]},"price_cents":{"description":"Fee in cents (`null` = free)","format":"int32","type":["integer","null"]},"sort":{"format":"int32","type":["integer","null"]},"team_max":{"format":"int32","type":["integer","null"]},"team_min":{"format":"int32","type":["integer","null"]}},"type":"object"},"CheckinOutcome":{"enum":["checked_in","already_checked_in","walk_in","no_booking"],"type":"string"},"CheckinRequest":{"properties":{"occurrence_id":{"description":"The class to check in to. Absent = the booking \"happening now\".","format":"uuid","type":["string","null"]},"token":{"description":"The content of the QR shown by the member's app","type":"string"},"walk_in":{"description":"Without a booking: books and marks as attended (`occurrence_id` required). Membership and certificate apply, the booking window does not: from 2 hours before the start until the end.","type":["boolean","null"]}},"required":["token"],"type":"object"},"CheckinResponse":{"properties":{"booking":{"oneOf":[{"$ref":"#/components/schemas/Booking"},{"type":"null"}]},"occurrence":{"oneOf":[{"$ref":"#/components/schemas/Occurrence"},{"type":"null"}]},"outcome":{"$ref":"#/components/schemas/CheckinOutcome"},"user":{"$ref":"#/components/schemas/CheckinUser"},"warnings":{"description":"Things to tell the member: certificate expired, membership over…","items":{"type":"string"},"type":"array"}},"required":["outcome","user","warnings"],"type":"object"},"CheckinUser":{"properties":{"email":{"type":"string"},"first_name":{"type":"string"},"id":{"format":"uuid","type":"string"},"last_name":{"type":"string"}},"required":["id","first_name","last_name","email"],"type":"object"},"ClassTemplate":{"properties":{"capacity":{"format":"int32","type":"integer"},"class_type_id":{"format":"uuid","type":"string"},"coach_id":{"format":"uuid","type":["string","null"]},"created_at":{"format":"date-time","type":"string"},"deactivated_at":{"description":"When it was deactivated; null if it is active","format":"date-time","type":["string","null"]},"duration_min":{"format":"int32","type":"integer"},"gym_id":{"format":"uuid","type":"string"},"id":{"format":"uuid","type":"string"},"is_active":{"description":"false = deactivated: it no longer generates classes, it stays for the history","type":"boolean"},"location_id":{"format":"uuid","type":"string"},"room_id":{"format":"uuid","type":["string","null"]},"start_time":{"description":"Local time of the location","example":"18:30:00","type":"string"},"updated_at":{"format":"date-time","type":"string"},"valid_from":{"format":"date","type":"string"},"valid_until":{"format":"date","type":["string","null"]},"weekdays":{"description":"ISO weekdays: 1 = Monday ... 7 = Sunday","items":{"format":"int32","type":"integer"},"type":"array"}},"required":["id","gym_id","class_type_id","location_id","weekdays","start_time","duration_min","capacity","valid_from","is_active","created_at","updated_at"],"type":"object"},"ClassType":{"properties":{"color":{"type":["string","null"]},"created_at":{"format":"date-time","type":"string"},"credit_cost":{"description":"Entries (credits) consumed by a booking","format":"int32","type":"integer"},"description":{"type":["string","null"]},"duration_min":{"format":"int32","type":"integer"},"gym_id":{"format":"uuid","type":"string"},"id":{"format":"uuid","type":"string"},"is_active":{"type":"boolean"},"level":{"type":["string","null"]},"name":{"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","gym_id","name","duration_min","is_active","credit_cost","created_at","updated_at"],"type":"object"},"ClassTypeLite":{"properties":{"color":{"type":["string","null"]},"id":{"format":"uuid","type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"ClassTypeRequest":{"properties":{"color":{"description":"Hex #RRGGBB","type":["string","null"]},"credit_cost":{"description":"Entries consumed by a booking (1–20, default 1)","format":"int32","type":["integer","null"]},"description":{"type":["string","null"]},"duration_min":{"description":"Default 60","format":"int32","type":["integer","null"]},"level":{"type":["string","null"]},"name":{"type":"string"}},"required":["name"],"type":"object"},"CoachHoursReport":{"description":"Hours worked by coaches in the period: summary per coach and detail.","properties":{"coach_options":{"description":"Coaches to offer as a filter: those with the coach role and anyone who worked in the period","items":{"$ref":"#/components/schemas/CoachOption"},"type":"array"},"coaches":{"description":"One item per coach with classes or sessions in the period, by name; classes without a coach come last","items":{"$ref":"#/components/schemas/CoachHoursSummary"},"type":"array"},"from":{"description":"Start of the period (included)","format":"date-time","type":"string"},"pt_enabled":{"description":"Personal trainer enabled for the gym: only then are PT sessions included","type":"boolean"},"rows":{"description":"Classes and sessions already over, by start time","items":{"$ref":"#/components/schemas/CoachHoursRow"},"type":"array"},"timezone":{"description":"The gym's time zone: the rows' dates and times are in this time zone","type":"string"},"to":{"description":"End of the period (excluded)","format":"date-time","type":"string"}},"required":["from","to","timezone","pt_enabled","coaches","rows","coach_options"],"type":"object"},"CoachHoursRow":{"description":"A group class or PT session already over, in the coach hours report. Dates and times are in the gym's time zone.","properties":{"attended":{"description":"Attended; PT session: 1 if done","format":"int64","type":"integer"},"booked":{"description":"Seats taken (booked + attended + no-shows); PT session: 1 unless cancelled","format":"int64","type":"integer"},"class_type_name":{"description":"Class type (empty for PT sessions)","type":["string","null"]},"coach_id":{"description":"Coach of that single class, even if different from the recurring slot's coach (empty = no coach)","format":"uuid","type":["string","null"]},"coach_name":{"type":["string","null"]},"counted":{"description":"The hours count in the totals (false for cancelled classes and sessions)","type":"boolean"},"date":{"description":"Day of the start in the gym's time zone","format":"date","type":"string"},"end_at":{"format":"date-time","type":"string"},"end_time":{"description":"End time HH:MM in the gym's time zone","type":"string"},"hours":{"description":"The minutes in decimal hours, with at most six decimals: the rows add up to the total","format":"double","type":"number"},"id":{"description":"Id of the class or session","format":"uuid","type":"string"},"kind":{"description":"class (group class) | pt (personal training session)","type":"string"},"location_name":{"description":"Location (for PT sessions the coach's one, if set)","type":["string","null"]},"minutes":{"description":"Minutes worked: actual end minus start (correct even on the night the clocks change); 0 if cancelled","format":"int64","type":"integer"},"room_name":{"type":["string","null"]},"start_at":{"format":"date-time","type":"string"},"start_time":{"description":"Start time HH:MM in the gym's time zone","type":"string"},"status":{"description":"Class: held or cancelled. PT session: done, no_show (member absent), confirmed (confirmed, not marked yet), cancelled (cancelled in time) or late_cancelled (cancelled late)","type":"string"},"weekday":{"description":"ISO weekday (1 = Monday)","format":"int32","minimum":0,"type":"integer"}},"required":["kind","id","start_at","end_at","date","weekday","start_time","end_time","minutes","hours","booked","attended","status","counted"],"type":"object"},"CoachHoursSummary":{"description":"A coach's totals for the period.","properties":{"cancelled":{"description":"Cancelled classes and sessions: in the detail with 0 hours, left out of the totals","format":"int64","type":"integer"},"class_minutes":{"description":"Minutes of the classes taught","format":"int64","type":"integer"},"classes":{"description":"Group classes taught (not cancelled)","format":"int64","type":"integer"},"coach_id":{"description":"Empty = classes without a coach","format":"uuid","type":["string","null"]},"coach_name":{"type":["string","null"]},"pt_minutes":{"description":"Minutes of the PT sessions that count","format":"int64","type":"integer"},"pt_sessions":{"description":"PT sessions that count: done, member absent, confirmed and already over","format":"int64","type":"integer"},"total_hours":{"description":"The total in decimal hours, rounded to two decimals","format":"double","type":"number"},"total_minutes":{"description":"Classes plus PT sessions, in minutes","format":"int64","type":"integer"}},"required":["classes","class_minutes","pt_sessions","pt_minutes","cancelled","total_minutes","total_hours"],"type":"object"},"CoachOption":{"description":"Coach offered as a filter of the report.","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"user_id":{"format":"uuid","type":"string"}},"required":["user_id","first_name","last_name"],"type":"object"},"CreateEventRequest":{"properties":{"checkin_codes":{"description":"Personal check-in code for every registrant (default: no)","type":["boolean","null"]},"ends_at":{"format":"date-time","type":"string"},"registration_closes_at":{"description":"Registration closes (empty = when the event starts)","format":"date-time","type":["string","null"]},"registration_opens_at":{"description":"Registration opens (empty = as soon as published)","format":"date-time","type":["string","null"]},"starts_at":{"format":"date-time","type":"string"},"template":{"description":"gara (default) | benefico | essenziale: only \"gara\" starts with the medical requirement and the parental consent","type":["string","null"]},"title":{"type":"string"}},"required":["title","starts_at","ends_at"],"type":"object"},"CreateMemberRequest":{"properties":{"email":{"description":"Must be free: an existing account joins with the invite code or with a request from the app (409 otherwise). Absent: a member \"without the app\" is created with a placeholder email.","type":["string","null"]},"first_name":{"type":"string"},"last_name":{"type":"string"},"phone":{"type":["string","null"]},"send_invite":{"description":"With an email: immediately sends the member the email with the link to choose a password and sign in to the app (default true). false = no email; it can be sent later with `send_member_access_link`. The email and the member's language follow `Accept-Language` (it, en, fr; default Italian).","type":["boolean","null"]}},"required":["first_name","last_name"],"type":"object"},"CustomDay":{"description":"Custom text for a day: it replaces the class skills on the TV.","properties":{"body":{"type":["string","null"]},"day":{"type":"string"},"gym_id":{"format":"uuid","type":"string"},"title":{"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["gym_id","day","title","updated_at"],"type":"object"},"CustomDayRequest":{"properties":{"body":{"description":"WOD text, one line per movement (2000 characters at most)","type":["string","null"]},"title":{"description":"Empty = back to the class skills","type":"string"}},"required":["title"],"type":"object"},"Dashboard":{"properties":{"active_members":{"format":"int64","type":"integer"},"certificates_attention":{"items":{"$ref":"#/components/schemas/ExpiringCertificate"},"type":"array"},"low_credits":{"items":{"$ref":"#/components/schemas/LowCredits"},"type":"array"},"members_missing_documents":{"description":"Members missing a required signature (0 if the gym does not ask for documents)","format":"int64","type":"integer"},"members_without_certificate":{"format":"int64","type":"integer"},"membership_fees_due":{"description":"With a current membership but the membership fee still due (empty if the gym does not require it)","items":{"$ref":"#/components/schemas/FeeDue"},"type":"array"},"memberships_expiring":{"items":{"$ref":"#/components/schemas/ExpiringMembership"},"type":"array"},"recent_no_shows":{"items":{"$ref":"#/components/schemas/RecentNoShow"},"type":"array"},"recent_trials":{"description":"Trials from the last 7 days not marked absent: people to call back","items":{"$ref":"#/components/schemas/RecentTrial"},"type":"array"},"today":{"$ref":"#/components/schemas/TodaySummary"}},"required":["today","active_members","memberships_expiring","low_credits","certificates_attention","members_without_certificate","membership_fees_due","recent_no_shows","recent_trials","members_missing_documents"],"type":"object"},"DayWorkout":{"description":"WOD set on a class type for a day (`workouts` table), with the class name and colour: it is what the TV shows by default.","properties":{"class_type_color":{"type":["string","null"]},"class_type_id":{"format":"uuid","type":"string"},"class_type_name":{"type":"string"},"day":{"type":"string"},"notes":{"type":["string","null"]},"title":{"type":"string"}},"required":["class_type_id","class_type_name","day","title"],"type":"object"},"DeactivationPreview":{"description":"What happens to classes with bookings when a weekly template is deactivated: the future classes still scheduled with at least one active booking, plus those cancelled by a closure with members to book again when it is removed. Without `cancel_booked` they stay active (the closed ones come back when the closure is removed), with `cancel_booked` they are cancelled (the closed ones stay cancelled even when the closure is removed).","properties":{"bookings":{"description":"Bookings on those classes: active, or to be booked again when the closure is removed","format":"int64","type":"integer"},"first_start_at":{"description":"Start of the first of those classes; null if there are none","format":"date-time","type":["string","null"]},"lessons_with_bookings":{"description":"Future classes with bookings: scheduled with at least one booking, or cancelled by a closure with members to book again","format":"int64","type":"integer"}},"required":["lessons_with_bookings","bookings"],"type":"object"},"DecisionBody":{"properties":{"reason":{"description":"Reason for the rejection, shown to the member (optional)","type":["string","null"]}},"type":"object"},"Document":{"properties":{"created_at":{"format":"date-time","type":"string"},"declared_at":{"format":"date-time","type":["string","null"]},"expires_on":{"format":"date","type":["string","null"]},"id":{"format":"uuid","type":"string"},"locked_at":{"format":"date-time","type":["string","null"]},"participant_id":{"format":"uuid","type":"string"},"purged_at":{"format":"date-time","type":["string","null"]},"reject_reason":{"type":["string","null"]},"requirement_id":{"format":"uuid","type":"string"},"reviewed_at":{"format":"date-time","type":["string","null"]},"status":{"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","participant_id","requirement_id","status","created_at","updated_at"],"type":"object"},"DocumentView":{"allOf":[{"$ref":"#/components/schemas/Document"},{"properties":{"has_file":{"type":"boolean"}},"required":["has_file"],"type":"object"}]},"ErrorBody":{"properties":{"error":{"description":"Stable code: bad_request, unauthorized, forbidden, not_found, conflict, membership_required, too_many_requests, gym_inactive, api_disabled, missing_scope, email_not_sent, internal","type":"string"},"message":{"type":"string"},"next_membership_starts_on":{"description":"Only when a booking is refused because of the membership (`membership_required` or `conflict`): the member already has one valid for the class starting on this date, so renewal should not be offered","format":"date","type":["string","null"]}},"required":["error","message"],"type":"object"},"Event":{"properties":{"auto_delete_accounts":{"type":"boolean"},"auto_delete_after_days":{"format":"int32","type":"integer"},"cancel_until":{"format":"date-time","type":["string","null"]},"checkin_codes":{"description":"Personal check-in code for every registrant (off by default)","type":"boolean"},"collected_fields":{"description":"Optional participant fields the organiser collects (sex, tax_code, shirt_size, phone): the others are neither asked nor stored","items":{"type":"string"},"type":"array"},"competitive":{"type":"boolean"},"contact_email":{"type":["string","null"]},"content_en":{"type":["object","null"]},"content_fr":{"type":["object","null"]},"content_it":{"type":["object","null"]},"created_at":{"format":"date-time","type":"string"},"created_by":{"format":"uuid","type":["string","null"]},"description_en":{"type":["string","null"]},"description_fr":{"type":["string","null"]},"description_it":{"type":["string","null"]},"docs_purged_at":{"format":"date-time","type":["string","null"]},"docs_retention_days":{"format":"int32","type":"integer"},"ends_at":{"format":"date-time","type":"string"},"gym_id":{"format":"uuid","type":"string"},"hash":{"type":"string"},"id":{"format":"uuid","type":"string"},"leaderboard_mode":{"type":"string"},"leaderboard_names":{"type":"string"},"location":{"type":["string","null"]},"organizer_name":{"description":"Data controller (organiser's legal name)","type":["string","null"]},"organizer_privacy_text":{"type":["string","null"]},"organizer_privacy_url":{"description":"Organiser's privacy notice: link or text","type":["string","null"]},"participants_list_mode":{"type":"string"},"registration_closes_at":{"format":"date-time","type":["string","null"]},"registration_opens_at":{"format":"date-time","type":["string","null"]},"sections":{"type":"object"},"slug":{"type":["string","null"]},"starts_at":{"format":"date-time","type":"string"},"status":{"description":"draft | published | closed | archived","type":"string"},"template":{"type":"string"},"theme":{"type":"object"},"title":{"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","gym_id","hash","title","starts_at","ends_at","collected_fields","checkin_codes","status","leaderboard_mode","leaderboard_names","participants_list_mode","auto_delete_accounts","auto_delete_after_days","docs_retention_days","competitive","template","theme","sections","created_at","updated_at"],"type":"object"},"EventCheckinRequest":{"properties":{"checked_in":{"type":"boolean"}},"required":["checked_in"],"type":"object"},"EventCheckinResult":{"allOf":[{"$ref":"#/components/schemas/Account"},{"properties":{"already_checked_in":{"description":"Had already checked in: the time stays that of the first check-in (`checked_in_at`)","type":"boolean"}},"required":["already_checked_in"],"type":"object"}],"description":"Check-in result: the registration, and whether it had already checked in."},"EventLeaderboard":{"description":"Leaderboard of a category: the workouts and the rows with points or position.","properties":{"ranking_mode":{"type":"string"},"rows":{"items":{"$ref":"#/components/schemas/Row"},"type":"array"},"workouts":{"items":{"$ref":"#/components/schemas/EventWorkout"},"type":"array"}},"required":["ranking_mode","workouts","rows"],"type":"object"},"EventLinks":{"properties":{"preview_url":{"type":"string"},"public_url":{"type":"string"}},"required":["public_url","preview_url"],"type":"object"},"EventListResponse":{"properties":{"events":{"items":{"$ref":"#/components/schemas/EventSummary"},"type":"array"},"events_per_month":{"format":"int32","type":"integer"},"used_this_month":{"format":"int64","type":"integer"}},"required":["events","used_this_month","events_per_month"],"type":"object"},"EventParticipant":{"description":"Participant registered to an event: personal data and required documents.","properties":{"account_id":{"format":"uuid","type":"string"},"birth_date":{"format":"date","type":["string","null"]},"created_at":{"format":"date-time","type":"string"},"email":{"type":["string","null"]},"first_name":{"type":"string"},"hide_name_in_leaderboard":{"type":"boolean"},"id":{"format":"uuid","type":"string"},"last_name":{"type":"string"},"sex":{"type":["string","null"]},"shirt_size":{"type":["string","null"]},"sort":{"format":"int32","type":"integer"},"tax_code":{"type":["string","null"]}},"required":["id","account_id","first_name","last_name","hide_name_in_leaderboard","sort","created_at"],"type":"object"},"EventPatch":{"description":"Editable event fields: absent = unchanged, `null` = cleared.","properties":{"auto_delete_after_days":{"format":"int32","type":["integer","null"]},"cancel_until":{"format":"date-time","type":["string","null"]},"checkin_codes":{"type":["boolean","null"]},"collected_fields":{"items":{"type":"string"},"type":["array","null"]},"competitive":{"type":["boolean","null"]},"contact_email":{"type":["string","null"]},"content_en":{"type":["object","null"]},"content_fr":{"type":["object","null"]},"content_it":{"type":["object","null"]},"description_en":{"type":["string","null"]},"description_fr":{"type":["string","null"]},"description_it":{"type":["string","null"]},"docs_retention_days":{"format":"int32","type":["integer","null"]},"ends_at":{"format":"date-time","type":["string","null"]},"leaderboard_mode":{"type":["string","null"]},"leaderboard_names":{"type":["string","null"]},"location":{"type":["string","null"]},"organizer_name":{"type":["string","null"]},"organizer_privacy_text":{"type":["string","null"]},"organizer_privacy_url":{"type":["string","null"]},"participants_list_mode":{"type":["string","null"]},"registration_closes_at":{"format":"date-time","type":["string","null"]},"registration_opens_at":{"format":"date-time","type":["string","null"]},"sections":{"type":["object","null"]},"slug":{"type":["string","null"]},"starts_at":{"format":"date-time","type":["string","null"]},"template":{"type":["string","null"]},"theme":{"type":["object","null"]},"title":{"type":["string","null"]}},"type":"object"},"EventSummary":{"allOf":[{"$ref":"#/components/schemas/Event"},{"properties":{"has_cover":{"type":"boolean"},"has_rules":{"type":"boolean"},"public_key":{"type":"string"},"registrations":{"format":"int64","type":"integer"}},"required":["public_key","registrations","has_cover","has_rules"],"type":"object"}]},"EventWorkout":{"description":"Event workout, with score type and ranking mode.","properties":{"created_at":{"format":"date-time","type":"string"},"event_id":{"format":"uuid","type":"string"},"id":{"format":"uuid","type":"string"},"ranking_mode":{"description":"positions | points_table | raw_sum","type":"string"},"score_type":{"description":"time | reps | load | distance | calories | points","type":"string"},"sort":{"format":"int32","type":"integer"},"tiebreak_type":{"description":"time | reps | load | distance | calories | points","type":["string","null"]},"title":{"type":"string"}},"required":["id","event_id","title","score_type","ranking_mode","sort","created_at"],"type":"object"},"ExpiringCertificate":{"properties":{"expires_on":{"format":"date","type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"user_id":{"format":"uuid","type":"string"},"verified":{"type":"boolean"}},"required":["user_id","first_name","last_name","expires_on","verified"],"type":"object"},"ExpiringMembership":{"properties":{"credits_balance":{"format":"int64","type":["integer","null"]},"ends_on":{"format":"date","type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"plan_name":{"type":"string"},"user_id":{"format":"uuid","type":"string"}},"required":["user_id","first_name","last_name","plan_name","ends_on"],"type":"object"},"FeeDue":{"properties":{"first_name":{"type":"string"},"last_fee_ends_on":{"description":"Expiry of the last fee, if there was one","format":"date","type":["string","null"]},"last_name":{"type":"string"},"user_id":{"format":"uuid","type":"string"}},"required":["user_id","first_name","last_name"],"type":"object"},"GymDto":{"description":"The gym as a user sees it. `invite_code` appears only for owner/admin.","properties":{"api_enabled":{"description":"Box API enabled: the API keys section of the panel appears only when it is on","type":"boolean"},"api_rate_limit_per_min":{"description":"Requests per minute in total across all the gym's API keys (429 above)","format":"int32","type":"integer"},"booking_animation":{"description":"After booking, the app shows a random animated exercise","type":"boolean"},"bookings_open_until":{"description":"All classes up to this date (inclusive) can be booked right away","type":["string","null"]},"events_enabled":{"description":"Events section enabled for the gym (platform admin, default no)","type":"boolean"},"events_per_month":{"description":"Events that can be created per month (only the platform admin changes it)","format":"int32","type":"integer"},"external_payment_enabled":{"description":"The gym already has its own payment system: when a booking is refused with `membership_required` the app offers \"Renew here\" (if the member already has a membership starting later, `next_membership_starts_on`, it shows instead when they will be able to book)","type":"boolean"},"external_payment_url":{"description":"Link to renew or buy a membership on the gym's website. Members only receive it when the option is on","type":["string","null"]},"id":{"format":"uuid","type":"string"},"invite_code":{"type":["string","null"]},"is_listed":{"description":"Listed in the app's search","type":"boolean"},"logo_url":{"description":"Public address of the uploaded logo (PNG, no login needed), absent if the gym has not uploaded one. It changes with every upload.","type":["string","null"]},"mcp_enabled":{"description":"MCP connector enabled: the owner and admins can connect an AI assistant (Claude, ChatGPT…) to the gym (platform admin, off by default)","type":"boolean"},"member_docs_enabled":{"description":"Gym documents to be signed in the app (enrollment form, terms, rules)","type":"boolean"},"membership_fee_cents":{"description":"Proposed membership fee amount, in cents","format":"int32","type":["integer","null"]},"my_role":{"description":"Role of the user who made the request","type":"string"},"name":{"type":"string"},"plan_expires_at":{"format":"date-time","type":["string","null"]},"plan_status":{"type":"string"},"primary_color":{"type":["string","null"]},"pt_enabled":{"description":"Personal training module enabled: the panel menu entry and the app section only appear when it is on (platform admin, default no)","type":"boolean"},"qr_checkin_enabled":{"description":"Member's QR to record entries (off: the app does not show it)","type":"boolean"},"reminder_minutes_before":{"description":"Pre-class reminder in minutes (0 = off)","format":"int32","type":"integer"},"require_medical_certificate":{"description":"A valid medical certificate is required to book","type":"boolean"},"require_membership_fee":{"description":"The annual membership fee (club membership) must be paid to book","type":"boolean"},"service_active":{"description":"Service active: if false, panel and app only show the notice (other calls answer `gym_inactive`)","type":"boolean"},"service_blocks_at":{"description":"When the service is blocked (the expiry: no grace period)","format":"date-time","type":["string","null"]},"show_coach_last_name":{"description":"In classes the coach appears with first and last name (otherwise first name only)","type":"boolean"},"show_prices":{"description":"Members see amounts and prices in the app","type":"boolean"},"slug":{"type":"string"},"timezone":{"type":"string"},"wod_tv_enabled":{"description":"Wod TV enabled: the panel menu entry appears only when it is on","type":"boolean"}},"required":["id","slug","name","timezone","plan_status","service_active","require_medical_certificate","reminder_minutes_before","is_listed","qr_checkin_enabled","show_coach_last_name","require_membership_fee","show_prices","booking_animation","events_per_month","events_enabled","api_enabled","api_rate_limit_per_min","pt_enabled","member_docs_enabled","wod_tv_enabled","mcp_enabled","external_payment_enabled","my_role"],"type":"object"},"Image":{"properties":{"alt_text":{"type":["string","null"]},"created_at":{"format":"date-time","type":"string"},"event_id":{"format":"uuid","type":"string"},"height":{"format":"int32","type":["integer","null"]},"id":{"format":"uuid","type":"string"},"kind":{"type":"string"},"link_url":{"description":"Sponsor's website (https), opened by clicking the logo","type":["string","null"]},"sort":{"format":"int32","type":"integer"},"width":{"format":"int32","type":["integer","null"]}},"required":["id","event_id","kind","sort","created_at"],"type":"object"},"ImagePatch":{"properties":{"alt":{"type":["string","null"]},"link":{"type":["string","null"]}},"type":"object"},"InactiveMember":{"properties":{"email":{"type":"string"},"first_name":{"type":"string"},"has_membership":{"description":"Has an active membership today","type":"boolean"},"joined_at":{"format":"date-time","type":"string"},"last_attended_at":{"description":"Last class attended (none = never)","format":"date-time","type":["string","null"]},"last_name":{"type":"string"},"user_id":{"format":"uuid","type":"string"}},"required":["user_id","first_name","last_name","email","joined_at","has_membership"],"type":"object"},"JoinRequestForStaff":{"description":"The request as staff see it.","properties":{"avatar_path":{"type":["string","null"]},"created_at":{"format":"date-time","type":"string"},"email":{"type":"string"},"first_name":{"type":"string"},"id":{"format":"uuid","type":"string"},"last_name":{"type":"string"},"message":{"type":["string","null"]},"phone":{"type":["string","null"]},"status":{"type":"string"},"user_id":{"format":"uuid","type":"string"}},"required":["id","user_id","first_name","last_name","email","status","created_at"],"type":"object"},"LedgerEntry":{"properties":{"booking_id":{"format":"uuid","type":["string","null"]},"created_at":{"format":"date-time","type":"string"},"created_by":{"format":"uuid","type":["string","null"]},"delta":{"format":"int32","type":"integer"},"id":{"format":"uuid","type":"string"},"membership_id":{"format":"uuid","type":"string"},"note":{"type":["string","null"]},"reason":{"type":"string"}},"required":["id","membership_id","delta","reason","created_at"],"type":"object"},"Location":{"properties":{"address":{"type":["string","null"]},"created_at":{"format":"date-time","type":"string"},"gym_id":{"format":"uuid","type":"string"},"id":{"format":"uuid","type":"string"},"is_default":{"type":"boolean"},"name":{"type":"string"},"timezone":{"type":["string","null"]}},"required":["id","gym_id","name","is_default","created_at"],"type":"object"},"LocationRequest":{"properties":{"address":{"type":["string","null"]},"is_default":{"type":["boolean","null"]},"name":{"type":"string"},"timezone":{"type":["string","null"]}},"required":["name"],"type":"object"},"LowCredits":{"properties":{"credits_balance":{"format":"int64","type":"integer"},"first_name":{"type":"string"},"last_name":{"type":"string"},"plan_name":{"type":"string"},"user_id":{"format":"uuid","type":"string"}},"required":["user_id","first_name","last_name","plan_name","credits_balance"],"type":"object"},"Member":{"description":"A member as the gym's staff see them.","properties":{"avatar_url":{"description":"Path relative to the API (e.g. /files/avatars/<uuid>.jpg)","type":["string","null"]},"email":{"type":"string"},"email_editable":{"description":"Like `managed_by_gym`, and the account was also created by this gym's staff (or is a member without an email): the email can be changed too. For the others Boxly changes it on request.","type":"boolean"},"first_name":{"type":"string"},"joined_at":{"format":"date-time","type":"string"},"last_name":{"type":"string"},"managed_by_gym":{"description":"Member who belongs only to this gym: the owner and admins can edit their details and delete their account. False for staff and for members who also belong to other gyms (there Boxly does it on request).","type":"boolean"},"phone":{"type":["string","null"]},"photo_hidden":{"description":"In the gym the member appears without a photo (owner's choice)","type":"boolean"},"role":{"type":"string"},"status":{"type":"string"},"user_id":{"format":"uuid","type":"string"}},"required":["user_id","email","first_name","last_name","role","status","joined_at","photo_hidden","managed_by_gym","email_editable"],"type":"object"},"MembershipFee":{"description":"Annual membership fee (club membership): staff record it and it is approved as such. Covers classes from `starts_on` to `ends_on` inclusive.","properties":{"amount_cents":{"format":"int32","type":["integer","null"]},"approved_at":{"format":"date-time","type":"string"},"approved_by":{"format":"uuid","type":["string","null"]},"created_at":{"format":"date-time","type":"string"},"ends_on":{"format":"date","type":"string"},"gym_id":{"format":"uuid","type":"string"},"id":{"format":"uuid","type":"string"},"notes":{"type":["string","null"]},"payment_id":{"format":"uuid","type":["string","null"]},"starts_on":{"format":"date","type":"string"},"user_id":{"format":"uuid","type":"string"}},"required":["id","gym_id","user_id","starts_on","ends_on","approved_at","created_at"],"type":"object"},"MembershipFeeRequest":{"properties":{"amount_cents":{"description":"Default: the amount proposed by the gym","format":"int32","type":["integer","null"]},"ends_on":{"description":"Default: one year from the start (last day included)","format":"date","type":["string","null"]},"notes":{"type":["string","null"]},"payment":{"oneOf":[{"$ref":"#/components/schemas/PaymentInput","description":"If present (and with amount > 0) also records the payment"},{"type":"null"}]},"starts_on":{"description":"Default: today","format":"date","type":["string","null"]}},"type":"object"},"MembershipFeeResponse":{"properties":{"fee":{"$ref":"#/components/schemas/MembershipFee"},"payment":{"oneOf":[{"$ref":"#/components/schemas/Payment"},{"type":"null"}]}},"required":["fee"],"type":"object"},"MembershipRequest":{"properties":{"credits":{"description":"Default: the plan's credits (from 1 to 1000)","format":"int32","type":["integer","null"]},"ends_on":{"description":"Default: from the plan's duration, last day included (30 days from 9 Feb → 10 Mar; 1 month from 9 Feb → 8 Mar, from 31 Jan → 28 Feb)","format":"date","type":["string","null"]},"notes":{"type":["string","null"]},"payment":{"oneOf":[{"$ref":"#/components/schemas/PaymentInput","description":"If present, also records the payment"},{"type":"null"}]},"plan_id":{"format":"uuid","type":"string"},"starts_on":{"description":"Default: today","format":"date","type":["string","null"]}},"required":["plan_id"],"type":"object"},"MembershipResponse":{"allOf":[{"$ref":"#/components/schemas/MembershipView"},{"properties":{"payment":{"oneOf":[{"$ref":"#/components/schemas/Payment"},{"type":"null"}]}},"type":"object"}]},"MembershipView":{"description":"Membership with the plan's name and type and the computed credit balance.","properties":{"created_at":{"format":"date-time","type":"string"},"credits_balance":{"description":"Ledger total (NULL for unlimited plans)","format":"int64","type":["integer","null"]},"credits_total":{"format":"int32","type":["integer","null"]},"ends_on":{"format":"date","type":["string","null"]},"frozen_on":{"format":"date","type":["string","null"]},"gym_id":{"format":"uuid","type":"string"},"id":{"format":"uuid","type":"string"},"notes":{"type":["string","null"]},"plan_id":{"format":"uuid","type":"string"},"plan_kind":{"type":"string"},"plan_max_per_day":{"description":"Plan limits (NULL = none)","format":"int32","type":["integer","null"]},"plan_max_per_week":{"format":"int32","type":["integer","null"]},"plan_name":{"type":"string"},"starts_on":{"format":"date","type":"string"},"status":{"type":"string"},"suspensions":{"description":"Suspensions for a period, earliest first: on those days the membership cannot be used to book","items":{"$ref":"#/components/schemas/SuspensionBrief"},"type":"array"},"updated_at":{"format":"date-time","type":"string"},"user_id":{"format":"uuid","type":"string"}},"required":["id","gym_id","user_id","plan_id","plan_name","plan_kind","status","starts_on","suspensions","created_at","updated_at"],"type":"object"},"MyBooking":{"description":"Booking with the class data, for \"my bookings\".","properties":{"booked_at":{"format":"date-time","type":"string"},"checked_in_at":{"format":"date-time","type":["string","null"]},"class_type_color":{"type":["string","null"]},"class_type_id":{"format":"uuid","type":"string"},"class_type_name":{"type":"string"},"coach_name":{"type":["string","null"]},"end_at":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"location_address":{"description":"Address of the location, if set","type":["string","null"]},"location_name":{"type":"string"},"occurrence_id":{"format":"uuid","type":"string"},"occurrence_status":{"type":"string"},"room_name":{"type":["string","null"]},"start_at":{"format":"date-time","type":"string"},"status":{"type":"string"},"workout_animation":{"description":"Exercise animation picked by hand for the workout of the day: missing = from the text, `none` = none","type":["string","null"]},"workout_notes":{"type":["string","null"]},"workout_title":{"description":"The class's workout of the day, if set","type":["string","null"]}},"required":["id","occurrence_id","status","booked_at","start_at","end_at","occurrence_status","class_type_id","class_type_name","location_name"],"type":"object"},"OccupancyRow":{"properties":{"attended":{"format":"int64","type":"integer"},"booked":{"description":"Seats taken: booked + attended + no-shows","format":"int64","type":"integer"},"capacity":{"format":"int64","type":"integer"},"key":{"description":"Class type / coach id, ISO weekday number (1 = Monday) or hour \"HH\"","type":"string"},"label":{"type":"string"},"no_show":{"format":"int64","type":"integer"},"occurrences":{"format":"int64","type":"integer"}},"required":["key","label","occurrences","capacity","booked","attended","no_show"],"type":"object"},"Occurrence":{"description":"A class on the calendar, with names already resolved for the client.","properties":{"booked_count":{"description":"Seats taken: active bookings + promotions waiting to be accepted","format":"int64","type":"integer"},"booking_opens_at":{"description":"From when booking is possible: the \"hours before\" rule or, if the gym opened early up to a date covering the class, right now (the class creation time is used).","format":"date-time","type":"string"},"cancel_reason":{"type":["string","null"]},"capacity":{"format":"int32","type":"integer"},"class_type_color":{"type":["string","null"]},"class_type_id":{"format":"uuid","type":"string"},"class_type_name":{"type":"string"},"close_minutes_before":{"description":"How many minutes before the start bookings close","format":"int32","type":"integer"},"closure_id":{"format":"uuid","type":["string","null"]},"coach_id":{"format":"uuid","type":["string","null"]},"coach_name":{"type":["string","null"]},"created_at":{"format":"date-time","type":"string"},"credit_cost":{"description":"Entries consumed by a booking (from the class type)","format":"int32","type":"integer"},"end_at":{"format":"date-time","type":"string"},"free_cancel_minutes_before":{"description":"From the booking rule in force (class type or gym default): up to how many minutes before cancelling is free","format":"int32","type":"integer"},"gym_id":{"format":"uuid","type":"string"},"id":{"format":"uuid","type":"string"},"is_modified":{"type":"boolean"},"location_id":{"format":"uuid","type":"string"},"location_name":{"type":"string"},"my_booking_status":{"description":"Booking status of the viewer (even if cancelled), if any","type":["string","null"]},"my_waitlist_rank":{"description":"Position on the waitlist (only if waiting)","format":"int64","type":["integer","null"]},"my_waitlist_status":{"description":"Waitlist status of the viewer (waiting or promoted)","type":["string","null"]},"notes":{"type":["string","null"]},"open_hours_before":{"description":"How many hours before the start booking opens","format":"int32","type":"integer"},"room_id":{"format":"uuid","type":["string","null"]},"room_name":{"type":["string","null"]},"start_at":{"format":"date-time","type":"string"},"status":{"type":"string"},"template_id":{"format":"uuid","type":["string","null"]},"updated_at":{"format":"date-time","type":"string"},"waitlist_count":{"description":"People on the waitlist","format":"int64","type":"integer"},"waitlist_enabled":{"description":"From the rule in force: when the class is full you can join the waitlist","type":"boolean"},"workout_animation":{"description":"Exercise animation picked by hand for the workout of the day: missing = from the text, `none` = none","type":["string","null"]},"workout_notes":{"type":["string","null"]},"workout_title":{"description":"Workout of the day (WOD) of the class type on that day, if set","type":["string","null"]}},"required":["id","gym_id","class_type_id","location_id","start_at","end_at","capacity","status","is_modified","created_at","updated_at","class_type_name","location_name","booked_count","waitlist_count","credit_cost","free_cancel_minutes_before","close_minutes_before","open_hours_before","booking_opens_at","waitlist_enabled"],"type":"object"},"OccurrenceBookings":{"properties":{"bookings":{"items":{"$ref":"#/components/schemas/BookingWithUser"},"type":"array"},"trials":{"description":"Trials added by staff: they take a seat, attendance without strikes","items":{"$ref":"#/components/schemas/TrialSpot"},"type":"array"},"waitlist":{"items":{"$ref":"#/components/schemas/WaitlistEntryWithUser"},"type":"array"}},"required":["bookings","waitlist","trials"],"type":"object"},"Participant":{"description":"A member as other members see them: first name and initial, photo. Whoever chose not to appear is \"Athlete\" with no id or photo.","properties":{"anonymous":{"type":"boolean"},"avatar_url":{"type":["string","null"]},"display_name":{"type":"string"},"is_me":{"type":"boolean"},"status":{"type":"string"},"trial":{"description":"Trial added by staff (shown in the app with the mascot, without a photo)","type":"boolean"},"user_id":{"format":"uuid","type":["string","null"]}},"required":["display_name","is_me","anonymous","status","trial"],"type":"object"},"ParticipantView":{"allOf":[{"$ref":"#/components/schemas/EventParticipant"},{"properties":{"consent_link_sent_at":{"description":"When the latest consent link was sent to the team member","format":"date-time","type":["string","null"]},"consent_pending":{"description":"Team member who has not yet given their consents from the link received by email (the registration stays pending)","type":"boolean"},"documents":{"items":{"$ref":"#/components/schemas/DocumentView"},"type":"array"},"is_minor":{"type":"boolean"}},"required":["is_minor","documents","consent_pending"],"type":"object"}]},"ParticipantVisibility":{"properties":{"hide_name_in_leaderboard":{"type":"boolean"}},"required":["hide_name_in_leaderboard"],"type":"object"},"Participants":{"properties":{"participants":{"items":{"$ref":"#/components/schemas/Participant"},"type":"array"},"total":{"minimum":0,"type":"integer"},"waitlist":{"items":{"$ref":"#/components/schemas/Waiter"},"type":"array"},"waitlist_total":{"minimum":0,"type":"integer"}},"required":["participants","total","waitlist","waitlist_total"],"type":"object"},"Payment":{"properties":{"amount_cents":{"format":"int32","type":"integer"},"created_at":{"format":"date-time","type":"string"},"currency":{"type":"string"},"gym_id":{"format":"uuid","type":"string"},"id":{"format":"uuid","type":"string"},"membership_id":{"format":"uuid","type":["string","null"]},"method":{"type":"string"},"note":{"type":["string","null"]},"paid_at":{"format":"date-time","type":"string"},"receipt_number":{"type":"string"},"recorded_by":{"format":"uuid","type":["string","null"]},"user_id":{"format":"uuid","type":"string"}},"required":["id","gym_id","user_id","amount_cents","currency","method","paid_at","receipt_number","created_at"],"type":"object"},"PaymentInput":{"properties":{"amount_cents":{"format":"int32","type":"integer"},"method":{"description":"cash | bank_transfer | pos | other","type":"string"},"note":{"type":["string","null"]}},"required":["amount_cents","method"],"type":"object"},"PaymentListItem":{"allOf":[{"$ref":"#/components/schemas/Payment"},{"properties":{"email":{"description":"Member's email: empty if they deleted their account; a placeholder address for members created without an email","type":["string","null"]},"first_name":{"description":"Member's first name","type":"string"},"last_name":{"description":"Member's last name","type":"string"},"membership_fee":{"description":"The payment settles a membership fee","type":"boolean"},"plan_name":{"description":"Plan of the membership the payment refers to, if any","type":["string","null"]},"recorded_by_name":{"description":"Full name of the person who recorded the payment","type":["string","null"]}},"required":["first_name","last_name","membership_fee"],"type":"object"}],"description":"A payment in the staff list, with names already resolved."},"PaymentRequest":{"properties":{"amount_cents":{"format":"int32","type":"integer"},"membership_id":{"format":"uuid","type":["string","null"]},"method":{"type":"string"},"note":{"type":["string","null"]},"paid_at":{"format":"date-time","type":["string","null"]}},"required":["amount_cents","method"],"type":"object"},"Plan":{"properties":{"class_type_ids":{"description":"NULL = all class types","items":{"format":"uuid","type":"string"},"type":["array","null"]},"created_at":{"format":"date-time","type":"string"},"credits":{"format":"int32","type":["integer","null"]},"currency":{"type":"string"},"description":{"type":["string","null"]},"duration_days":{"description":"Validity in days from activation (NULL = in months or no expiry)","format":"int32","type":["integer","null"]},"duration_months":{"description":"Validity in calendar months from activation, 1–36 (NULL = in days or no expiry)","format":"int32","type":["integer","null"]},"gym_id":{"format":"uuid","type":"string"},"id":{"format":"uuid","type":"string"},"is_active":{"type":"boolean"},"kind":{"type":"string"},"location_ids":{"description":"NULL = all locations","items":{"format":"uuid","type":"string"},"type":["array","null"]},"max_per_day":{"description":"Maximum entries per day with this plan (NULL = no limit)","format":"int32","type":["integer","null"]},"max_per_week":{"description":"Maximum entries per week with this plan (NULL = no limit)","format":"int32","type":["integer","null"]},"name":{"type":"string"},"price_cents":{"description":"NULL = plan without a price (e.g. events)","format":"int32","type":["integer","null"]},"sort_order":{"format":"int32","type":"integer"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","gym_id","name","kind","currency","is_active","sort_order","created_at","updated_at"],"type":"object"},"PolicyRequest":{"properties":{"auto_no_show":{"type":["boolean","null"]},"block_days":{"format":"int32","type":["integer","null"]},"class_type_id":{"description":"Absent = the gym's default rule","format":"uuid","type":["string","null"]},"close_minutes_before":{"format":"int32","type":["integer","null"]},"free_cancel_minutes_before":{"format":"int32","type":["integer","null"]},"max_active_bookings":{"format":"int32","type":["integer","null"]},"max_per_day":{"format":"int32","type":["integer","null"]},"max_per_week":{"format":"int32","type":["integer","null"]},"no_show_strikes_before_block":{"format":"int32","type":["integer","null"]},"open_hours_before":{"format":"int32","type":["integer","null"]},"waitlist_accept_minutes":{"format":"int32","type":["integer","null"]},"waitlist_enabled":{"type":["boolean","null"]}},"type":"object"},"PolicyRow":{"properties":{"auto_no_show":{"type":"boolean"},"block_days":{"format":"int32","type":"integer"},"class_type_id":{"description":"NULL = the gym's default","format":"uuid","type":["string","null"]},"close_minutes_before":{"format":"int32","type":"integer"},"created_at":{"format":"date-time","type":"string"},"free_cancel_minutes_before":{"format":"int32","type":"integer"},"gym_id":{"format":"uuid","type":"string"},"id":{"format":"uuid","type":"string"},"max_active_bookings":{"format":"int32","type":["integer","null"]},"max_per_day":{"format":"int32","type":["integer","null"]},"max_per_week":{"format":"int32","type":["integer","null"]},"no_show_strikes_before_block":{"format":"int32","type":["integer","null"]},"open_hours_before":{"format":"int32","type":"integer"},"updated_at":{"format":"date-time","type":"string"},"waitlist_accept_minutes":{"format":"int32","type":["integer","null"]},"waitlist_enabled":{"type":"boolean"}},"required":["id","gym_id","open_hours_before","close_minutes_before","free_cancel_minutes_before","waitlist_enabled","block_days","auto_no_show","created_at","updated_at"],"type":"object"},"PtSession":{"properties":{"booked_by":{"format":"uuid","type":["string","null"]},"cancel_reason":{"type":["string","null"]},"cancelled_at":{"format":"date-time","type":["string","null"]},"coach_avatar_url":{"type":["string","null"]},"coach_id":{"format":"uuid","type":"string"},"coach_name":{"type":"string"},"consumes":{"description":"Deducts a session from the package","type":"boolean"},"created_at":{"format":"date-time","type":"string"},"end_at":{"format":"date-time","type":"string"},"gym_id":{"format":"uuid","type":"string"},"id":{"format":"uuid","type":"string"},"location_address":{"description":"Address of the coach's location; if the coach has no location, the address of the gym's main location","type":["string","null"]},"location_name":{"type":["string","null"]},"membership_id":{"description":"Package it is deducted from (empty = session outside any package)","format":"uuid","type":["string","null"]},"membership_name":{"type":["string","null"]},"membership_price_cents":{"description":"Package price in cents (empty if it has no price)","format":"int32","type":["integer","null"]},"membership_sessions_total":{"description":"Sessions included in the package","format":"int32","type":["integer","null"]},"note":{"type":["string","null"]},"room_name":{"type":["string","null"]},"session_price_cents":{"description":"Package price divided by its sessions, in rounded cents (empty for sessions outside a package or packages without a price)","format":"int32","type":["integer","null"]},"start_at":{"format":"date-time","type":"string"},"status":{"description":"pending (awaiting confirmation), confirmed, done, no_show (member absent), cancelled (cancelled in time), late_cancelled (cancelled late), declined (declined by the coach)","type":"string"},"user_avatar_url":{"type":["string","null"]},"user_id":{"format":"uuid","type":"string"},"user_name":{"type":"string"}},"required":["id","gym_id","coach_id","coach_name","user_id","user_name","start_at","end_at","status","consumes","created_at"],"type":"object"},"RecentNoShow":{"properties":{"class_type_name":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"no_show_strikes":{"format":"int32","type":"integer"},"occurrence_id":{"format":"uuid","type":"string"},"start_at":{"format":"date-time","type":"string"},"user_id":{"format":"uuid","type":"string"}},"required":["user_id","first_name","last_name","occurrence_id","class_type_name","start_at","no_show_strikes"],"type":"object"},"RecentTrial":{"properties":{"attended":{"description":"Attendance: empty = not marked yet, true = present","type":["boolean","null"]},"class_type_name":{"type":"string"},"id":{"format":"uuid","type":"string"},"name":{"description":"Name chosen by staff; empty = \"Trial\" (\"Prova\")","type":["string","null"]},"note":{"description":"Note visible to staff only","type":["string","null"]},"occurrence_id":{"format":"uuid","type":"string"},"start_at":{"format":"date-time","type":"string"}},"required":["id","occurrence_id","class_type_name","start_at"],"type":"object"},"RecurringBooking":{"properties":{"created_at":{"format":"date-time","type":"string"},"created_by":{"format":"uuid","type":["string","null"]},"gym_id":{"format":"uuid","type":"string"},"id":{"format":"uuid","type":"string"},"template_id":{"format":"uuid","type":"string"},"user_id":{"format":"uuid","type":"string"}},"required":["id","gym_id","template_id","user_id","created_at"],"type":"object"},"RecurringRequest":{"properties":{"user_id":{"description":"For staff: the member to book. Absent = the requester.","format":"uuid","type":["string","null"]}},"type":"object"},"Requirement":{"properties":{"applies_to":{"description":"all | minors","type":"string"},"event_id":{"format":"uuid","type":"string"},"has_template":{"description":"The path stays on the server: the panel only needs to know whether it exists.","type":"boolean"},"id":{"format":"uuid","type":"string"},"kind":{"description":"medical_certificate | waiver | parent_consent | id_document | payment_receipt | other","type":"string"},"mode":{"description":"upload | declaration","type":"string"},"required":{"type":"boolean"},"sort":{"format":"int32","type":"integer"},"title":{"type":"string"}},"required":["id","event_id","kind","title","mode","required","applies_to","has_template","sort"],"type":"object"},"RequirementPatch":{"properties":{"applies_to":{"description":"all | minors","type":["string","null"]},"kind":{"description":"medical_certificate | waiver | parent_consent | id_document | payment_receipt | other","type":["string","null"]},"mode":{"description":"upload (file to upload) | declaration (ticked declaration)","type":["string","null"]},"required":{"type":["boolean","null"]},"sort":{"format":"int32","type":["integer","null"]},"title":{"type":["string","null"]}},"type":"object"},"ReviewRequest":{"properties":{"approve":{"type":"boolean"},"expected_updated_at":{"description":"The document's `updated_at` as you read it (from `list_event_accounts`): if it changed in the meantime (new upload or another review) the response is 409 and nothing is decided. Without it, the document is decided as it was when the request arrived, in any state (even already approved or rejected): two requests at the same time give a single outcome, and a document already in the requested state is returned as it is, without another email","format":"date-time","type":["string","null"]},"reason":{"type":["string","null"]}},"required":["approve"],"type":"object"},"Room":{"properties":{"capacity":{"format":"int32","type":["integer","null"]},"created_at":{"format":"date-time","type":"string"},"id":{"format":"uuid","type":"string"},"location_id":{"format":"uuid","type":"string"},"name":{"type":"string"}},"required":["id","location_id","name","created_at"],"type":"object"},"RoomRequest":{"properties":{"capacity":{"format":"int32","type":["integer","null"]},"name":{"type":"string"}},"required":["name"],"type":"object"},"Row":{"properties":{"account_id":{"format":"uuid","type":"string"},"category_id":{"format":"uuid","type":"string"},"display_name":{"description":"Displayed name, already filtered by the privacy settings","type":"string"},"hidden_from_public":{"description":"Staff leaderboard only: the registration is not complete yet, so the row does not appear in the public leaderboard (which still has the same totals and positions)","type":"boolean"},"rank":{"format":"int32","minimum":0,"type":"integer"},"results":{"items":{"$ref":"#/components/schemas/WorkoutResult"},"type":"array"},"team":{"type":"boolean"},"total":{"format":"double","type":"number"}},"required":["account_id","category_id","display_name","team","rank","total","results","hidden_from_public"],"type":"object"},"Score":{"properties":{"account_id":{"format":"uuid","type":"string"},"entered_at":{"format":"date-time","type":"string"},"entered_by":{"format":"uuid","type":["string","null"]},"id":{"format":"uuid","type":"string"},"scaled":{"type":"boolean"},"tiebreak":{"format":"double","type":["number","null"]},"value":{"format":"double","type":"number"},"workout_id":{"format":"uuid","type":"string"}},"required":["id","workout_id","account_id","value","scaled","entered_at"],"type":"object"},"ScoreRequest":{"properties":{"account_id":{"format":"uuid","type":"string"},"scaled":{"type":"boolean"},"tiebreak":{"format":"double","type":["number","null"]},"value":{"format":"double","type":"number"}},"required":["account_id","value"],"type":"object"},"StatusRequest":{"properties":{"status":{"description":"draft | published | closed | archived","type":"string"}},"required":["status"],"type":"object"},"SuspensionBrief":{"description":"Membership suspension for a period (from/to, inclusive)","properties":{"ends_on":{"description":"Last suspended day (inclusive)","format":"date","type":"string"},"has_certificate":{"description":"The certificate file justifying the suspension is available","type":"boolean"},"id":{"format":"uuid","type":"string"},"starts_on":{"description":"First suspended day","format":"date","type":"string"}},"required":["id","starts_on","ends_on","has_certificate"],"type":"object"},"TemplateChangePreview":{"description":"Preview of a weekly template change: the future classes with bookings that would change day, time, class type or location. They are the ones `booked_lessons` decides about (move them or keep them as they are). On a deactivated template it is always zero: its remaining classes do not follow the changes until it is reactivated.","properties":{"bookings":{"description":"Active bookings on those classes","format":"int64","type":"integer"},"first_start_at":{"description":"Start of the first of those classes; null if there are none","format":"date-time","type":["string","null"]},"lessons_not_movable":{"description":"Future classes with bookings that would stay as they are even with `move`: the new day is closed or already has another class of the template, the new time has already passed, or attendance or no-shows have already been marked for the class","format":"int64","type":"integer"},"lessons_with_bookings":{"description":"Future classes with bookings that would be moved","format":"int64","type":"integer"},"lessons_with_waitlist_only":{"description":"Future classes with no bookings but with someone on the waiting list (or with a spot to accept) that would be moved: `booked_lessons` applies to them too, and with `move` those waiting are notified","format":"int64","type":"integer"},"lessons_without_day":{"description":"Future classes with bookings on a removed day with no new day in its place: they stay scheduled as they are (cancel them from the Calendar)","format":"int64","type":"integer"},"members_removed":{"description":"With `move` and a new class type or location: members (booked or on the waiting list) who cannot take it with their membership (or medical certificate, membership fee, documents; those on the waiting list also if the class will cost more entries than before and they do not have them) and would be removed, with a notice (entries already used are refunded); each counted once, like the `removed_members` of the update","format":"int64","type":"integer"}},"required":["lessons_with_bookings","bookings","lessons_with_waitlist_only","lessons_not_movable","lessons_without_day","members_removed"],"type":"object"},"TemplateDeactivation":{"description":"Result of \"Deactivate\" with `cancel_booked=true`.","properties":{"cancelled_occurrences":{"description":"Future classes with bookings cancelled, including those already cancelled by a closure with members to book again (they stay cancelled even when the closure is removed): the same number as the `deactivation-preview` preview","format":"int64","minimum":0,"type":"integer"},"notified_members":{"description":"Members notified (booked and waitlist), each counted once","format":"int64","minimum":0,"type":"integer"}},"required":["cancelled_occurrences","notified_members"],"type":"object"},"TemplateReactivationPreview":{"description":"Preview of a weekly template reactivation: the future classes in the calendar after the reactivation and the cancelled ones that stay cancelled.","properties":{"cancelled_lessons":{"description":"Cancelled future classes (by deactivating the template with `cancel_booked` or by hand) that stay cancelled: they keep their day, where no other class is generated. Those cancelled by a closure are excluded: they come back when it is removed.","format":"int64","type":"integer"},"first_start_at":{"description":"Start of the first of those classes; null if there are none","format":"date-time","type":["string","null"]},"last_cancelled_at":{"description":"Start of the last of those cancelled classes; null if there are none","format":"date-time","type":["string","null"]},"lessons":{"description":"Future classes scheduled after the reactivation, over the next three months: those that stayed, those that come back and those generated again","format":"int64","type":"integer"},"recurring_members":{"description":"Members with a recurring booking on the template: they are booked automatically on the scheduled classes (not on the cancelled ones nor on those they had cancelled)","format":"int64","type":"integer"}},"required":["lessons","cancelled_lessons","recurring_members"],"type":"object"},"TemplateRequest":{"properties":{"capacity":{"format":"int32","type":"integer"},"class_type_id":{"format":"uuid","type":"string"},"coach_id":{"format":"uuid","type":["string","null"]},"duration_min":{"description":"Default: the class type's duration","format":"int32","type":["integer","null"]},"location_id":{"format":"uuid","type":"string"},"room_id":{"format":"uuid","type":["string","null"]},"start_time":{"description":"Local time of the location, HH:MM","type":"string"},"valid_from":{"description":"Default: today","format":"date","type":["string","null"]},"valid_until":{"format":"date","type":["string","null"]},"weekdays":{"description":"ISO weekdays: 1 = Monday ... 7 = Sunday","items":{"format":"int32","minimum":0,"type":"integer"},"type":"array"}},"required":["class_type_id","location_id","weekdays","start_time","capacity"],"type":"object"},"TemplateUpdate":{"allOf":[{"$ref":"#/components/schemas/ClassTemplate"},{"properties":{"moved_lessons":{"description":"Future classes with bookings or with someone on the waiting list moved to the new schedule (only with `booked_lessons: move`)","format":"int64","minimum":0,"type":"integer"},"notified_members":{"description":"Members notified of the move, each counted once","format":"int64","minimum":0,"type":"integer"},"removed_members":{"description":"Members removed from the classes moved to another class type or location because their membership (or medical certificate, membership fee, documents; on the waiting list, also the entries, if the class costs more) does not allow it: booking cancelled with the entry refunded, if one was used, or removed from the waiting list, and a notice; each counted once (only with `booked_lessons: move`)","format":"int64","minimum":0,"type":"integer"}},"required":["moved_lessons","notified_members","removed_members"],"type":"object"}],"description":"Result of a weekly template update: the template, plus the classes moved with their booked members."},"TodaySummary":{"properties":{"booked":{"format":"int64","type":"integer"},"capacity":{"format":"int64","type":"integer"},"occurrences":{"format":"int64","type":"integer"}},"required":["occurrences","booked","capacity"],"type":"object"},"TrialSpot":{"description":"Trial in a class: a staff placeholder for someone coming to try who is not a member. It takes a seat; staff mark whether they came, with no strikes or automatic no-show; the note is for staff only.","properties":{"attended":{"description":"Attendance: empty = not marked yet, true = present, false = absent","type":["boolean","null"]},"created_at":{"format":"date-time","type":"string"},"created_by_name":{"description":"Who added it (first and last name)","type":["string","null"]},"id":{"format":"uuid","type":"string"},"name":{"description":"Name chosen by staff; empty = \"Trial\" (\"Prova\")","type":["string","null"]},"note":{"description":"Note visible to staff only","type":["string","null"]},"occurrence_id":{"format":"uuid","type":"string"}},"required":["id","occurrence_id","created_at"],"type":"object"},"TvDay":{"description":"A day as the panel sees it: the classes' skills of the week and, if any, the custom text.","properties":{"custom":{"oneOf":[{"$ref":"#/components/schemas/CustomDay"},{"type":"null"}]},"day":{"type":"string"},"workouts":{"items":{"$ref":"#/components/schemas/DayWorkout"},"type":"array"}},"required":["day","workouts"],"type":"object"},"UpdateClassTypeRequest":{"properties":{"color":{"type":["string","null"]},"credit_cost":{"description":"Entries consumed by a booking (1–20)","format":"int32","type":["integer","null"]},"description":{"type":["string","null"]},"duration_min":{"format":"int32","type":["integer","null"]},"is_active":{"type":["boolean","null"]},"level":{"type":["string","null"]},"name":{"type":["string","null"]}},"type":"object"},"UpdateGymRequest":{"description":"The logo is not changed here: upload it with `POST /gyms/{gym_id}/logo`.","properties":{"booking_animation":{"description":"Animated exercise after booking","type":["boolean","null"]},"bookings_open_until":{"description":"Early opening: classes can be booked right away up to this date (inclusive). Absent = unchanged, `null` = removed.","type":["string","null"]},"external_payment_enabled":{"description":"You already have your own payment system: turning it on requires a link (in the body or already saved)","type":["boolean","null"]},"external_payment_url":{"description":"Link to renew on the gym's website (http or https; without a scheme https:// is added). Missing = unchanged, `null` or empty = removed.","type":["string","null"]},"is_listed":{"description":"Visible in the app's search (false = invite code only)","type":["boolean","null"]},"member_docs_enabled":{"description":"Gym documents to be signed in the app","type":["boolean","null"]},"membership_fee_cents":{"description":"Proposed fee amount (cents). Absent = unchanged, `null` = removed.","format":"int32","type":["integer","null"]},"name":{"type":["string","null"]},"primary_color":{"description":"Primary colour in hex, e.g. #C6FF3D","type":["string","null"]},"qr_checkin_enabled":{"description":"Member's QR for entries","type":["boolean","null"]},"reminder_minutes_before":{"description":"0 = no reminder, maximum 1440","format":"int32","type":["integer","null"]},"require_medical_certificate":{"type":["boolean","null"]},"require_membership_fee":{"description":"Annual membership fee required to book","type":["boolean","null"]},"show_coach_last_name":{"description":"Coach's last name shown in classes","type":["boolean","null"]},"show_prices":{"description":"Amounts and prices visible to members in the app","type":["boolean","null"]},"timezone":{"type":["string","null"]}},"type":"object"},"UpdateLocationRequest":{"properties":{"address":{"type":["string","null"]},"is_default":{"type":["boolean","null"]},"name":{"type":["string","null"]},"timezone":{"type":["string","null"]}},"type":"object"},"UpdateMemberProfileRequest":{"properties":{"email":{"description":"New email: only for members created by the gym's staff (403 otherwise), 409 if it already belongs to another account. The new address receives the email with the link to choose a password and sign in to the app (valid for 7 days); links sent earlier, the previous password and open sessions stop working.","type":["string","null"]},"first_name":{"type":["string","null"]},"last_name":{"type":["string","null"]},"phone":{"description":"Empty string = removes the phone","type":["string","null"]}},"type":"object"},"UpdateRoomRequest":{"properties":{"capacity":{"format":"int32","type":["integer","null"]},"name":{"type":["string","null"]}},"type":"object"},"UpdateTemplateRequest":{"properties":{"booked_lessons":{"oneOf":[{"$ref":"#/components/schemas/BookedLessons","description":"If the days, time, class type or location change: what to do with the future classes that already have bookings (see the `change-preview` preview). `move` moves them to the new schedule and notifies the booked members; `keep` (default) leaves them as they are. Either way the template keeps a single class per day."},{"type":"null"}]},"capacity":{"format":"int32","type":["integer","null"]},"class_type_id":{"format":"uuid","type":["string","null"]},"coach_id":{"description":"null to remove the coach","format":"uuid","type":["string","null"]},"duration_min":{"format":"int32","type":["integer","null"]},"is_active":{"description":"false deactivates it like the DELETE; true reactivates it and generates the future classes again","type":["boolean","null"]},"location_id":{"format":"uuid","type":["string","null"]},"room_id":{"description":"null to remove the room","format":"uuid","type":["string","null"]},"start_time":{"type":["string","null"]},"valid_from":{"format":"date","type":["string","null"]},"valid_until":{"description":"null to make it never expire","format":"date","type":["string","null"]},"weekdays":{"items":{"format":"int32","minimum":0,"type":"integer"},"type":["array","null"]}},"type":"object"},"Waiter":{"description":"Who is waiting: same privacy as the attendees, plus the position.","properties":{"anonymous":{"type":"boolean"},"avatar_url":{"type":["string","null"]},"display_name":{"type":"string"},"is_me":{"type":"boolean"},"position":{"description":"1 = next in line","format":"int64","type":"integer"},"promoted":{"description":"Already has a spot offered and must accept it","type":"boolean"},"user_id":{"format":"uuid","type":["string","null"]}},"required":["display_name","is_me","anonymous","position","promoted"],"type":"object"},"WaitlistEntry":{"properties":{"created_at":{"format":"date-time","type":"string"},"expires_at":{"format":"date-time","type":["string","null"]},"gym_id":{"format":"uuid","type":"string"},"id":{"format":"uuid","type":"string"},"occurrence_id":{"format":"uuid","type":"string"},"position":{"format":"int32","type":"integer"},"promoted_at":{"format":"date-time","type":["string","null"]},"status":{"type":"string"},"updated_at":{"format":"date-time","type":"string"},"user_id":{"format":"uuid","type":"string"}},"required":["id","gym_id","occurrence_id","user_id","position","status","created_at","updated_at"],"type":"object"},"WaitlistEntryWithUser":{"properties":{"created_at":{"format":"date-time","type":"string"},"expires_at":{"format":"date-time","type":["string","null"]},"first_name":{"type":"string"},"id":{"format":"uuid","type":"string"},"last_name":{"type":"string"},"rank":{"format":"int64","type":"integer"},"status":{"type":"string"},"user_id":{"format":"uuid","type":"string"}},"required":["id","user_id","first_name","last_name","status","rank","created_at"],"type":"object"},"WodTv":{"description":"Look and content of the TV. The `token` is the public address.","properties":{"accent_color":{"description":"Accent colour (clock, labels), `#RRGGBB`","type":"string"},"bg_color":{"description":"Background colour, `#RRGGBB`","type":"string"},"bg_color2":{"description":"Second gradient colour, `#RRGGBB`","type":"string"},"bg_mode":{"description":"solid | gradient | image","type":"string"},"class_type_ids":{"description":"Class types shown; absent = all","items":{"format":"uuid","type":"string"},"type":["array","null"]},"font":{"description":"unbounded | manrope | serif | mono | system","type":"string"},"gym_id":{"format":"uuid","type":"string"},"orientation":{"description":"auto | landscape | portrait","type":"string"},"rotate_seconds":{"description":"Seconds between one WOD and the next when there is more than one (5–120)","format":"int32","type":"integer"},"show_clock":{"description":"Clock at the top right","type":"boolean"},"show_logo":{"description":"Gym logo next to the name","type":"boolean"},"show_schedule":{"description":"Strip with today's classes","type":"boolean"},"text_color":{"description":"Text colour, `#RRGGBB`","type":"string"},"text_scale":{"description":"Text size as a percentage (50–200)","format":"int32","type":"integer"},"token":{"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["gym_id","token","orientation","font","bg_mode","bg_color","bg_color2","text_color","accent_color","text_scale","show_clock","show_schedule","show_logo","rotate_seconds","updated_at"],"type":"object"},"WodTvDto":{"properties":{"bg_image_url":{"description":"Uploaded background photo, if any","type":["string","null"]},"class_types":{"description":"Active class types (to choose which ones to show)","items":{"$ref":"#/components/schemas/ClassTypeLite"},"type":"array"},"days":{"description":"Today and the coming days","items":{"$ref":"#/components/schemas/TvDay"},"type":"array"},"public_url":{"description":"Address to open on the TV","type":"string"},"settings":{"$ref":"#/components/schemas/WodTv"},"today":{"type":"string"}},"required":["settings","public_url","today","days","class_types"],"type":"object"},"WodTvSettingsRequest":{"properties":{"accent_color":{"description":"Accent colour (clock, labels), `#RRGGBB`","type":"string"},"bg_color":{"description":"Background colour, `#RRGGBB`","type":"string"},"bg_color2":{"description":"Second gradient colour, `#RRGGBB`","type":"string"},"bg_mode":{"description":"solid | gradient | image","type":"string"},"class_type_ids":{"description":"Class types to show; absent or empty = all","items":{"format":"uuid","type":"string"},"type":["array","null"]},"font":{"description":"unbounded | manrope | serif | mono | system","type":"string"},"orientation":{"description":"auto | landscape | portrait","type":"string"},"rotate_seconds":{"description":"Seconds between one class and the next, 5–120","format":"int32","type":"integer"},"show_clock":{"description":"Clock at the top right","type":"boolean"},"show_logo":{"description":"Gym logo next to the name","type":"boolean"},"show_schedule":{"description":"Strip with today's classes","type":"boolean"},"text_color":{"description":"Text colour, `#RRGGBB`","type":"string"},"text_scale":{"description":"Text size as a percentage, 50–200","format":"int32","type":"integer"}},"required":["orientation","font","bg_mode","bg_color","bg_color2","text_color","accent_color","text_scale","show_clock","show_schedule","show_logo","rotate_seconds"],"type":"object"},"Workout":{"description":"What is done on a given day for a class type: shared by all classes of that type on that day (in the gym's time zone).","properties":{"animation":{"description":"Exercise animation picked by hand for the workout of the day: missing = from the text, `none` = none","type":["string","null"]},"class_type_id":{"format":"uuid","type":"string"},"created_at":{"format":"date-time","type":"string"},"created_by":{"format":"uuid","type":["string","null"]},"day":{"format":"date","type":"string"},"gym_id":{"format":"uuid","type":"string"},"id":{"format":"uuid","type":"string"},"notes":{"type":["string","null"]},"title":{"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["id","gym_id","class_type_id","day","title","created_at","updated_at"],"type":"object"},"WorkoutItem":{"description":"A workout of the day to save; empty title = removes it.","properties":{"animation":{"description":"Exercise animation in the app: missing = keeps the previous one, `auto` = from the text, `none` = none, otherwise the exercise name (e.g. `deadlift`)","type":["string","null"]},"class_type_id":{"format":"uuid","type":"string"},"day":{"example":"2026-10-20","type":"string"},"notes":{"type":["string","null"]},"title":{"type":"string"}},"required":["day","class_type_id","title"],"type":"object"},"WorkoutPatch":{"properties":{"ranking_mode":{"description":"positions | points_table | raw_sum","type":["string","null"]},"score_type":{"description":"time | reps | load | distance | calories | points","type":["string","null"]},"sort":{"format":"int32","type":["integer","null"]},"tiebreak_type":{"description":"time | reps | load | distance | calories | points (null = none)","type":["string","null"]},"title":{"type":["string","null"]}},"type":"object"},"WorkoutResult":{"properties":{"contribution":{"description":"Points or position used for the overall ranking","format":"double","type":"number"},"rank":{"format":"int32","minimum":0,"type":["integer","null"]},"scaled":{"type":"boolean"},"tiebreak":{"format":"double","type":["number","null"]},"value":{"format":"double","type":["number","null"]},"workout_id":{"format":"uuid","type":"string"}},"required":["workout_id","scaled","contribution"],"type":"object"},"WorkoutsRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WorkoutItem"},"type":"array"}},"required":["items"],"type":"object"}},"securitySchemes":{"apiKey":{"bearerFormat":"bx_live_…","description":"The gym's API key, created in the panel (Settings → Box API). The scope next to the padlock is the id of the API to grant to the key.","scheme":"bearer","type":"http"}}},"info":{"contact":{"email":"info@boxly.run","name":"Boxly","url":"https://boxly.run/api.html"},"description":"Box API: the Boxly panel's API that a gym can open to its own systems (scripts, Zapier, Make, n8n, management software, turnstiles). Boxly enables access per gym; the owner creates keys in the panel choosing an expiry and, one by one, the allowed APIs. Authentication: `Authorization: Bearer bx_live_…`. A key only works for its own gym (`gym_id` in the path): another `gym_id` answers 403. Errors are always JSON `{\"error\": \"<code>\", \"message\": \"<text>\"}` with `message` in the language of `Accept-Language` (it, en, fr); `missing_scope` = API not granted to the key, `api_disabled` = access switched off by Boxly. Rate limit: 60 requests per minute in total per gym, shared by all its keys; above that, 429 `too_many_requests`.","termsOfService":"https://boxly.run/palestre-termini.html","title":"Boxly · Box API","version":"1"},"openapi":"3.1.0","paths":{"/gyms/{gym_id}":{"get":{"description":"Read the gym's data","operationId":"get_gym","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GymDto"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["get_gym"]}],"summary":"Read the gym's data","tags":["gym"],"x-area-label":{"en":"Gym and locations","fr":"Salle et sites","it":"Palestra e sedi"},"x-description":{"en":"Read the gym's data","fr":"Lire les données de la salle","it":"Leggere i dati della palestra"}},"patch":{"description":"Update the gym's data and settings","operationId":"update_gym","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateGymRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GymDto"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["update_gym"]}],"summary":"Update the gym's data and settings","tags":["gym"],"x-area-label":{"en":"Gym and locations","fr":"Salle et sites","it":"Palestra e sedi"},"x-description":{"en":"Update the gym's data and settings","fr":"Modifier les données et réglages de la salle","it":"Modificare i dati e le impostazioni della palestra"}}},"/gyms/{gym_id}/booking-policies":{"get":{"description":"Read booking rules","operationId":"list_policies","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PolicyRow"},"type":"array"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["list_policies"]}],"summary":"Read booking rules","tags":["bookings"],"x-area-label":{"en":"Bookings and attendance","fr":"Réservations et présences","it":"Prenotazioni e presenze"},"x-description":{"en":"Read booking rules","fr":"Lire les règles de réservation","it":"Leggere le regole di prenotazione"}},"put":{"description":"Create or update a booking rule","operationId":"upsert_policy","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyRow"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["upsert_policy"]}],"summary":"Create or update a booking rule","tags":["bookings"],"x-area-label":{"en":"Bookings and attendance","fr":"Réservations et présences","it":"Prenotazioni e presenze"},"x-description":{"en":"Create or update a booking rule","fr":"Créer ou modifier une règle de réservation","it":"Creare o modificare una regola di prenotazione"}}},"/gyms/{gym_id}/booking-policies/{policy_id}":{"delete":{"description":"Delete a booking rule","operationId":"delete_policy","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"policy_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["delete_policy"]}],"summary":"Delete a booking rule","tags":["bookings"],"x-area-label":{"en":"Bookings and attendance","fr":"Réservations et présences","it":"Prenotazioni e presenze"},"x-description":{"en":"Delete a booking rule","fr":"Supprimer une règle de réservation","it":"Eliminare una regola di prenotazione"}}},"/gyms/{gym_id}/broadcast":{"post":{"description":"Notify all members","operationId":"broadcast","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastRequest"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["broadcast"]}],"summary":"Notify all members","tags":["communications"],"x-area-label":{"en":"Communications","fr":"Communications","it":"Comunicazioni"},"x-description":{"en":"Notify all members","fr":"Notifier tous les membres","it":"Notifica a tutti i clienti"}}},"/gyms/{gym_id}/checkin":{"post":{"description":"Entrance check-in with the member's QR (turnstiles and readers)","operationId":"checkin","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckinRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckinResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["checkin"]}],"summary":"Entrance check-in with the member's QR (turnstiles and readers)","tags":["bookings"],"x-area-label":{"en":"Bookings and attendance","fr":"Réservations et présences","it":"Prenotazioni e presenze"},"x-description":{"en":"Entrance check-in with the member's QR (turnstiles and readers)","fr":"Check-in à l'entrée avec le QR du membre (tourniquets et lecteurs)","it":"Check-in all'ingresso con il QR del cliente (tornelli e lettori)"}}},"/gyms/{gym_id}/class-types":{"get":{"description":"List class types","operationId":"list_class_types","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"query","name":"include_inactive","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ClassType"},"type":"array"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["list_class_types"]}],"summary":"List class types","tags":["schedule"],"x-area-label":{"en":"Schedule","fr":"Planning","it":"Palinsesto"},"x-description":{"en":"List class types","fr":"Liste des types de cours","it":"Elenco dei tipi di corso"}},"post":{"description":"Create a class type","operationId":"create_class_type","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassTypeRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassType"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["create_class_type"]}],"summary":"Create a class type","tags":["schedule"],"x-area-label":{"en":"Schedule","fr":"Planning","it":"Palinsesto"},"x-description":{"en":"Create a class type","fr":"Créer un type de cours","it":"Creare un tipo di corso"}}},"/gyms/{gym_id}/class-types/{class_type_id}":{"patch":{"description":"Update a class type","operationId":"update_class_type","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"class_type_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateClassTypeRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassType"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["update_class_type"]}],"summary":"Update a class type","tags":["schedule"],"x-area-label":{"en":"Schedule","fr":"Planning","it":"Palinsesto"},"x-description":{"en":"Update a class type","fr":"Modifier un type de cours","it":"Modificare un tipo di corso"}}},"/gyms/{gym_id}/dashboard":{"get":{"description":"Today's dashboard","operationId":"dashboard","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dashboard"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["dashboard"]}],"summary":"Today's dashboard","tags":["reports"],"x-area-label":{"en":"Reports","fr":"Rapports","it":"Report"},"x-description":{"en":"Today's dashboard","fr":"Tableau de bord du jour","it":"Dashboard del giorno"}}},"/gyms/{gym_id}/events":{"get":{"description":"List events","operationId":"list_events","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventListResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["list_events"]}],"summary":"List events","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"List events","fr":"Liste des événements","it":"Elenco degli eventi"},"x-requires-events":true},"post":{"description":"Create an event","operationId":"create_event","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEventRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventSummary"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["create_event"]}],"summary":"Create an event","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Create an event","fr":"Créer un événement","it":"Creare un evento"},"x-requires-events":true}},"/gyms/{gym_id}/events/{id}":{"delete":{"description":"Delete an event","operationId":"delete_event","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["delete_event"]}],"summary":"Delete an event","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Delete an event","fr":"Supprimer un événement","it":"Eliminare un evento"},"x-requires-events":true},"get":{"description":"Event details","operationId":"get_event","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventSummary"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["get_event"]}],"summary":"Event details","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Event details","fr":"Détail d'un événement","it":"Dettaglio di un evento"},"x-requires-events":true},"patch":{"description":"Update an event","operationId":"update_event","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventPatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventSummary"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["update_event"]}],"summary":"Update an event","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Update an event","fr":"Modifier un événement","it":"Modificare un evento"},"x-requires-events":true}},"/gyms/{gym_id}/events/{id}/accounts":{"get":{"description":"Event registrations (with participants and documents)","operationId":"list_event_accounts","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AccountView"},"type":"array"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["list_event_accounts"]}],"summary":"Event registrations (with participants and documents)","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Event registrations (with participants and documents)","fr":"Inscrits à un événement (participants et documents)","it":"Iscritti a un evento (con partecipanti e documenti)"},"x-requires-events":true}},"/gyms/{gym_id}/events/{id}/accounts/{aid}":{"delete":{"description":"Delete a registration","operationId":"delete_event_account","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"aid","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["delete_event_account"]}],"summary":"Delete a registration","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Delete a registration","fr":"Supprimer une inscription","it":"Eliminare un'iscrizione"},"x-requires-events":true},"patch":{"description":"Change a registration's status","operationId":"set_event_account_status","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"aid","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountStatusRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["set_event_account_status"]}],"summary":"Change a registration's status","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Change a registration's status","fr":"Changer le statut d'une inscription","it":"Cambiare lo stato di un'iscrizione"},"x-requires-events":true}},"/gyms/{gym_id}/events/{id}/accounts/{aid}/checkin":{"post":{"description":"Check in a registration at the event","operationId":"event_checkin","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"aid","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventCheckinRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventCheckinResult"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["event_checkin"]}],"summary":"Check in a registration at the event","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Check in a registration at the event","fr":"Check-in d'une inscription à l'événement","it":"Check-in di un'iscrizione all'evento"},"x-requires-events":true}},"/gyms/{gym_id}/events/{id}/categories":{"get":{"description":"Event categories","operationId":"list_event_categories","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Category"},"type":"array"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["list_event_categories"]}],"summary":"Event categories","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Event categories","fr":"Catégories d'un événement","it":"Categorie di un evento"},"x-requires-events":true},"post":{"description":"Create a category","operationId":"create_event_category","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryPatch"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Category"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["create_event_category"]}],"summary":"Create a category","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Create a category","fr":"Créer une catégorie","it":"Creare una categoria"},"x-requires-events":true}},"/gyms/{gym_id}/events/{id}/categories/{cid}":{"delete":{"description":"Delete a category","operationId":"delete_event_category","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"cid","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["delete_event_category"]}],"summary":"Delete a category","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Delete a category","fr":"Supprimer une catégorie","it":"Eliminare una categoria"},"x-requires-events":true},"patch":{"description":"Update a category","operationId":"update_event_category","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"cid","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryPatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Category"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["update_event_category"]}],"summary":"Update a category","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Update a category","fr":"Modifier une catégorie","it":"Modificare una categoria"},"x-requires-events":true}},"/gyms/{gym_id}/events/{id}/checkin/{code}":{"post":{"description":"Event check-in by the participant's code","operationId":"event_checkin_by_code","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"code","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventCheckinResult"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["event_checkin_by_code"]}],"summary":"Event check-in by the participant's code","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Event check-in by the participant's code","fr":"Check-in à l'événement avec le code de l'inscrit","it":"Check-in all'evento con il codice dell'iscritto"},"x-requires-events":true}},"/gyms/{gym_id}/events/{id}/documents/{did}/file":{"get":{"description":"Download a participant's document","operationId":"download_event_document","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"did","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"description":"The file"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["download_event_document"]}],"summary":"Download a participant's document","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Download a participant's document","fr":"Télécharger le document d'un inscrit","it":"Scaricare il documento di un iscritto"},"x-requires-events":true}},"/gyms/{gym_id}/events/{id}/documents/{did}/review":{"post":{"description":"Approve or reject a participant's document","operationId":"review_event_document","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"did","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["review_event_document"]}],"summary":"Approve or reject a participant's document","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Approve or reject a participant's document","fr":"Valider ou refuser le document d'un inscrit","it":"Validare o rifiutare il documento di un iscritto"},"x-requires-events":true}},"/gyms/{gym_id}/events/{id}/export.csv":{"get":{"description":"CSV export of registrations","operationId":"event_export_csv","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"text/csv":{}},"description":"CSV of the registrations"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["event_export_csv"]}],"summary":"CSV export of registrations","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"CSV export of registrations","fr":"Export CSV des inscrits","it":"Esportazione CSV degli iscritti"},"x-requires-events":true}},"/gyms/{gym_id}/events/{id}/images":{"get":{"description":"Event page images","operationId":"list_event_images","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Image"},"type":"array"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["list_event_images"]}],"summary":"Event page images","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Event page images","fr":"Images de la page de l'événement","it":"Immagini della pagina dell'evento"},"x-requires-events":true},"post":{"description":"Upload an image (cover, gallery, sponsor)","operationId":"upload_event_image","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"multipart/form-data":{}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Image"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["upload_event_image"]}],"summary":"Upload an image (cover, gallery, sponsor)","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Upload an image (cover, gallery, sponsor)","fr":"Téléverser une image (couverture, galerie, sponsor)","it":"Caricare un'immagine (copertina, galleria, sponsor)"},"x-requires-events":true}},"/gyms/{gym_id}/events/{id}/images/{iid}":{"delete":{"description":"Delete an image","operationId":"delete_event_image","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"iid","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["delete_event_image"]}],"summary":"Delete an image","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Delete an image","fr":"Supprimer une image","it":"Eliminare un'immagine"},"x-requires-events":true},"patch":{"description":"Update an image","operationId":"update_event_image","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"iid","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImagePatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Image"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["update_event_image"]}],"summary":"Update an image","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Update an image","fr":"Modifier une image","it":"Modificare un'immagine"},"x-requires-events":true}},"/gyms/{gym_id}/events/{id}/leaderboard":{"get":{"description":"Event leaderboard","operationId":"event_leaderboard","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CategoryLeaderboard"},"type":"array"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["event_leaderboard"]}],"summary":"Event leaderboard","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Event leaderboard","fr":"Classement d'un événement","it":"Classifica di un evento"},"x-requires-events":true}},"/gyms/{gym_id}/events/{id}/links":{"get":{"description":"Public and preview links of an event","operationId":"event_links","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventLinks"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["event_links"]}],"summary":"Public and preview links of an event","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Public and preview links of an event","fr":"Liens publics et d'aperçu d'un événement","it":"Link pubblici e di anteprima di un evento"},"x-requires-events":true}},"/gyms/{gym_id}/events/{id}/participants/{pid}":{"patch":{"description":"Hide or show a participant in the leaderboard","operationId":"set_event_participant_visibility","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"pid","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParticipantVisibility"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventParticipant"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["set_event_participant_visibility"]}],"summary":"Hide or show a participant in the leaderboard","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Hide or show a participant in the leaderboard","fr":"Masquer ou afficher un participant au classement","it":"Nascondere o mostrare un partecipante in classifica"},"x-requires-events":true}},"/gyms/{gym_id}/events/{id}/requirements":{"get":{"description":"Document requirements of an event","operationId":"list_event_requirements","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Requirement"},"type":"array"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["list_event_requirements"]}],"summary":"Document requirements of an event","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Document requirements of an event","fr":"Documents requis d'un événement","it":"Requisiti documentali di un evento"},"x-requires-events":true},"post":{"description":"Create a document requirement","operationId":"create_event_requirement","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequirementPatch"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Requirement"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["create_event_requirement"]}],"summary":"Create a document requirement","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Create a document requirement","fr":"Créer un document requis","it":"Creare un requisito documentale"},"x-requires-events":true}},"/gyms/{gym_id}/events/{id}/requirements/{rid}":{"delete":{"description":"Delete a document requirement","operationId":"delete_event_requirement","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"rid","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["delete_event_requirement"]}],"summary":"Delete a document requirement","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Delete a document requirement","fr":"Supprimer un document requis","it":"Eliminare un requisito documentale"},"x-requires-events":true},"patch":{"description":"Update a document requirement","operationId":"update_event_requirement","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"rid","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequirementPatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Requirement"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["update_event_requirement"]}],"summary":"Update a document requirement","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Update a document requirement","fr":"Modifier un document requis","it":"Modificare un requisito documentale"},"x-requires-events":true}},"/gyms/{gym_id}/events/{id}/requirements/{rid}/template":{"delete":{"description":"Delete a requirement's template","operationId":"delete_requirement_template","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"rid","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["delete_requirement_template"]}],"summary":"Delete a requirement's template","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Delete a requirement's template","fr":"Supprimer le modèle d'un document requis","it":"Eliminare il modello di un requisito"},"x-requires-events":true},"get":{"description":"Download a requirement's template","operationId":"download_requirement_template","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"rid","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"description":"The file"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["download_requirement_template"]}],"summary":"Download a requirement's template","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Download a requirement's template","fr":"Télécharger le modèle d'un document requis","it":"Scaricare il modello di un requisito"},"x-requires-events":true},"post":{"description":"Upload a requirement's template (PDF)","operationId":"upload_requirement_template","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"rid","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"multipart/form-data":{}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Requirement"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["upload_requirement_template"]}],"summary":"Upload a requirement's template (PDF)","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Upload a requirement's template (PDF)","fr":"Téléverser le modèle d'un document requis (PDF)","it":"Caricare il modello di un requisito (PDF)"},"x-requires-events":true}},"/gyms/{gym_id}/events/{id}/rules":{"delete":{"description":"Delete the rules","operationId":"delete_event_rules","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["delete_event_rules"]}],"summary":"Delete the rules","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Delete the rules","fr":"Supprimer le règlement","it":"Eliminare il regolamento"},"x-requires-events":true},"post":{"description":"Upload the rules (PDF)","operationId":"upload_event_rules","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"multipart/form-data":{}}},"responses":{"204":{},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["upload_event_rules"]}],"summary":"Upload the rules (PDF)","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Upload the rules (PDF)","fr":"Téléverser le règlement (PDF)","it":"Caricare il regolamento (PDF)"},"x-requires-events":true}},"/gyms/{gym_id}/events/{id}/status":{"post":{"description":"Change an event's status (draft, published, closed, archived)","operationId":"set_event_status","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["set_event_status"]}],"summary":"Change an event's status (draft, published, closed, archived)","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Change an event's status (draft, published, closed, archived)","fr":"Changer le statut d'un événement","it":"Cambiare lo stato di un evento (bozza, pubblicato, chiuso, archiviato)"},"x-requires-events":true}},"/gyms/{gym_id}/events/{id}/workouts":{"get":{"description":"Event workouts and scores","operationId":"list_event_workouts","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/EventWorkout"},"type":"array"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["list_event_workouts"]}],"summary":"Event workouts and scores","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Event workouts and scores","fr":"Épreuves et scores d'un événement","it":"Prove (workout) e punteggi di un evento"},"x-requires-events":true},"post":{"description":"Create a workout","operationId":"create_event_workout","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkoutPatch"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventWorkout"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["create_event_workout"]}],"summary":"Create a workout","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Create a workout","fr":"Créer une épreuve","it":"Creare una prova (workout)"},"x-requires-events":true}},"/gyms/{gym_id}/events/{id}/workouts/{wid}":{"delete":{"description":"Delete a workout","operationId":"delete_event_workout","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"wid","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["delete_event_workout"]}],"summary":"Delete a workout","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Delete a workout","fr":"Supprimer une épreuve","it":"Eliminare una prova"},"x-requires-events":true},"patch":{"description":"Update a workout","operationId":"update_event_workout","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"wid","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkoutPatch"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventWorkout"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["update_event_workout"]}],"summary":"Update a workout","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Update a workout","fr":"Modifier une épreuve","it":"Modificare una prova"},"x-requires-events":true}},"/gyms/{gym_id}/events/{id}/workouts/{wid}/scores":{"put":{"description":"Enter or update a score","operationId":"upsert_event_score","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"wid","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScoreRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Score"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["upsert_event_score"]}],"summary":"Enter or update a score","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Enter or update a score","fr":"Saisir ou modifier un score","it":"Inserire o modificare un punteggio"},"x-requires-events":true}},"/gyms/{gym_id}/events/{id}/workouts/{wid}/scores/{aid}":{"delete":{"description":"Delete a score","operationId":"delete_event_score","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"wid","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"aid","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["delete_event_score"]}],"summary":"Delete a score","tags":["events"],"x-area-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"},"x-description":{"en":"Delete a score","fr":"Supprimer un score","it":"Cancellare un punteggio"},"x-requires-events":true}},"/gyms/{gym_id}/invite-code":{"post":{"description":"Regenerate the invite code","operationId":"rotate_invite_code","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GymDto"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["rotate_invite_code"]}],"summary":"Regenerate the invite code","tags":["gym"],"x-area-label":{"en":"Gym and locations","fr":"Salle et sites","it":"Palestra e sedi"},"x-description":{"en":"Regenerate the invite code","fr":"Régénérer le code d'invitation","it":"Rigenerare il codice invito"}}},"/gyms/{gym_id}/join-requests":{"get":{"description":"Pending join requests","operationId":"list_join_requests","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/JoinRequestForStaff"},"type":"array"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["list_join_requests"]}],"summary":"Pending join requests","tags":["members"],"x-area-label":{"en":"Members","fr":"Membres","it":"Clienti"},"x-description":{"en":"Pending join requests","fr":"Demandes d'adhésion en attente","it":"Richieste di iscrizione in attesa"}}},"/gyms/{gym_id}/join-requests/{request_id}/approve":{"post":{"description":"Approve a join request","operationId":"approve_join_request","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"request_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["approve_join_request"]}],"summary":"Approve a join request","tags":["members"],"x-area-label":{"en":"Members","fr":"Membres","it":"Clienti"},"x-description":{"en":"Approve a join request","fr":"Approuver une demande d'adhésion","it":"Approvare una richiesta di iscrizione"}}},"/gyms/{gym_id}/join-requests/{request_id}/reject":{"post":{"description":"Reject a join request","operationId":"reject_join_request","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"request_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionBody"}}},"required":true},"responses":{"204":{},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["reject_join_request"]}],"summary":"Reject a join request","tags":["members"],"x-area-label":{"en":"Members","fr":"Membres","it":"Clienti"},"x-description":{"en":"Reject a join request","fr":"Refuser une demande d'adhésion","it":"Rifiutare una richiesta di iscrizione"}}},"/gyms/{gym_id}/locations":{"get":{"description":"List locations","operationId":"list_locations","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Location"},"type":"array"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["list_locations"]}],"summary":"List locations","tags":["gym"],"x-area-label":{"en":"Gym and locations","fr":"Salle et sites","it":"Palestra e sedi"},"x-description":{"en":"List locations","fr":"Liste des sites","it":"Elenco delle sedi"}},"post":{"description":"Create a location","operationId":"create_location","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Location"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["create_location"]}],"summary":"Create a location","tags":["gym"],"x-area-label":{"en":"Gym and locations","fr":"Salle et sites","it":"Palestra e sedi"},"x-description":{"en":"Create a location","fr":"Créer un site","it":"Creare una sede"}}},"/gyms/{gym_id}/locations/{location_id}":{"delete":{"description":"Delete a location","operationId":"delete_location","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"location_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["delete_location"]}],"summary":"Delete a location","tags":["gym"],"x-area-label":{"en":"Gym and locations","fr":"Salle et sites","it":"Palestra e sedi"},"x-description":{"en":"Delete a location","fr":"Supprimer un site","it":"Eliminare una sede"}},"patch":{"description":"Update a location","operationId":"update_location","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"location_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLocationRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Location"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["update_location"]}],"summary":"Update a location","tags":["gym"],"x-area-label":{"en":"Gym and locations","fr":"Salle et sites","it":"Palestra e sedi"},"x-description":{"en":"Update a location","fr":"Modifier un site","it":"Modificare una sede"}}},"/gyms/{gym_id}/locations/{location_id}/rooms":{"post":{"description":"Create a room in a location","operationId":"create_room","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"location_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoomRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Room"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["create_room"]}],"summary":"Create a room in a location","tags":["gym"],"x-area-label":{"en":"Gym and locations","fr":"Salle et sites","it":"Palestra e sedi"},"x-description":{"en":"Create a room in a location","fr":"Créer un espace dans un site","it":"Creare una sala in una sede"}}},"/gyms/{gym_id}/logo":{"delete":{"description":"Remove the gym's logo","operationId":"delete_gym_logo","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GymDto"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["delete_gym_logo"]}],"summary":"Remove the gym's logo","tags":["gym"],"x-area-label":{"en":"Gym and locations","fr":"Salle et sites","it":"Palestra e sedi"},"x-description":{"en":"Remove the gym's logo","fr":"Supprimer le logo de la salle","it":"Togliere il logo della palestra"}},"post":{"description":"Upload the gym's logo (multipart, field file: PNG, JPG or WebP, up to 1 MB)","operationId":"upload_gym_logo","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"multipart/form-data":{}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GymDto"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["upload_gym_logo"]}],"summary":"Upload the gym's logo (multipart, field file: PNG, JPG or WebP, up to 1 MB)","tags":["gym"],"x-area-label":{"en":"Gym and locations","fr":"Salle et sites","it":"Palestra e sedi"},"x-description":{"en":"Upload the gym's logo (multipart, field file: PNG, JPG or WebP, up to 1 MB)","fr":"Téléverser le logo de la salle (multipart, champ file : PNG, JPG ou WebP, 1 Mo maximum)","it":"Caricare il logo della palestra (multipart, campo file: PNG, JPG o WebP, massimo 1 MB)"}}},"/gyms/{gym_id}/members":{"get":{"description":"List members and staff","operationId":"list_members","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Member"},"type":"array"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["list_members"]}],"summary":"List members and staff","tags":["members"],"x-area-label":{"en":"Members","fr":"Membres","it":"Clienti"},"x-description":{"en":"List members and staff","fr":"Liste des membres et de l'équipe","it":"Elenco dei clienti e dello staff"}},"post":{"description":"Create a member (with or without email)","operationId":"create_member","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMemberRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Member"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["create_member"]}],"summary":"Create a member (with or without email)","tags":["members"],"x-area-label":{"en":"Members","fr":"Membres","it":"Clienti"},"x-description":{"en":"Create a member (with or without email)","fr":"Créer un membre (avec ou sans e-mail)","it":"Creare un cliente (con o senza email)"}}},"/gyms/{gym_id}/members/{user_id}":{"delete":{"description":"Delete the account of a member who belongs only to this gym (cannot be undone: future bookings cancelled, payments and attendance kept without the name)","operationId":"delete_member","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"user_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["delete_member"]}],"summary":"Delete the account of a member who belongs only to this gym (cannot be undone: future bookings cancelled, payments and attendance kept without the name)","tags":["members"],"x-area-label":{"en":"Members","fr":"Membres","it":"Clienti"},"x-description":{"en":"Delete the account of a member who belongs only to this gym (cannot be undone: future bookings cancelled, payments and attendance kept without the name)","fr":"Supprimer le compte d'un membre inscrit uniquement dans cette salle (irréversible : réservations futures annulées, paiements et présences conservés sans le nom)","it":"Eliminare l'account di un cliente iscritto solo a questa palestra (irreversibile: prenotazioni future annullate, pagamenti e presenze restano senza nome)"}}},"/gyms/{gym_id}/members/{user_id}/access-link":{"post":{"description":"Email a member the link to choose a password and sign in to the app","operationId":"send_member_access_link","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"user_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}},"security":[{"apiKey":["send_member_access_link"]}],"summary":"Email a member the link to choose a password and sign in to the app","tags":["members"],"x-area-label":{"en":"Members","fr":"Membres","it":"Clienti"},"x-description":{"en":"Email a member the link to choose a password and sign in to the app","fr":"Envoyer à un membre l'e-mail pour choisir son mot de passe et se connecter à l'app","it":"Mandare a un cliente l'email per scegliere la password ed entrare nell'app"}}},"/gyms/{gym_id}/members/{user_id}/avatar":{"delete":{"description":"Remove the photo of a member who belongs only to this gym","operationId":"delete_member_avatar","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"user_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Member"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["delete_member_avatar"]}],"summary":"Remove the photo of a member who belongs only to this gym","tags":["members"],"x-area-label":{"en":"Members","fr":"Membres","it":"Clienti"},"x-description":{"en":"Remove the photo of a member who belongs only to this gym","fr":"Supprimer la photo d'un membre inscrit uniquement dans cette salle","it":"Togliere la foto di un cliente iscritto solo a questa palestra"}},"post":{"description":"Upload the photo of a member who belongs only to this gym (JPG or PNG)","operationId":"upload_member_avatar","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"user_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"multipart/form-data":{}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Member"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["upload_member_avatar"]}],"summary":"Upload the photo of a member who belongs only to this gym (JPG or PNG)","tags":["members"],"x-area-label":{"en":"Members","fr":"Membres","it":"Clienti"},"x-description":{"en":"Upload the photo of a member who belongs only to this gym (JPG or PNG)","fr":"Téléverser la photo d'un membre inscrit uniquement dans cette salle (JPG ou PNG)","it":"Caricare la foto di un cliente iscritto solo a questa palestra (JPG o PNG)"}}},"/gyms/{gym_id}/members/{user_id}/bookings":{"get":{"description":"A member's booking and attendance history","operationId":"member_bookings","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"user_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"query","name":"from","required":false,"schema":{"type":"string"}},{"in":"query","name":"to","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/MyBooking"},"type":"array"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["member_bookings"]}],"summary":"A member's booking and attendance history","tags":["bookings"],"x-area-label":{"en":"Bookings and attendance","fr":"Réservations et présences","it":"Prenotazioni e presenze"},"x-description":{"en":"A member's booking and attendance history","fr":"Historique des réservations et présences d'un membre","it":"Storico prenotazioni e presenze di un cliente"}}},"/gyms/{gym_id}/members/{user_id}/membership-fees":{"get":{"description":"A member's membership fees","operationId":"list_membership_fees","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"user_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/MembershipFee"},"type":"array"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["list_membership_fees"]}],"summary":"A member's membership fees","tags":["memberships"],"x-area-label":{"en":"Memberships and payments","fr":"Abonnements et paiements","it":"Abbonamenti e pagamenti"},"x-description":{"en":"A member's membership fees","fr":"Cotisations d'un membre","it":"Quote associative di un cliente"}},"post":{"description":"Record a member's membership fee","operationId":"create_membership_fee","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"user_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipFeeRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipFeeResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["create_membership_fee"]}],"summary":"Record a member's membership fee","tags":["memberships"],"x-area-label":{"en":"Memberships and payments","fr":"Abonnements et paiements","it":"Abbonamenti e pagamenti"},"x-description":{"en":"Record a member's membership fee","fr":"Enregistrer la cotisation d'un membre","it":"Registrare la quota associativa di un cliente"}}},"/gyms/{gym_id}/members/{user_id}/membership-fees/{fee_id}":{"delete":{"description":"Delete a membership fee","operationId":"delete_membership_fee","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"user_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"fee_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["delete_membership_fee"]}],"summary":"Delete a membership fee","tags":["memberships"],"x-area-label":{"en":"Memberships and payments","fr":"Abonnements et paiements","it":"Abbonamenti e pagamenti"},"x-description":{"en":"Delete a membership fee","fr":"Supprimer une cotisation","it":"Cancellare una quota associativa"}}},"/gyms/{gym_id}/members/{user_id}/memberships":{"get":{"description":"A member's memberships","operationId":"list_memberships","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"user_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/MembershipView"},"type":"array"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["list_memberships"]}],"summary":"A member's memberships","tags":["memberships"],"x-area-label":{"en":"Memberships and payments","fr":"Abonnements et paiements","it":"Abbonamenti e pagamenti"},"x-description":{"en":"A member's memberships","fr":"Abonnements d'un membre","it":"Abbonamenti di un cliente"}},"post":{"description":"Assign a membership (optional payment)","operationId":"create_membership","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"user_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["create_membership"]}],"summary":"Assign a membership (optional payment)","tags":["memberships"],"x-area-label":{"en":"Memberships and payments","fr":"Abonnements et paiements","it":"Abbonamenti e pagamenti"},"x-description":{"en":"Assign a membership (optional payment)","fr":"Attribuer un abonnement (paiement facultatif)","it":"Assegnare un abbonamento (con pagamento facoltativo)"}}},"/gyms/{gym_id}/members/{user_id}/memberships/{membership_id}/freeze":{"post":{"description":"Freeze a membership","operationId":"freeze_membership","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"user_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"membership_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipView"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["freeze_membership"]}],"summary":"Freeze a membership","tags":["memberships"],"x-area-label":{"en":"Memberships and payments","fr":"Abonnements et paiements","it":"Abbonamenti e pagamenti"},"x-description":{"en":"Freeze a membership","fr":"Geler un abonnement","it":"Congelare un abbonamento"}}},"/gyms/{gym_id}/members/{user_id}/memberships/{membership_id}/ledger":{"get":{"description":"Credit movements of a membership","operationId":"membership_ledger","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"user_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"membership_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/LedgerEntry"},"type":"array"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["membership_ledger"]}],"summary":"Credit movements of a membership","tags":["memberships"],"x-area-label":{"en":"Memberships and payments","fr":"Abonnements et paiements","it":"Abbonamenti e pagamenti"},"x-description":{"en":"Credit movements of a membership","fr":"Mouvements des entrées d'un abonnement","it":"Movimenti degli ingressi di un abbonamento"}}},"/gyms/{gym_id}/members/{user_id}/memberships/{membership_id}/unfreeze":{"post":{"description":"Unfreeze a membership","operationId":"unfreeze_membership","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"user_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"membership_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipView"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["unfreeze_membership"]}],"summary":"Unfreeze a membership","tags":["memberships"],"x-area-label":{"en":"Memberships and payments","fr":"Abonnements et paiements","it":"Abbonamenti e pagamenti"},"x-description":{"en":"Unfreeze a membership","fr":"Dégeler un abonnement","it":"Scongelare un abbonamento"}}},"/gyms/{gym_id}/members/{user_id}/message":{"post":{"description":"Message a member","operationId":"message_member","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"user_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastRequest"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["message_member"]}],"summary":"Message a member","tags":["communications"],"x-area-label":{"en":"Communications","fr":"Communications","it":"Comunicazioni"},"x-description":{"en":"Message a member","fr":"Envoyer un message à un membre","it":"Messaggio a un cliente"}}},"/gyms/{gym_id}/members/{user_id}/payments":{"post":{"description":"Record a payment","operationId":"create_payment","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"user_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Payment"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["create_payment"]}],"summary":"Record a payment","tags":["memberships"],"x-area-label":{"en":"Memberships and payments","fr":"Abonnements et paiements","it":"Abbonamenti e pagamenti"},"x-description":{"en":"Record a payment","fr":"Enregistrer un paiement","it":"Registrare un pagamento"}}},"/gyms/{gym_id}/members/{user_id}/profile":{"patch":{"description":"Update the name, phone and email (if the gym created the account) of a member who belongs only to this gym","operationId":"update_member_profile","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"user_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMemberProfileRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Member"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["update_member_profile"]}],"summary":"Update the name, phone and email (if the gym created the account) of a member who belongs only to this gym","tags":["members"],"x-area-label":{"en":"Members","fr":"Membres","it":"Clienti"},"x-description":{"en":"Update the name, phone and email (if the gym created the account) of a member who belongs only to this gym","fr":"Modifier le nom, le téléphone et l'e-mail (si la salle a créé le compte) d'un membre inscrit uniquement dans cette salle","it":"Modificare nome, cognome, telefono ed email (se l'ha creato la palestra) di un cliente iscritto solo a questa palestra"}}},"/gyms/{gym_id}/members/{user_id}/unblock":{"post":{"description":"Unblock a member blocked for no-shows","operationId":"unblock_member","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"user_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["unblock_member"]}],"summary":"Unblock a member blocked for no-shows","tags":["members"],"x-area-label":{"en":"Members","fr":"Membres","it":"Clienti"},"x-description":{"en":"Unblock a member blocked for no-shows","fr":"Débloquer un membre bloqué pour absences","it":"Sbloccare un cliente bloccato per assenze"}}},"/gyms/{gym_id}/payments":{"get":{"description":"List payments in a period (CSV too)","operationId":"list_payments","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Start of the period (included): a YYYY-MM-DD date, meaning midnight in the gym's time zone, or RFC 3339 (default: 365 days ago)","in":"query","name":"from","required":false,"schema":{"type":"string"}},{"description":"End of the period (excluded): a YYYY-MM-DD date or RFC 3339 (default: 24 hours from now). A whole month: from=2026-10-01&to=2026-11-01","in":"query","name":"to","required":false,"schema":{"type":"string"}},{"description":"Only this member's payments","in":"query","name":"user_id","required":false,"schema":{"format":"uuid","type":"string"}},{"description":"json (default) | csv","in":"query","name":"format","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PaymentListItem"},"type":"array"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["list_payments"]}],"summary":"List payments in a period (CSV too)","tags":["memberships"],"x-area-label":{"en":"Memberships and payments","fr":"Abonnements et paiements","it":"Abbonamenti e pagamenti"},"x-description":{"en":"List payments in a period (CSV too)","fr":"Liste des paiements sur une période (CSV aussi)","it":"Elenco dei pagamenti in un periodo (anche CSV)"}}},"/gyms/{gym_id}/plans":{"get":{"description":"List membership plans","operationId":"list_plans","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"query","name":"include_inactive","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Plan"},"type":"array"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["list_plans"]}],"summary":"List membership plans","tags":["memberships"],"x-area-label":{"en":"Memberships and payments","fr":"Abonnements et paiements","it":"Abbonamenti e pagamenti"},"x-description":{"en":"List membership plans","fr":"Liste des formules d'abonnement","it":"Elenco dei piani di abbonamento"}}},"/gyms/{gym_id}/pt/sessions":{"get":{"description":"List personal training sessions with coach, member, status, package and price","operationId":"list_pt_sessions","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"ISO 8601, default now","in":"query","name":"from","required":false,"schema":{"type":"string"}},{"description":"ISO 8601, default +7 days","in":"query","name":"to","required":false,"schema":{"type":"string"}},{"description":"Only this coach's sessions","in":"query","name":"coach_id","required":false,"schema":{"format":"uuid","type":"string"}},{"description":"Only this member's sessions","in":"query","name":"user_id","required":false,"schema":{"format":"uuid","type":"string"}},{"description":"Only these statuses, comma-separated (e.g. done,no_show)","in":"query","name":"status","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PtSession"},"type":"array"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["list_pt_sessions"]}],"summary":"List personal training sessions with coach, member, status, package and price","tags":["personal_training"],"x-area-label":{"en":"Personal trainer","fr":"Personal trainer","it":"Personal trainer"},"x-description":{"en":"List personal training sessions with coach, member, status, package and price","fr":"Liste des séances de personal training avec coach, membre, statut, forfait et prix","it":"Elenco delle sedute personal con coach, cliente, stato, pacchetto e prezzo"},"x-requires-pt":true}},"/gyms/{gym_id}/recurring":{"get":{"description":"Recurring bookings","operationId":"list_recurring","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"query","name":"template_id","required":false,"schema":{"format":"uuid","type":"string"}},{"in":"query","name":"user_id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/RecurringBooking"},"type":"array"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["list_recurring"]}],"summary":"Recurring bookings","tags":["bookings"],"x-area-label":{"en":"Bookings and attendance","fr":"Réservations et présences","it":"Prenotazioni e presenze"},"x-description":{"en":"Recurring bookings","fr":"Réservations fixes récurrentes","it":"Prenotazioni fisse ricorrenti"}}},"/gyms/{gym_id}/reports/attendance":{"get":{"description":"Attendance report (also CSV)","operationId":"report_attendance","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"query","name":"from","required":false,"schema":{"type":"string"}},{"in":"query","name":"to","required":false,"schema":{"type":"string"}},{"description":"json (default) | csv","in":"query","name":"format","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AttendanceRow"},"type":"array"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["report_attendance"]}],"summary":"Attendance report (also CSV)","tags":["reports"],"x-area-label":{"en":"Reports","fr":"Rapports","it":"Report"},"x-description":{"en":"Attendance report (also CSV)","fr":"Rapport de présences (aussi en CSV)","it":"Report presenze (anche CSV)"}}},"/gyms/{gym_id}/reports/coach-hours":{"get":{"description":"Hours worked by coaches: finished classes and PT sessions, summary per coach (also CSV)","operationId":"report_coach_hours","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Start of the period (included): a YYYY-MM-DD date, meaning midnight in the gym's time zone, or RFC 3339 (default: 30 days before `to`)","in":"query","name":"from","required":false,"schema":{"type":"string"}},{"description":"End of the period (excluded): a YYYY-MM-DD date or RFC 3339 (default: now; at most 2 years after `from`). A whole month: from=2026-10-01&to=2026-11-01","in":"query","name":"to","required":false,"schema":{"type":"string"}},{"description":"Only this coach's classes and sessions","in":"query","name":"coach_id","required":false,"schema":{"format":"uuid","type":"string"}},{"description":"json (default) | csv","in":"query","name":"format","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachHoursReport"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["report_coach_hours"]}],"summary":"Hours worked by coaches: finished classes and PT sessions, summary per coach (also CSV)","tags":["reports"],"x-area-label":{"en":"Reports","fr":"Rapports","it":"Report"},"x-description":{"en":"Hours worked by coaches: finished classes and PT sessions, summary per coach (also CSV)","fr":"Heures travaillées par les coachs : cours et séances PT terminés, récapitulatif par coach (aussi en CSV)","it":"Ore lavorate dai coach: lezioni e sedute PT già finite, riepilogo per coach (anche CSV)"}}},"/gyms/{gym_id}/reports/inactive":{"get":{"description":"Inactive members (also CSV)","operationId":"report_inactive","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"query","name":"days","required":false,"schema":{"format":"int32","type":"integer"}},{"description":"json (default) | csv","in":"query","name":"format","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/InactiveMember"},"type":"array"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["report_inactive"]}],"summary":"Inactive members (also CSV)","tags":["reports"],"x-area-label":{"en":"Reports","fr":"Rapports","it":"Report"},"x-description":{"en":"Inactive members (also CSV)","fr":"Membres inactifs (aussi en CSV)","it":"Clienti inattivi (anche CSV)"}}},"/gyms/{gym_id}/reports/occupancy":{"get":{"description":"Occupancy report (also CSV)","operationId":"report_occupancy","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"query","name":"from","required":false,"schema":{"type":"string"}},{"in":"query","name":"to","required":false,"schema":{"type":"string"}},{"description":"class_type | coach | weekday | hour","in":"query","name":"by","required":false,"schema":{"type":"string"}},{"description":"json (default) | csv","in":"query","name":"format","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/OccupancyRow"},"type":"array"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["report_occupancy"]}],"summary":"Occupancy report (also CSV)","tags":["reports"],"x-area-label":{"en":"Reports","fr":"Rapports","it":"Report"},"x-description":{"en":"Occupancy report (also CSV)","fr":"Rapport d'occupation (aussi en CSV)","it":"Report occupazione (anche CSV)"}}},"/gyms/{gym_id}/rooms":{"get":{"description":"List rooms","operationId":"list_rooms","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Room"},"type":"array"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["list_rooms"]}],"summary":"List rooms","tags":["gym"],"x-area-label":{"en":"Gym and locations","fr":"Salle et sites","it":"Palestra e sedi"},"x-description":{"en":"List rooms","fr":"Liste des espaces","it":"Elenco delle sale"}}},"/gyms/{gym_id}/rooms/{room_id}":{"delete":{"description":"Delete a room","operationId":"delete_room","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"room_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["delete_room"]}],"summary":"Delete a room","tags":["gym"],"x-area-label":{"en":"Gym and locations","fr":"Salle et sites","it":"Palestra e sedi"},"x-description":{"en":"Delete a room","fr":"Supprimer un espace","it":"Eliminare una sala"}},"patch":{"description":"Update a room","operationId":"update_room","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"room_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRoomRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Room"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["update_room"]}],"summary":"Update a room","tags":["gym"],"x-area-label":{"en":"Gym and locations","fr":"Salle et sites","it":"Palestra e sedi"},"x-description":{"en":"Update a room","fr":"Modifier un espace","it":"Modificare una sala"}}},"/gyms/{gym_id}/schedule":{"get":{"description":"Classes in a date range","operationId":"list_schedule","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Start of the range, RFC 3339 or a YYYY-MM-DD date (default: now)","in":"query","name":"from","required":false,"schema":{"type":"string"}},{"description":"End of the range, excluded (default: from + 14 days, maximum 62)","in":"query","name":"to","required":false,"schema":{"type":"string"}},{"in":"query","name":"location_id","required":false,"schema":{"format":"uuid","type":"string"}},{"in":"query","name":"class_type_id","required":false,"schema":{"format":"uuid","type":"string"}},{"in":"query","name":"coach_id","required":false,"schema":{"format":"uuid","type":"string"}},{"in":"query","name":"include_cancelled","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Occurrence"},"type":"array"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["list_schedule"]}],"summary":"Classes in a date range","tags":["schedule"],"x-area-label":{"en":"Schedule","fr":"Planning","it":"Palinsesto"},"x-description":{"en":"Classes in a date range","fr":"Cours sur une période","it":"Calendario delle lezioni in un intervallo"}}},"/gyms/{gym_id}/schedule/{occurrence_id}":{"get":{"description":"Class details","operationId":"get_occurrence","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"occurrence_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Occurrence"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["get_occurrence"]}],"summary":"Class details","tags":["schedule"],"x-area-label":{"en":"Schedule","fr":"Planning","it":"Palinsesto"},"x-description":{"en":"Class details","fr":"Détail d'un cours","it":"Dettaglio di una lezione"}}},"/gyms/{gym_id}/schedule/{occurrence_id}/bookings":{"get":{"description":"Bookings and waitlist of a class","operationId":"list_occurrence_bookings","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"occurrence_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OccurrenceBookings"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["list_occurrence_bookings"]}],"summary":"Bookings and waitlist of a class","tags":["bookings"],"x-area-label":{"en":"Bookings and attendance","fr":"Réservations et présences","it":"Prenotazioni e presenze"},"x-description":{"en":"Bookings and waitlist of a class","fr":"Inscrits et liste d'attente d'un cours","it":"Iscritti e lista d'attesa di una lezione"}},"post":{"description":"Book a member into a class","operationId":"book_for","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"occurrence_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookForRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookOutcome"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["book_for"]}],"summary":"Book a member into a class","tags":["bookings"],"x-area-label":{"en":"Bookings and attendance","fr":"Réservations et présences","it":"Prenotazioni e presenze"},"x-description":{"en":"Book a member into a class","fr":"Réserver un cours pour un membre","it":"Prenotare un cliente a una lezione"}}},"/gyms/{gym_id}/schedule/{occurrence_id}/bookings/{user_id}":{"delete":{"description":"Remove a member from a class","operationId":"cancel_for","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"occurrence_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"user_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["cancel_for"]}],"summary":"Remove a member from a class","tags":["bookings"],"x-area-label":{"en":"Bookings and attendance","fr":"Réservations et présences","it":"Prenotazioni e presenze"},"x-description":{"en":"Remove a member from a class","fr":"Retirer un membre d'un cours","it":"Togliere un cliente da una lezione"}},"patch":{"description":"Mark attendance or no-show for a class","operationId":"set_attendance","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"occurrence_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"user_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttendanceRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["set_attendance"]}],"summary":"Mark attendance or no-show for a class","tags":["bookings"],"x-area-label":{"en":"Bookings and attendance","fr":"Réservations et présences","it":"Prenotazioni e presenze"},"x-description":{"en":"Mark attendance or no-show for a class","fr":"Marquer la présence ou l'absence à un cours","it":"Segnare presenza o assenza a una lezione"}}},"/gyms/{gym_id}/schedule/{occurrence_id}/participants":{"get":{"description":"Class participants as shown in the app","operationId":"list_participants","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"occurrence_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Participants"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["list_participants"]}],"summary":"Class participants as shown in the app","tags":["bookings"],"x-area-label":{"en":"Bookings and attendance","fr":"Réservations et présences","it":"Prenotazioni e presenze"},"x-description":{"en":"Class participants as shown in the app","fr":"Participants d'un cours tels qu'affichés dans l'app","it":"Partecipanti di una lezione come li vede l'app"}}},"/gyms/{gym_id}/templates":{"get":{"description":"List weekly templates","operationId":"list_templates","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"query","name":"include_inactive","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ClassTemplate"},"type":"array"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["list_templates"]}],"summary":"List weekly templates","tags":["schedule"],"x-area-label":{"en":"Schedule","fr":"Planning","it":"Palinsesto"},"x-description":{"en":"List weekly templates","fr":"Liste des créneaux récurrents","it":"Elenco dei template ricorrenti"}},"post":{"description":"Create a weekly template","operationId":"create_template","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClassTemplate"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["create_template"]}],"summary":"Create a weekly template","tags":["schedule"],"x-area-label":{"en":"Schedule","fr":"Planning","it":"Palinsesto"},"x-description":{"en":"Create a weekly template","fr":"Créer un créneau récurrent","it":"Creare un template ricorrente"}}},"/gyms/{gym_id}/templates/{template_id}":{"delete":{"description":"Deactivate a weekly template (it is not deleted: it stops generating classes and removes future classes with no bookings that were not edited by hand, except those with only bookings cancelled by members, which stay cancelled; those with bookings stay active, or are cancelled with cancel_booked=true; the history stays)","operationId":"delete_template","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"template_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"true = also cancels the future classes that already have bookings: bookings released, entries given back, booked members and waitlist notified. Missing or false: they stay active in the calendar","in":"query","name":"cancel_booked","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateDeactivation"}}},"description":"With `cancel_booked=true`: classes cancelled and members notified"},"204":{"description":"Without `cancel_booked`: template deactivated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["delete_template"]}],"summary":"Deactivate a weekly template (it is not deleted: it stops generating classes and removes future classes with no bookings that were not edited by hand, except those with only bookings cancelled by members, which stay cancelled; those with bookings stay active, or are cancelled with cancel_booked=true; the history stays)","tags":["schedule"],"x-area-label":{"en":"Schedule","fr":"Planning","it":"Palinsesto"},"x-description":{"en":"Deactivate a weekly template (it is not deleted: it stops generating classes and removes future classes with no bookings that were not edited by hand, except those with only bookings cancelled by members, which stay cancelled; those with bookings stay active, or are cancelled with cancel_booked=true; the history stays)","fr":"Désactiver un créneau récurrent (il n'est pas supprimé : il ne génère plus de cours et retire les cours à venir sans réservation non modifiés à la main, sauf ceux avec seulement des réservations annulées par les membres, qui restent annulés ; ceux avec des réservations restent actifs, ou sont annulés avec cancel_booked=true ; l'historique reste)","it":"Disattivare un template ricorrente (non lo elimina: smette di generare lezioni e toglie le future senza prenotati e non modificate a mano, tranne quelle con solo prenotazioni cancellate dai clienti, che restano annullate; quelle con prenotati restano attive, oppure si annullano con cancel_booked=true; lo storico resta)"}},"patch":{"description":"Update a weekly template (future classes not edited by hand follow it; those with bookings change days, time, class type or location only with booked_lessons=move, and the booked members are notified; with move and a new class type or location, members not covered by their membership are removed and refunded)","operationId":"update_template","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"template_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTemplateRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateUpdate"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["update_template"]}],"summary":"Update a weekly template (future classes not edited by hand follow it; those with bookings change days, time, class type or location only with booked_lessons=move, and the booked members are notified; with move and a new class type or location, members not covered by their membership are removed and refunded)","tags":["schedule"],"x-area-label":{"en":"Schedule","fr":"Planning","it":"Palinsesto"},"x-description":{"en":"Update a weekly template (future classes not edited by hand follow it; those with bookings change days, time, class type or location only with booked_lessons=move, and the booked members are notified; with move and a new class type or location, members not covered by their membership are removed and refunded)","fr":"Modifier un créneau récurrent (les cours à venir non modifiés à la main le suivent ; ceux avec des réservations ne changent de jours, d'heure, de type de cours ou de site qu'avec booked_lessons=move, et les inscrits sont prévenus ; avec move et un nouveau type de cours ou site, les membres que leur abonnement ne couvre pas sont retirés et remboursés)","it":"Modificare un template ricorrente (le lezioni future non modificate a mano lo seguono; quelle con prenotati cambiano giorni, ora, tipo di corso o sede solo con booked_lessons=move, e i prenotati vengono avvisati; con move e un corso o una sede nuovi esce, rimborsato, chi non è coperto dall'abbonamento)"}}},"/gyms/{gym_id}/templates/{template_id}/change-preview":{"get":{"description":"Before changing the days, time, class type or location of a weekly template: how many future classes with bookings would change (to choose booked_lessons), how many would stay as they are and how many members would be removed with booked_lessons=move","operationId":"preview_template_change","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"template_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"New weekdays separated by commas, 1 = Monday ... 7 = Sunday (e.g. 1,3,5)","in":"query","name":"weekdays","required":false,"schema":{"type":"string"}},{"description":"New time, HH:MM","in":"query","name":"start_time","required":false,"schema":{"type":"string"}},{"description":"New class type","in":"query","name":"class_type_id","required":false,"schema":{"format":"uuid","type":"string"}},{"description":"New location","in":"query","name":"location_id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateChangePreview"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["preview_template_change"]}],"summary":"Before changing the days, time, class type or location of a weekly template: how many future classes with bookings would change (to choose booked_lessons), how many would stay as they are and how many members would be removed with booked_lessons=move","tags":["schedule"],"x-area-label":{"en":"Schedule","fr":"Planning","it":"Palinsesto"},"x-description":{"en":"Before changing the days, time, class type or location of a weekly template: how many future classes with bookings would change (to choose booked_lessons), how many would stay as they are and how many members would be removed with booked_lessons=move","fr":"Avant de changer les jours, l'heure, le type de cours ou le site d'un créneau récurrent : combien de cours à venir avec des réservations changeraient (pour choisir booked_lessons), combien resteraient tels quels et combien de membres seraient retirés avec booked_lessons=move","it":"Prima di cambiare giorni, ora, tipo di corso o sede di un template: quante lezioni future con prenotati cambierebbero (per scegliere booked_lessons), quante resterebbero come sono e quanti clienti uscirebbero con booked_lessons=move"}}},"/gyms/{gym_id}/templates/{template_id}/deactivation-preview":{"get":{"description":"Before deactivating a weekly template: how many future classes already have bookings","operationId":"preview_template_deactivation","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"template_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeactivationPreview"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["preview_template_deactivation"]}],"summary":"Before deactivating a weekly template: how many future classes already have bookings","tags":["schedule"],"x-area-label":{"en":"Schedule","fr":"Planning","it":"Palinsesto"},"x-description":{"en":"Before deactivating a weekly template: how many future classes already have bookings","fr":"Avant de désactiver un créneau récurrent : combien de cours à venir ont déjà des réservations","it":"Prima di disattivare un template: quante lezioni future hanno già prenotati"}}},"/gyms/{gym_id}/templates/{template_id}/reactivation-preview":{"get":{"description":"Before reactivating a weekly template: how many future classes will be in the calendar and from when, how many stay cancelled and how many members have a recurring booking","operationId":"preview_template_reactivation","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"template_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateReactivationPreview"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["preview_template_reactivation"]}],"summary":"Before reactivating a weekly template: how many future classes will be in the calendar and from when, how many stay cancelled and how many members have a recurring booking","tags":["schedule"],"x-area-label":{"en":"Schedule","fr":"Planning","it":"Palinsesto"},"x-description":{"en":"Before reactivating a weekly template: how many future classes will be in the calendar and from when, how many stay cancelled and how many members have a recurring booking","fr":"Avant de réactiver un créneau récurrent : combien de cours à venir seront au planning et à partir de quand, combien restent annulés et combien de membres ont une inscription récurrente","it":"Prima di riattivare un template: quante lezioni future saranno in calendario e da quando, quante restano annullate e quanti clienti hanno l'iscrizione fissa"}}},"/gyms/{gym_id}/templates/{template_id}/recurring":{"post":{"description":"Create a recurring booking on a template","operationId":"create_recurring","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"template_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurringRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecurringBooking"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["create_recurring"]}],"summary":"Create a recurring booking on a template","tags":["bookings"],"x-area-label":{"en":"Bookings and attendance","fr":"Réservations et présences","it":"Prenotazioni e presenze"},"x-description":{"en":"Create a recurring booking on a template","fr":"Créer une réservation fixe sur un créneau","it":"Creare una prenotazione fissa su un template"}}},"/gyms/{gym_id}/templates/{template_id}/recurring/{user_id}":{"delete":{"description":"Remove a recurring booking","operationId":"delete_recurring","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"template_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"user_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["delete_recurring"]}],"summary":"Remove a recurring booking","tags":["bookings"],"x-area-label":{"en":"Bookings and attendance","fr":"Réservations et présences","it":"Prenotazioni e presenze"},"x-description":{"en":"Remove a recurring booking","fr":"Supprimer une réservation fixe","it":"Togliere una prenotazione fissa"}}},"/gyms/{gym_id}/wod-tv":{"get":{"description":"Read the Wod TV: look, address and skills of the coming days","operationId":"get_wod_tv","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WodTvDto"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["get_wod_tv"]}],"summary":"Read the Wod TV: look, address and skills of the coming days","tags":["wod_tv"],"x-area-label":{"en":"Wod TV","fr":"Wod TV","it":"Wod TV"},"x-description":{"en":"Read the Wod TV: look, address and skills of the coming days","fr":"Lire la Wod TV : apparence, adresse et skills des prochains jours","it":"Leggere la Wod TV: aspetto, indirizzo e skill dei prossimi giorni"},"x-requires-wod-tv":true},"put":{"description":"Change the Wod TV look","operationId":"update_wod_tv","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WodTvSettingsRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WodTvDto"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["update_wod_tv"]}],"summary":"Change the Wod TV look","tags":["wod_tv"],"x-area-label":{"en":"Wod TV","fr":"Wod TV","it":"Wod TV"},"x-description":{"en":"Change the Wod TV look","fr":"Modifier l'apparence de la Wod TV","it":"Cambiare l'aspetto della Wod TV"},"x-requires-wod-tv":true}},"/gyms/{gym_id}/wod-tv/background":{"delete":{"description":"Remove the Wod TV background photo","operationId":"delete_wod_tv_background","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WodTvDto"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["delete_wod_tv_background"]}],"summary":"Remove the Wod TV background photo","tags":["wod_tv"],"x-area-label":{"en":"Wod TV","fr":"Wod TV","it":"Wod TV"},"x-description":{"en":"Remove the Wod TV background photo","fr":"Supprimer la photo de fond de la Wod TV","it":"Togliere la foto di sfondo della Wod TV"},"x-requires-wod-tv":true},"post":{"description":"Upload the Wod TV background photo","operationId":"upload_wod_tv_background","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"multipart/form-data":{}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WodTvDto"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["upload_wod_tv_background"]}],"summary":"Upload the Wod TV background photo","tags":["wod_tv"],"x-area-label":{"en":"Wod TV","fr":"Wod TV","it":"Wod TV"},"x-description":{"en":"Upload the Wod TV background photo","fr":"Téléverser la photo de fond de la Wod TV","it":"Caricare la foto di sfondo della Wod TV"},"x-requires-wod-tv":true}},"/gyms/{gym_id}/wod-tv/days/{day}":{"put":{"description":"Write a day's custom text on the Wod TV","operationId":"set_wod_tv_day","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"description":"Day `YYYY-MM-DD` in the gym's time zone","in":"path","name":"day","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomDayRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WodTvDto"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["set_wod_tv_day"]}],"summary":"Write a day's custom text on the Wod TV","tags":["wod_tv"],"x-area-label":{"en":"Wod TV","fr":"Wod TV","it":"Wod TV"},"x-description":{"en":"Write a day's custom text on the Wod TV","fr":"Écrire le texte personnalisé d'un jour sur la Wod TV","it":"Scrivere il testo a mano di un giorno sulla Wod TV"},"x-requires-wod-tv":true}},"/gyms/{gym_id}/workouts":{"get":{"description":"Read workouts of the day (WOD)","operationId":"list_workouts","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"query","name":"from","required":true,"schema":{"type":"string"}},{"in":"query","name":"to","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Workout"},"type":"array"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["list_workouts"]}],"summary":"Read workouts of the day (WOD)","tags":["schedule"],"x-area-label":{"en":"Schedule","fr":"Planning","it":"Palinsesto"},"x-description":{"en":"Read workouts of the day (WOD)","fr":"Lire les WOD du jour","it":"Leggere le skill del giorno (WOD)"}},"put":{"description":"Write workouts of the day (WOD)","operationId":"save_workouts","parameters":[{"in":"path","name":"gym_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkoutsRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Workout"},"type":"array"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}},"description":"Per-minute request limit exceeded for this gym: try again shortly"}},"security":[{"apiKey":["save_workouts"]}],"summary":"Write workouts of the day (WOD)","tags":["schedule"],"x-area-label":{"en":"Schedule","fr":"Planning","it":"Palinsesto"},"x-description":{"en":"Write workouts of the day (WOD)","fr":"Écrire les WOD du jour","it":"Scrivere le skill del giorno (WOD)"}}}},"servers":[{"description":"Production","url":"https://api.boxly.run"}],"tags":[{"description":"Gym and locations","name":"gym","x-label":{"en":"Gym and locations","fr":"Salle et sites","it":"Palestra e sedi"}},{"description":"Members","name":"members","x-label":{"en":"Members","fr":"Membres","it":"Clienti"}},{"description":"Memberships and payments","name":"memberships","x-label":{"en":"Memberships and payments","fr":"Abonnements et paiements","it":"Abbonamenti e pagamenti"}},{"description":"Schedule","name":"schedule","x-label":{"en":"Schedule","fr":"Planning","it":"Palinsesto"}},{"description":"Bookings and attendance","name":"bookings","x-label":{"en":"Bookings and attendance","fr":"Réservations et présences","it":"Prenotazioni e presenze"}},{"description":"Communications","name":"communications","x-label":{"en":"Communications","fr":"Communications","it":"Comunicazioni"}},{"description":"Reports","name":"reports","x-label":{"en":"Reports","fr":"Rapports","it":"Report"}},{"description":"Events and competitions","name":"events","x-label":{"en":"Events and competitions","fr":"Événements","it":"Eventi e gare"}},{"description":"Wod TV","name":"wod_tv","x-label":{"en":"Wod TV","fr":"Wod TV","it":"Wod TV"}},{"description":"Personal trainer","name":"personal_training","x-label":{"en":"Personal trainer","fr":"Personal trainer","it":"Personal trainer"}}]}