Skip to Content
Posts

Restore a post from the trash

Brings the post back exactly as it was. Cancelled channels stay cancelled and nothing is rescheduled. A post with a published channel needs the same authority as removing it. Emits post.restored. API keys need publication:delete.

POST
/api/projects/{projectId}/posts/{postId}/restore

Authorization

headerAuthorizationBearer <Postdot API key>

A user-owned Postdot API key sent as Authorization: Bearer <token>. Its project scope is limited by the creator’s current access.

Path Parameters

projectId*string
Length1 <= length
postId*string
Length1 <= length

Response Body

Response for status 200

application/json
  1. response
restored*boolean
Example Request
curl -X POST 'https://postdot.example/api/projects/string/posts/string/restore'
Example Response
{
  "restored": true
}

Was this page helpful?