---
title: "Deprecate Collection Version"
method: POST
path: "/memory/collections/{cid}/versions/{version}/deprecate"
---

# Deprecate Collection Version

`POST /memory/collections/{cid}/versions/{version}/deprecate`

## Request

- Base URL: `https://api-docs.session-exchange.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.session-exchange.com/memory/collections/{cid}/versions/{version}/deprecate`
- Auth: none declared

Withdraw a published version from NEW sales; existing buyers' pins keep resolving.
While the deprecated version is the listed `latest`, the listing is left out of browse,
search and facets (`DiscoveryIndex.is_deprecated`), its row says `sellable:false,
unsellable_reason:"version_deprecated"`, and checkout refuses it (400 `version_deprecated`).
Promoting a successor lifts all of that. Entitlements and the bundle ignore deprecation.

## Path parameters

- `cid` string, required
- `version` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/session-exchange/apis/a4sx.md) · [All operations](https://skmtc.dev/session-exchange/apis/a4sx/llms.txt) · [OpenAPI document](https://skmtc.dev/session-exchange/apis/a4sx/revisions/abaefc33dfc7?raw)
