Posted: July 19, 2018 at 5:54 pm
|
The documentation isn’t very clear as to what I need. I’m doing a POST with this:
Looking at what’s returned to me if I just query an event manually created, I don’t see any variables for setting the Start and End Dates, how many people are allowed to sign up, etc… |
|
No one? |
Hi, Here’s a link to the documentation: The documentation shows how you can discover what’s needed to write to a specific entity. Examples of entities related to the event include the datetimes, tickets, datetime_tickets, prices, venues. |
|
|
Ok, I know I’m missing something very basic here…. I’m posting (switched to Json) this: { and I get an error: {“code”:”invalid_field”,”message”:”You have provided an invalid parameter: "Event"”,”data”:null} What am I missing here? |
The documentation has what you’re missing. So for example, to create a new event, send a POST request to the resource’s collection route. Eg, to create a new event entity, send it to The documentation shows how to create a new answer, and if you follow the example given there it’s very similar to creating other types of data. Also, it looks like you’re trying to create two entries simultaneously. The REST API doesn’t actually work that way. Instead, you will need to create each record individually, one per request. |
|
|
So how do I relate the Ticket to the Event? I don’t see any fields that would allow the relating of the them together. |
You relate the datetime to the event. Then, you relate a ticket to a datetime by sending a POST request to /datetime_tickets. |
|
|
Got it working, thank you for your help. |
The support post ‘Add an Event via the API’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.