Posts
Update Post (PUT)
Update a post using PUT. The current implementation treats PUT and PATCH identically.
put/posts/{id}
Path parameters
idinteger required
Post ID
Query parameters
preserve_external_imagesboolean
Preserve external image URLs instead of uploading to R2 storage
Request body
Example request
{
"jsonapi": {
"version": "1.0"
},
"data": {
"type": "posts",
"attributes": {
"title": "Building a Blog with Next.js (Updated)",
"slug": "building-blog-with-nextjs-updated",
"description": "Updated post description.",
"content_html": "<h2>Updated Title</h2><p>Modified content.</p>",
"published": true,
"canonical_url": "https://myblog.com/posts/nextjs-tutorial",
"cta_text": "Learn More",
"cta_color": "#7c3aed",
"cta_color_type": "custom",
"cta_text_color": "#ffffff",
"cta_text_color_type": "custom",
"form_id": 123,
"custom_scripts": {
"json_ld_script": {
"@context": "https://schema.org",
"@type": "BlogPosting",
"headline": "Building a Blog with Next.js",
"author": {
"@type": "Person",
"name": "John Doe"
}
}
},
"notion_url": "https://www.notion.so/My-Page-abc123def456"
},
"relationships": {
"tags": {
"data": [
{
"type": "tags",
"id": "123"
}
]
}
}
}
}Response
Post updated successfully
Changes
No recorded changes to this endpoint across all 1 revision of this API.