Restore an earlier version of a post
POST
http://localhost:4000/api/v1 /posts/{postId}/versions/{id}/restore The version's text, media and channel settings replace the post's; its time and status stay. What it replaces becomes a version itself. Only drafts and scheduled posts can be changed, and every check of POST /posts applies. Channels removed from the workspace since are left out.
Parameters
postIdstring
path
required
idstring
path
required
Code samples
cURL
curl -X POST "http://localhost:4000/api/v1/posts/{postId}/versions/{id}/restore" \
-H "Authorization: Bearer $API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{
"id": "string"
}Schema
idstring
required
Updated