Update post
Update an existing post by ID or slug. All fields are optional — only provided fields are updated. Requires a private API key.
PATCH
Update post
Documentation Index
Fetch the complete documentation index at: https://docs.marblecms.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Your Marble API key
Path Parameters
Post ID or slug
Example:
"my-post-slug"
Body
application/json
Minimum string length:
1Example:
"Updated Post Title"
Minimum string length:
1Example:
"<p>Updated content</p>"
Minimum string length:
1Example:
"Updated description"
Minimum string length:
1Example:
"updated-post-slug"
Minimum string length:
1Example:
"cryitfjp2345kl05weoybfk9"
Available options:
published, draft Example:
"published"
Array of tag IDs. Replaces all existing tags when provided.
Example:
["cryitfjp4567no07ygqadhm1"]
Array of author IDs. Replaces all existing authors when provided.
Example:
["cryitfjp3456lm06xfpzcgl0"]
Example:
true
Example:
"https://media.marblecms.com/new-cover.jpg"
Example:
"2024-02-01T10:00:00Z"
Response
Post updated successfully
Update post