Skip to main content
POST
/
v1
/
platform
/
blog
/
posts
/
{id}
/
archive
Archive blog post
curl --request POST \
  --url https://api.truthlocks.com/v1/platform/blog/posts/{id}/archive \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "reason": "<string>"
}
'
{
  "id": "<string>",
  "status": "<string>",
  "archived_at": "<string>"
}
Archives a published blog post, removing it from the public blog. The post remains in the CMS and can be published again later. Use archive instead of delete when you may want to restore the post.
Requires the content admin or super admin platform role.

Parameters

id
string
required
The blog post ID. Must be a post in published status.

Responses

Authorizations

X-API-Key
string
header
required

API key for machine-to-machine authentication

Path Parameters

id
string
required

Body

application/json
reason
string

Optional reason or note for this action

Response

Post archived

id
string
status
string
archived_at
string