Eventbrite API – Creating Custom Survey Questions via API

Here is a code snippet using cURL to post to the Eventbrite REST API and add a custom survey question to your event.

Get Custom Questions:
curl -X GET -H "Authorization: Bearer  [API TOKEN HERE]" -H "Cache-Control: no-cache" -H "https://www.eventbriteapi.com/v3/events/[EVENT ID HERE]/questions/?is_owner=1"
Get Specific Question:

curl -X GET -H "Authorization: Bearer  [API TOKEN HERE]" -H "Cache-Control: no-cache" -H "https://www.eventbriteapi.com/v3/events/[EVENT ID HERE]/questions/[!!---question_id--!!]/"
Set Custom Question:
curl -X POST -H "Authorization: Bearer [API TOKEN HERE]" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -H -d '{
    "question": {
        "question": {
            "html": "Another Question - What should it be?"
        "type": "text",
        "required": true,
        "choices": [],
        "ticket_classes": [], 
        "respondent": "attendee"
}' "https://www.eventbriteapi.com/v3/events/[EVENT ID HERE]/questions/"

Eventbrite – Create an Event via the API

There didn’t seem to be any good examples of how to create an event using the EventBrite API (https://developer.eventbrite.com). I figured it was time to get something down. Here’s the JSON body I’ve used to create test events. This creates the event stub and let’s you load the API explorer.

More code examples to come.