Publish and Unpublish Event

Learn to publish and unpublish an event using 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 necessary data, including event name, description, organizer, ticket class, and valid payment method.

The following URL uses the POST 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. It returns a JSON object with one attribute published with the value true if all goes well. Otherwise, it returns a JSON object with error_description and status_code attributes.

Let’s see an example to publish the previously created event, which should be associated with at least one ticket class.

Get hands-on with 1200+ tech skills courses.