Update draft
update_draftModify a draft; only the fields passed are changed, and omitted fields stay as they are. updatedAt must be the value most recently returned by get_post or create_draft; if it does not match, the draft was modified in the meantime and 409 MAIN_DRAFT_CONFLICT is returned. Only drafts can be modified; a scheduled post becomes a draft again after it is canceled and reopened. The user declaration fields for TikTok and YouTube cannot be written; if the user has already made such declarations on the web for the draft, AGENT_DRAFT_USER_CONFIRMED is returned, and those fields can only be changed by the user at reviewUrl. (Required scope: cd.posts.draft)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"postId": "<postId>",
"updatedAt": "<updatedAt>"
},
"name": "update_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| title | No | ||
| postId | Yes | ||
| hashtags | No | ||
| mediaIds | No | List of media ids (replaces the whole list) | |
| updatedAt | Yes | The most recently read updatedAt | |
| contentText | No | ||
| description | No | ||
| workspaceId | No | Optional: id of the workspace to operate on (look it up with list_workspaces); if omitted, the default personal workspace is used. A developer API key can only use the workspace it is bound to. | |
| platformTargets | No | List of connected account ids (replaces the whole list) | |
| accountOverrides | No | ||
| platformOverrides | No |