Edit a draft
drafts_editReplace a draft’s title and variants. Send the whole draft, not only what changed, with the version you last read; the answer carries the next version. Refused with 409 when the draft changed in the meantime: read it again with drafts_get. Posts already queued keep the content they were queued with. Changing the text or video of a TikTok variant clears the choices the owner made for it on the TikTok screen, and they are asked again (choose has the link).
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": {
"id": "<id>",
"version": "<version>",
"title": "<title>",
"variants": "<variants>"
},
"name": "drafts_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The draft id. | |
| title | Yes | A name for the draft in the user’s own list. It is never posted. | |
| brandId | No | The brand this is for, by its id from brands_list. Needed when the login has more than one brand; with one brand it can be left out. | |
| version | Yes | The draft’s version as you last read it. A different number is refused, so nothing goes out with content the user did not see. | |
| variants | Yes | One entry per account the post goes to, each with its own text and media. |