Create events with API
-
Hey, so I’m trying to create events through your API.
I’m having issues trying to pass values in _EventStartDate and _EventEndDate, these variables are critical for the event to be able to show up.
Without those values, the event does not show up and displays a 404 error.
So, any help with the following:
$data = [ "title" => $json_resp[0]->subject, "content" => $json_resp[0]->subject, "excerpt" => $json_resp[0]->shortDescription, "_EventStartDate" => $json_resp[0]->startDate, //2021-12-15T11:00:00 "_EventEndDate" => $json_resp[0]->endDate, //2021-12-15T14:00:00 "status" => "publish", "featured_media" => 30, ];
The two date values, do not get passed, so the event is being created with all the values that I’m passing except the Start/End values.
*If I add some dates manually, the event is showing up fine.
- The topic ‘Create events with API’ is closed to new replies.