• Resolved merlijn2504

    (@merlijn2504)


    as of the plugin Controls (https://theeventscalendar.com/extensions/event-statuses/) is merged in the 5.0 release, i post it directly here dor the Events Calendar Plugin.

    The documentation states: Provide event_statusevent_status_reasonis_online, and online_url in REST data for events.

    But, I cannot read (GET) or edit these Event_status fields through the event api WPURL.com/wp-json/wp/v2/posts?&context=edit

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support tristan083

    (@tristan083)

    Hi @merlijn2504,

    I am not sure I understand. Are you saying that the event_statusevent_status_reasonis_online, and online_url are not one of the fields that get returned when making a GET Events API request?

    Thread Starter merlijn2504

    (@merlijn2504)

    Yes that is the case. And I can’t update the fields in a POST call.

    Thread Starter merlijn2504

    (@merlijn2504)

    @tristan083

    Is there any way this is going to be implemented soon?

    Plugin Support Darian

    (@d0153)

    Hi @merlijn2504

    Thanks for your message.

    Upon checking The Events Calendar REST API, I could not find the Event Status field you’re looking for. However, when you check the endpoint /events/{id}, you’ll get a similar field, which is EventStatus.

    See example- https://demo.theeventscalendar.com/wp-json/tribe/events/v1/events/1762

    I hope this helps, and please let me know if you have further questions or concerns.

    Thread Starter merlijn2504

    (@merlijn2504)

    Hi @d0153,

    Thanks for your reply. Unfortunately this fiels is in the json_ld object. I can read the field in a GET call but I can’t POST/PATCH the event_status despite it’s stated in https://theeventscalendar.com/extensions/event-statuses/ (changelog 1.1.0).

    Event_Status is not described in the API Swagger documentation. So i think this is overlooked when this plugin was implemended in the main plugin.

    I hope there is a way to post a call to update the event status. I’m implementing the calendar for a hot-air-balloon foundation for children and the events needs to be changeable pretty quickly since it all depends on the weather.

    Example event: https://www.ballondeblauwevogel.nl/wp-json/tribe/events/v1/events/2001

    Plugin Support Darian

    (@d0153)

    Hi @merlijn2504

    Thanks for your response.

    I will consult with the team to verify if the current status has been incorporated into the REST API as well. As soon as I receive further information, I will make sure to update you.

    Thread Starter merlijn2504

    (@merlijn2504)

    @d0153
    Thanks you for your response! Hope to hear from you soon, thank you for consulting the team and your time!

    Kind regards, Merlijn

    Plugin Support Darian

    (@d0153)

    Hi @merlijn2504

    I’m glad you brought this to our attention, I can see how this issue impacts your ability to access event status through The Events Calendar’s REST API.

    I’ve created an internal ticket [BTRIA-2321] to address this issue and I’ve included your specific use case in it to communicate it to our team.

    We prioritize bugs by taking into consideration the number of users impacted as well as how the bug impacts one’s ability to run an event/sell tickets. I don’t have a specific timeline as to when this issue will be resolved, but trust that our team is aware. Our team communicates updates and bug fixes in our newsletter and via our changelog.

    I’m happy to help if any other questions are coming up around this topic, otherwise I’ll go ahead and close this ticket.

    Thanks again for reporting this issue and for using The Events Calendar! Have a great day.

    Internal Bug Ticket Reference: BTRIA-2321

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Cannot post/patch event_status’ is closed to new replies.