Hi,
Currently in the REST API, there is an endpoint to update or delete a listing but not for create.
Is it on the roadmap ?
If not, is there a way to add this endpoint with a snippet ?
Unfortunately there’s no 100% REST coverage yet, and this endpoint is not available but you can still create posts via the WordPress REST API (listing is a “hp_listing” post type).
Thanks,
custom fields are meta_datas ? is there a code snippet to see what it looks ? The doc for update listings is not enough detailed.
Sorry, I can suggest anything regarding this third-party plugin, I recommend contacting their support. HivePress stores prices in the “hp_price” post meta field, and listings are implemented as a custom “hp_listing” post type - these are core WordPress features, maybe the plugin you’re using allows mapping these fields.