Set or add internal post and instance labels
edit_post_labels[writes flayr data · write scope] Sets internal post labels and per-platform/account instanceLabels. Omitted sets stay unchanged; [] clears a set; labelMode set replaces both sets, add appends atomically. Use get_post to list both. Works after booking and publishing, and never contacts social networks. Labels are key:value (campaign, experiment, variant, repost, series, source-run, or free keys). Needs publish scope and the publishing plan.
(Wraps PATCH /api/v2/posts/{id}.)
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>"
},
"name": "edit_post_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The post: `convexPostId` from POST /api/v2/publish, or `posts[].id` from GET /api/v2/content/{id}. | |
| labels | No | Sets this post's own labels ([] or null clears; labelMode add appends), e.g. ["repost:evergreen"]. flayr metadata: sent alone it never touches the booking (status "labeled") and works on posted posts too. With booking edits, metadata is saved after a successful edit. Normalized "key:value" labels (keys and values are lower-cased, spaces become "-"). Linked keys: campaign:<media campaign id>, experiment:<experiment id> (+ variant:<name> or the experiment's compareKey), type:<post type> (short, long-form, carousel, image, text, reel, story, poem, timelapse…). Free keys work too: cut:opus, lane:tech, parent:pantheon-part-1, ab:<pair id> (an A/B pair). Labels are copied onto every post made from the draft, and compared in GET /api/v2/analytics/experiments. | |
| labelMode | No | Default set. add atomically appends labels to the post and matching instances; other instances stay unchanged. | |
| instanceLabels | No | Internal labels per platform/account instance. An array of {platform, accountId?, labels}; accountId is the Zernio connected account id. Omit accountId when unknown. instanceKey is derived as canonical platform + ":account:" + URL-encoded account id, or ":pending" when unknown (twitter canonicalizes to x). Replaces the instance set when editing; [] clears it. Never published. |