Restore an earlier version of a post

Embed
Preview of the card
<a href="https://indrava.forumulate.com/docs/ref-posthistory-versions-restore"><img src="https://indrava.forumulate.com/docs/_api/public/orgs/e421ace4-3e78-4ed8-9818-7b4899cf3aa0/spaces/2bcc7f09-4489-40af-85d8-9fdd3f3da314/pages/f4ef6a1e-9157-413d-9c6e-222870e23b24/social-card.svg?v=3e7ae33eec8b" alt="Restore an earlier version of a post" width="600" height="315"></a>
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

postId
string
path
required
id
string
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
id
string
required
Updated