Update Posts
update_postsUpdate existing posts on a padlet.
Purpose: Modify the content of existing posts, or delete posts (soft delete; can be undone).
What this tool returns: { success: true } on successful update/delete. When posts are deleted, also returns { deleted_post_ids: [...] } with the ids of the deleted posts.
IMPORTANT: Save these deleted_post_ids so you can pass them to the restore_posts_and_sections tool if the user asks to undo the deletion. Otherwise a hash with success set to false and an optional message, e.g. { success: false, message: "..." }.
When some posts or fields could not be applied, the result also has
not_applied, a list of { post_id, reason }. Tell the user which posts or fields did not change and why, using the reason, and never say a listed change was made.When the result has
awaiting_approval_post_ids, those posts wait for the padlet's approval or content check, so tell the user others cannot see them yet.
Guidance for use:
UPDATING existing posts: Use the existing post id exactly as provided in the padlet data (e.g. "12345").
DELETING posts: Set should_delete to true for each post to delete. Only post_id is required for deletion. Deletions are soft-deleted and can be restored.
EMPTYING a field: name it in
clear, e.g. clear: ["attachment"] to remove a post's attachment or poll. Sending a field as an empty string leaves it as it is.You can only update posts that you created, or if you have admin/moderator permissions on the padlet.
Use get_padlet_content first to see which posts have
editable: true.Only include the fields you want to update for each post.
If setting an attachment, you must either:
include both
attachment_typeANDattachment_searchinclude
attachmentas a valid URL. Pass a chat-dropped file asfileto start_attachment_upload. Use start_attachment_upload plus complete_attachment_upload for a local file when the client can issue an HTTP PUT. An ordinary public web link may be passed directly asattachment.
If changing only the preview image of an existing link attachment, use exactly one of
preview_image_urlorpreview_image_search.preview_image_url/preview_image_searchkeep the original link attachment intact. Do not combine them withattachment,attachment_type, orattachment_search.Poll and other attachments using
attachmentandattachment_searchfields are mutually exclusive. Do not include both in the same post.Move posts to a different section:
Use the section_id from the get_padlet_content tool to get the correct section id, especially if you just created a new section.
The section_id should be a string representing the integer id.
Changing post color:
Only the following colors are allowed: red, orange, green, blue, purple. There are a few exceptions:
If 'yellow' is provided, use 'orange' instead.
"white" and "black" values are only allowed if and only if the padlet color scheme is "light" and "dark" respectively. The counterpart color should not be allowed and be rejected instead. Use the padlet_settings -> color_scheme field to get the padlet color scheme with the get_padlet_content tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| posts | Yes | Array of posts to update. | |
| wall_url | Yes | The padlet's link (e.g. https://padlet.com/foo/bar-a1b2c3): the link you were given, the `wall_url` a previous call returned, or a link the user pasted. Not a breakout-room or submission link, and not a padlet id: no tool takes a wall_id. |