Is there an API to create custom post with relationship? I want to automatically create or update a custom post based on the data received from a rest api call or database query.
Follow-up question:
"To create/update post as well as post meta or taxonomy attached to post you can use native WordPress functions."
I need to create/update a Toolset Custom Post from a JSON data. Can you give a guide/example on how to use Toolset Custom Fields when creating a WordPress standard post via API?