Skip to navigation

Archive posts already on the team

Requires posts:write. Archives up to 100 posts that are already on the team, by postIds and/or links, the same as Archive in the dashboard. Archived posts drop out of GET /posts unless you pass status=archived or status=all. Nothing is deleted. Responds 200 immediately and does not spend credits.

A post that is already archived is rejected with already_archived. A link that is not on the target team is not_on_team; an unknown post id, or one on another team, is not_found. teamId targets an Enterprise sub-team as on the other content routes.

Rate class content_post_archive (20 / minute, 500 / day per key, shared with /content/posts/unarchive).

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

OR
X-Api-Keystring
API Key authentication via header

Request

This endpoint expects an object.
postIdslist of stringsOptional

Post ids on the target team (from GET /posts)

teamIdstringOptional

Enterprise keys only — a sub-team of the key’s enterprise

Response

Archive applied. Per-post rows say what changed and what was rejected.

dataobjectOptional
metaobjectOptional

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error