"subcategory_id" not working in Create Event

10 views
Skip to first unread message

Sean McEwan

unread,
Oct 4, 2023, 5:00:23 PM10/4/23
to Eventbrite Developers
When creating or updating an event through the API, I can't get the "subcategory_id" to properly set. "format_id" and "category_id" both work, but when I add in "subcategory_id", I get the following error:

I've tried the following, and they all failed:
  • Passing 'subcategory_id' during the initial creation of an Event
  • Passing 'subcategory_id' during an update of an Event
  • Passing 'subcategory_id' during the initial creation of an Event Series
Any thoughts?

This is the data I'm passing:
    data = {
            "event": {
                "name": {
                    "html": event_title
                },
                "description": {
                  "html": f"<p>{event_summary}</p>"
                },
                "start":{
                    "timezone": "America/New_York",
                    "utc": event_start
                },
                "end":{
                    "timezone": "America/New_York",
                    "utc": event_end
                },
                "currency": "USD",
                "shareable": "true",
                "organizer_id": organizer_id,
                "capacity": globals.EVENTBRITE_CAPACITY,
                "is_series": "true",
                "format_id": format_id,
                "category_id": category_id,
                "subcategory_id": subcategory_id
            }}

Sean McEwan

unread,
Oct 4, 2023, 5:01:39 PM10/4/23
to Eventbrite Developers
Whoops, forgot the error code. This is the error I receive when I add 'subcategory_id':

"status_code": 400,                                                                                                                                                                         
"error_description": "There are errors with your arguments: subcategory_id - Unknown parameter",                                                                                           
"error": "ARGUMENTS_ERROR"  

Reply all
Reply to author
Forward
0 new messages