API Method ticket_update
This method updates an existing ticket type, returning the ID of the updated ticket. Only the fields passed as arguments will be modified.
Request Parameters
| Name | description |
|---|---|
| id | The ticket type ID (required) |
| is_donation | 0 for fixed-price tickets, 1 for donations. |
| name | The ticket name. |
| description | The ticket description. |
| price | The ticket price. Enter 0.00 for free tickets. Leave blank for a donation. If tickets are already sold, price will not change. |
| quantity | The number of tickets available. Not required for donations. |
| start_sales | The date and time when ticket sales start, in ISO 8601 format (e.g., “2007-12-31 23:59:59″). |
| end_sales | The date and time when ticket sales stop, in ISO 8601 format (e.g., “2007-12-31 23:59:59″). |
| include_fee | 0 to add the Eventbrite service fee on top of ticket price, or 1 to include it in the ticket price. |
| min | The minimum number of tickets per order. |
| max | The maximum number of tickets per order. |
| hide | Show or hide the ticket type. Valid options: (y or n) |
Example Request URL
https://www.eventbrite.com/xml/ticket_update?...&id=321348687 &name=Existticket&price=10.0&quantity=5000
Example Response
<?xml version="1.0" encoding="utf-8" ?> <event> <id>908163459</id> <status>ok</status> <message>ticket_update : complete</message> </event>
Method-Specific Errors
More information about error-handling and common error messages are available in our error docs.
| error_type | error_message |
|---|---|
| Authentication Error | The specified user was not found or the login credentials didn’t match. |
| Ticket error | The ticket id is missing. |
| Ticket error | The ticket id is unknown. |
| Ticket error | The total number of tickets exceeds the maximum allowed (50). |
| Date error | The start sales date is invalid or in the past, expected Format (YYYY-MM-DD HH:MM:SS). |
| Date error | The end sales date is invalid or in the past, expected Format (YYYY-MM-DD HH:MM:SS). |
| Date inconsistent | End sales less than Start Sales. |
| Date inconsistent | Start sales date greater than Event’s Ending date. |
| Date inconsistent | End sales date greater than Event’s Ending date. |
| Quantity error | The quantity is invalid, a numeric field is expected. |
| Quantity error | Quantity provided is greater than event capacity [Nnnn]. |
| Price error | The price of the ticket is invalid : expected Numeric/Float. |
| Order error | The minimum number of tickets per order is invalid (non-numeric) or inconsistent. |
| Order error | The maximum number of tickets per order is invalid (non-numeric) or inconsistent. |
| Donation error | Donation flag must be 0 or 1. |
| Fee error | Service fee must be 0 or 1. |
| Show Hide error | hide must be y or n. |