PATCH

Update Ticket Definition


Updates a ticket definition.

Each time the ticket definition is updated, revision increments by 1. The existing revision must be included when updating the ticket definition. This ensures you're working with the latest ticket definition and prevents unintended overwrites.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Events - all permissions
Manage Ticket Definitions
Learn more about app permissions.
Endpoint
PATCH
https://www.wixapis.com/events-ticket-definitions/v3/ticket-definitions/{ticketDefinition.id}

Path Params
ticketDefinition.idstringRequired

Ticket definition ID.

Body Params
ticketDefinitionTicketDefinitionRequired

Ticket definition to update.


fieldsArray <string>maxItems 5

Predefined sets of fields to return.

Response Object
ticketDefinitionTicketDefinition

The updated ticket definition.

Update ticket definition
Request
cURL
curl -X PATCH 'https://www.wixapis.com/events-ticket-definitions/events-ticket-definitions/v3/ticket-definitions/aaf51c30-a61c-473e-96be-a42dfa5064c0' \ -H 'Content-Type: application/json' \ -H 'Authorization: <AUTH TOKEN>' \ -d '{ "ticketDefinition": { "id": "aaf51c30-a61c-473e-96be-a42dfa5064c0", "eventId": "9d720f99-1b5a-4141-9877-d32985391e18", "revision": "1", "name": "Leather Workshop", "pricingMethod": { "fixedPrice": { "value": "200.00", "currency": "USD" } }, "feeType": "FEE_INCLUDED", "salePeriod": { "startDate": "2023-06-08T10:00:00Z" }, }, "mask": { "salePeriod.startDate" } }'
Response
JSON
{ "ticketDefinition": { "id": "aaf51c30-a61c-473e-96be-a42dfa5064c0", "eventId": "9d720f99-1b5a-4141-9877-d32985391e18", "revision": "2", "createdDate": "2023-05-25T11:39:26.108Z", "updatedDate": "2023-05-25T13:44:58.775Z", "name": "Leather Workshop", "description": "Step into the world of fine craftsmanship and explore the artistry of handcrafted leather goods at our captivating Leather Workshop. Join us for a hands-on experience that delves into the intricate process of transforming raw leather into exquisite creations. Immerse yourself in a creative atmosphere where seasoned leather artisans will guide you through the journey of mastering age-old techniques and unlocking your inner artisan.", "policyText": "This is your event ticket. Ticket holders must present their tickets on entry. You can either print your ticket or present this digital version. You can find all the details about this event on our website. If you have any questions, issues or wish to get a refund, contact the event host. If you can’t attend the event, please get in touch. Looking forward to seeing you there!", "hidden": false, "limited": true, "initialLimit": 3, "actualLimit": 3, "pricingMethod": { "fixedPrice": { "value": "200.00", "currency": "USD" }, "pricingType": "STANDARD", "free": false }, "feeType": "FEE_INCLUDED", "salePeriod": { "startDate": "2023-06-08T10:00:00Z", "endDate": "2023-06-30T00:00:00Z", "displayNotOnSale": false }, "saleStatus": "SALE_STARTED", "salesDetails": null } }
Errors
428Failed Precondition

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?