Accessing 2nd level information with API Results (For Post Method)

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

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #533180

    Derek Brown
    Expired Member
    Post count: 28

    Greetings.
    I am using Postman to test get and post endpoints in order to create a 3rd party application for updating listings.
    I am successfully posting (updating) to top level variables within the API, but I am not figuring out how to access/update 2nd level variables
    For instance – I can update slug, phone, street, etc.
    But how do I get to post_category / id, or post_category / name ??
    Here is an image that I hope will clarify what I am asking
    http://prntscr.com/rakp9p

    #533227

    Alex Rollin
    Moderator
    Post count: 27815

    Thanks for your post, the developers will take a look.

    Please post any relevant code that you are working on here so they can get a better picture of what you are trying to do.

    #533283

    Kiran
    Moderator
    Post count: 7069

    Hi Derek,

    Taxonomy(category or tag) details can be retrieved via own endpoint or endpoint within single post(just scroll to bottom there is attribute “_links” in your screenshot Ex: /wp-json/geodir/v2/places/categories?post=POST_ID)

    Kiran

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount