How to use the WP REST API for custom listing attributes?

Recently I erased a question on this form on how to use the API to publish listings

While I have managed to figure it out and successfully upload listings without any issues, now I’m facing the problem of how to use custom-created attributes?

For example, I have an attribute named hello_world
How can I use the API to update this attribute? I have created a post using the WordPress API, and now I want to update the attribute of that post

How can I do that?

If you use the default WP REST API endpoint, then please follow the instructions in this reply Create a listing using the API - #9 by ihor regarding the attributes implementation e.g. if the hello_world attribute is text or number then you can update it as the hp_hello_world custom meta field.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.