Deprecate a contract version
Moves one contract version from ACTIVE to DEPRECATED, so producers stop sending facts under it. No request body.
Rules
- Allowed to the owner of the producer and namespace or to a caller holding
catalog:deprecate. Anyone else is refused before the version is read, so a missing version is not revealed to them. - On Lerian Cloud,
catalog:deprecatedoes not cover a version of Lerian’s catalog. - In your own catalog, the owner is the credential that registered the first contract of the producer and namespace, and a user token without
catalog:deprecateanswersSF-0029. - Idempotent: the transition and a version already
DEPRECATEDboth answer200; only the transition is audited. - The deprecation is irreversible: to send facts again, register a new version.
- It takes effect on ingestion within 30 seconds; after that a fact under this version answers
422SF-0019. - Facts already stored under it stay readable.
Responses
200the contract version, nowDEPRECATED.403SF-0005not the owner and nocatalog:deprecate;SF-0014missing permission;SF-0027,SF-0028multi-tenant credential refusals;SF-0029user token withoutcatalog:deprecateon a name of your own catalog.404SF-0017no such version.503SF-0094retry later.
POST
Deprecate a contract version
Path Parameters
Response
The contract version, now DEPRECATED: the transition, or a replay on a version that was already deprecated.

