Add, replace, or remove tags on posts already on the team
Requires posts:write. Updates content tags on up to 100 posts that
are already on the team, by postIds and/or links. Responds 200
immediately. Does not create posts and does not spend credits.
operation:
addmergestagsonto each post (case-insensitive; existing spelling wins)setoverwrites the post’s tags withtags(an empty list clears them)replaceswaps one tag for another (from→to) and leaves the other tags. A post that does not havefromisrejectedwithtag_not_presentremovedrops the listed tags (case-insensitive)
A leading # is stripped. A link that is not on the target team is
rejected with not_on_team. An unknown post id, or one on another
team, is not_found. The same post named twice is duplicate_in_batch
and only the first reference is written. teamId targets an Enterprise
sub-team as on the other content routes.
Rate class content_post_tags (20 / minute, 500 / day per key).
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
add merges. set overwrites the tag list (tags: [] clears it).
replace swaps from for to and leaves the other tags.
remove drops the listed tags.
replace only. The tag to swap out. Case-insensitive. A leading # is dropped.
replace only. The tag to swap in. Other tags on the post stay.
Post ids on the target team (from GET /posts)
Enterprise keys only — a sub-team of the key’s enterprise
Response
Tag update applied. Per-post rows say what changed and what was rejected.
