Update an existing post
update_draft_postModify an existing post IN PLACE — there is no need to delete and recreate it, and recreating would lose its history. Optional fields: content (string for a simple post, array of strings for a thread — replaces the whole text), account_ids (replaces the target accounts), media_uuids (replaces the media, order preserved; an empty array removes them), scheduled_at (an ISO 8601 UTC date actually schedules the post; null unschedules it and sends it back to DRAFT; omitted leaves the schedule untouched). Omitted fields are kept, including the media when only the text changes. The previous content is replaced and not kept, so confirm the new wording before calling. Refused when the post is already published or currently publishing. — FR : modifie un post EN PLACE ; les champs omis sont conservés, le contenu remplacé est perdu.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | Nouveau texte (remplace tout). String = post simple ; tableau de strings = thread (un bloc par élément). Omis = texte conservé. | |
| post_uuid | Yes | ||
| account_ids | No | Remplace les comptes cibles. Omis = comptes conservés. | |
| media_uuids | No | Remplace les médias du premier bloc (ordre préservé). Tableau vide = retire les médias. Omis = médias conservés. | |
| scheduled_at | No | Date de publication (ISO 8601 UTC) : programme le post. `null` DÉPROGRAMME et le repasse en brouillon. Omis = programmation inchangée. | |
| workspace_uuid | Yes |