post
https://api.seismic.com/cm/v1/teamSites//expiration/expireNow
Expire one or more Library content versions immediately, at the moment of the call. Use this operation instead of setting a future expiration date when content must stop being available right away. The call is synchronous: when an item is reported as Succeeded, that version is already expired when the response returns.
Domain Terms
items: The content to expire. Each entry targets one version of one content item.contentId: The Library content identifier. AcontentIdmust not appear more than once in a request.versionId: Optional. The version to expire. When omitted, the latest version of the content is expired (the newest version, including drafts). To expire the currently active version, pass itsversionId.
Behavior
- Only the given version expires. Other versions of the content are not changed.
- If the expired version is the active version, the content is deactivated and is no longer available in DocCenter and Workspace. If a different version (for example a draft) is expired, the active version stays live.
- If the version already has a scheduled expiration, it is still expired now and the item is reported as
Succeeded, notIgnored. The scheduled expiration date is replaced by the time of the call. - Notifications are the same as when expiring content from the Seismic user interface.
- Retrying an already expired version returns
Ignored, so retries are safe. - A secondary-language variant cannot be expired through this operation. The item is reported as
Failedand nothing is expired, including the primary content. - Every item must belong to the teamsite in the path. An item whose content or version belongs to another teamsite is reported as
Failed(not found) and is not expired.
Authorization
- The token must carry the
seismic.library.managescope; otherwise the request is rejected with403. - Each item is also checked against the user the token represents. An item the user is not allowed to expire is reported as
Failedand the remaining items are still processed.
Limits
- At most 100 items per request. A larger request is rejected with
400. - Rate limit: 10 requests per 60 seconds. Requests beyond the limit receive
429. Send full batches to stay within the limit.
Result codes
200: the request is valid and no item failed. Items areSucceededorIgnored.207: the request is valid and at least one item failed. ReadFailedDetailfor the reason of each item; the other items are still processed.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
429Too Many Requests. The rate limit of 10 requests per 60 seconds was exceeded. Wait for the window to pass and retry.