Publish and Unpublish Event

Learn how to publish and unpublish an event using the Eventbrite API.

We'll cover the following

Publish an event

We need to publish the events to make them viewable to the targeted audience. The event should have all the necessary data, including the event name, description, organizer, ticket class, and a valid payment method.

The following URL utilizes the POST request method to publish an event:

https://www.eventbriteapi.com/v3/events/{event_id}/publish/

We need to provide the {event_id} in the URL to publish it. If all goes well, it returns a JSON object that has one attribute published with the value true. Otherwise, it returns a JSON object with the error_description and status_code attributes.

Let’s take a look at an example that publishes the previously created event, which should be associated with at least one ticket class.

Get hands-on with 1200+ tech skills courses.