Edit post
Change the text, tags or state of a post, or move a draft into the queue.
PATCH https://cotlet.dev/api/v1/tumblr/posts/{post_id}
write Confirm
Changes one post of yours: its text, tags or state. Set state to queue to move a draft into the queue, and publish_on to give it a set time. Editing works on posts created in the new Tumblr format and on legacy text posts. A published post changes for everyone who sees it. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| blog string required | string | Blog name, e.g. 'studio-notes' for studio-notes.tumblr.com. Names come from list_blogs. |
| post_id string required | string | Post ID from list_posts, list_queue or list_drafts. |
| content string | string | New post text. Omit to keep the current text. |
| tags string[] | string[] | Tags without the # sign. |
| state enum | enum | published, queue, draft or private. Default: published. |
| publish_on datetime | datetime | ISO 8601 time to publish. Only used when state is queue. |
Request
curl -X PATCH https://cotlet.dev/api/v1/tumblr/posts/post_8c41d2 \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"blog":"studio-notes"}' result = client.call("tumblr", "edit_post", {"blog":"studio-notes","post_id":"post_8c41d2"}) const result = await cotlet.call('tumblr', 'edit_post', {"blog":"studio-notes","post_id":"post_8c41d2"}); cotlet call tumblr edit_post --data '{"blog":"studio-notes","post_id":"post_8c41d2"}' Example response
{
"post_id": "771198400021",
"blog": "studio-notes",
"state": "queue",
"tags": [
"studio notes"
]
}