Adding and changing business hours…

This topic contains 1 reply, has 2 voices, and was last updated by  Kiran 4 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #523758

    Rodney Chatman
    Expired Member
    Post count: 89

    Hello,

    I’m using the following string below to update business hours but it’s returning null, what is the proper format for adding and updating business hours via the API?

    updating hours to existing location…

    https://www.thesablebusinessdirectory.com/wp-json/geodir/v2/business/36559?business_hours=["Mo 10:00-17:00","Tu 10:00-17:00","We 10:00-17:00","Th 10:00-17:00","Fr 10:00-17:00","Sa 10:00-17:00","Su 10:00-17:00"]

    adding business hours to new location…

    https://www.thesablebusinessdirectory.com/wp-json/geodir/v2/business/?status=publish&country=United States&title=Holy Moly Donut Shop&business_hours=["Mo 10:00-17:00","Tu 10:00-17:00","We 10:00-17:00","Th 10:00-17:00","Fr 10:00-17:00","Sa 10:00-17:00","Su 10:00-17:00"]
    #523844

    Kiran
    Moderator
    Post count: 7069

    Hi Rodney,

    To update listing via rest API it should work with route you have used for 36559.

    Please try following route.

    /wp-json/geodir/v2/business/36559?id=36559&business_hours=["Mo 10:00-17:00","Tu 10:00-17:00","We 10:00-17:00","Th 10:00-17:00","Fr 10:00-17:00","Sa 10:00-17:00","Su 10:00-17:00"]

    Kiran

Viewing 2 posts - 1 through 2 (of 2 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket