Skip to main content
PATCH
/
events
/
{eventId}
/
ticket-classes
/
{ticketClassId}
curl -X PATCH -H "X-API-KEY: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{ "cost": 30, "quantity_total": 200 }' \
  https://www.gomry.com/api/v1/events/AbCdEfGhIjKlMnOpQrSt/ticket-classes/prod_AbCdEf

Update Ticket Class

Updates one or more fields of a ticket class. quantity_sold is always recomputed server-side from the tickets collection and cannot be set by the client. Requires the ticket_classes:write scope.

Path Parameters

eventId
string
required
The unique identifier of the event.
ticketClassId
string
required
The unique identifier of the ticket class.

Request Body

All fields are optional but at least one must be provided. Fields not included are left unchanged.
name
string
Ticket class name (1..120 chars).
description
string
Description (max 10000 chars).
currency
string
ISO 4217 currency code.
cost
number
Price per ticket.
free
boolean
Marks the class as free.
quantity_total
integer
Total tickets available (0 = unlimited).
sales_start
string
ISO 8601 datetime when sales open.
sales_end
string
ISO 8601 datetime when sales close.
minimum_per_order
integer
Minimum tickets per order.
maximum_per_order
integer
Maximum tickets per order.
require_approval
boolean
Whether new registrations require approval.
hide_on_event_page
boolean
Hide from the public event page.

Response

Returns 200 OK with the updated ticket class in the same shape as Get Ticket Class.

Errors

  • 400 At least one field is required — empty body.
  • 400 Validation failed — invalid body shape.
  • 404 Event not found / Ticket class not found — resource missing or not owned by your org.
curl -X PATCH -H "X-API-KEY: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{ "cost": 30, "quantity_total": 200 }' \
  https://www.gomry.com/api/v1/events/AbCdEfGhIjKlMnOpQrSt/ticket-classes/prod_AbCdEf