How do I Rewrite & Republish via API or programmatically?
-
I am trying to send a POST request via API to create a new draft so I can later merge it with an existing page. I am basically trying to replicate the “Rewrite & Republish” feature. I am wanting to use the endpoint like this:
/wp-json/wp/v2/pages?status=draft&title=My Test Page
Do I need to pass a different value for the “status” or do I need to somehow send a reference of the existing page?
If this is not doable via API, is there a way to do this programmatically? I just need some pointers.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How do I Rewrite & Republish via API or programmatically?’ is closed to new replies.