Skip to main content
PUT
/
v1
/
platform
/
blog
/
posts
/
{id}
Update blog post
curl --request PUT \
  --url https://api.truthlocks.com/v1/platform/blog/posts/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "title": "<string>",
  "slug": "<string>",
  "category": "<string>",
  "content": "<string>",
  "excerpt": "<string>",
  "cover_image_url": "<string>",
  "tags": [
    "<string>"
  ]
}
'
{
  "id": "<string>",
  "status": "<string>",
  "updated_at": "<string>"
}
Updates the specified blog post. Only include the fields you want to change — omitted fields remain unchanged.
Requires the content admin or super admin platform role.
Changing the slug of a published post updates its public URL. If the post has been shared or indexed, keep the original slug to avoid broken links.

Parameters

id
string
required
The blog post ID.
title
string
Updated post headline.
slug
string
Updated URL path segment.
category
string
Updated category. One of engineering, product, security, company, or industry.
content
string
Updated Markdown body.
excerpt
string
Updated short summary.
cover_image_url
string
Updated cover image URL.
tags
string[]
Updated list of tags. Replaces the existing tags.

Responses

Authorizations

X-API-Key
string
header
required

API key for machine-to-machine authentication

Path Parameters

id
string
required

Body

application/json
title
string
slug
string
category
string
content
string
excerpt
string
cover_image_url
string
tags
string[]

Response

Post updated

id
string
status
string
updated_at
string