Update a post
update_postEdits only specified fields of a CMSKite post; publishes by setting status to published and uses expectedRevision to prevent overwriting newer saves.
Instructions
Changes only the fields you send; anything omitted is left alone. This is how a post is published: send status "published", which needs the content.publish grant on top of content.write. Pass expectedRevision (the revision from get_post) so that an edit made against an old copy is refused with REVISION_CONFLICT instead of overwriting a newer save; on that error, read the post again and reapply the change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The post id, as `post_...`. | |
| seo | No | Search-engine fields. Omit any the person did not ask for. | |
| body | No | ||
| slug | No | ||
| tags | No | Replaces the whole set. | |
| title | No | ||
| status | No | ||
| excerpt | No | ||
| authorId | No | ||
| projectId | No | Which project to act in, as `prj_...`. Defaults to CMSKITE_PROJECT_ID. Call list_projects if you do not know it. | |
| bodyFormat | No | ||
| categoryId | No | ||
| publishedAt | No | ||
| scheduledAt | No | ||
| expectedRevision | No | The `revision` of the copy this edit is based on. Recommended. |