Skip to main content
PUT
/
v1
/
platform
/
blog
/
posts
/
{id}
curl -X PUT https://api.truthlocks.com/v1/platform/blog/posts/bp_660e8400-e29b-41d4-a716-446655440000 \
  -H "X-API-Key: tl_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Updated title",
    "excerpt": "Revised summary for the post."
  }'
{
  "id": "bp_660e8400-e29b-41d4-a716-446655440000",
  "title": "Updated title",
  "slug": "introducing-attestation-batching",
  "category": "product",
  "status": "published",
  "tags": ["attestations", "batch"],
  "excerpt": "Revised summary for the post.",
  "cover_image_url": "https://api.truthlocks.com/v1/assets/ast_cover123",
  "content": "# Attestation batching\n\nYou can now mint attestations in bulk...",
  "published_at": "2027-01-20T12:00:00Z",
  "created_at": "2027-01-19T10:00:00Z",
  "updated_at": "2027-01-21T09:30:00Z"
}
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

{
  "id": "bp_660e8400-e29b-41d4-a716-446655440000",
  "title": "Updated title",
  "slug": "introducing-attestation-batching",
  "category": "product",
  "status": "published",
  "tags": ["attestations", "batch"],
  "excerpt": "Revised summary for the post.",
  "cover_image_url": "https://api.truthlocks.com/v1/assets/ast_cover123",
  "content": "# Attestation batching\n\nYou can now mint attestations in bulk...",
  "published_at": "2027-01-20T12:00:00Z",
  "created_at": "2027-01-19T10:00:00Z",
  "updated_at": "2027-01-21T09:30:00Z"
}
curl -X PUT https://api.truthlocks.com/v1/platform/blog/posts/bp_660e8400-e29b-41d4-a716-446655440000 \
  -H "X-API-Key: tl_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Updated title",
    "excerpt": "Revised summary for the post."
  }'