Register a contract version
Registers one version of a fact contract: the JSON Schema its facts satisfy and the references they carry. Call it from your deploy pipeline, before the producer rolls out.
Rules
- Idempotent: the same identity and content hash is a replay.
- Published versions are immutable; a new minor or patch version must stay compatible.
- A namespace under a reserved prefix needs
catalog:reserved(SF-0014); any other belongs to your own catalog and needs an application credential (SF-0029). - In your own catalog, the first registration binds the producer and namespace to the registering credential.
- Every declared reference type must be registered first. A reference declares only
type,cardinality,requiredandcorrelation, and inherits scope and sensitivity from its type;exactis refused on acorrelation: nonetype. x-sensitivity(masked,hashedorencrypted) only on atype: stringproperty reached throughproperties;x-mask: documentonly besidemaskedorencrypted.
Responses
201registered andACTIVE;200identical replay.403SF-0005the producer and namespace belong to another owner;SF-0014,SF-0027,SF-0028,SF-0029.409SF-0002same version, different content (errors[]lists differences and the bump);SF-0003incompatible minor or patch.422SF-0004,SF-0018,SF-0021,SF-0025,SF-0092.503SF-0094retry later.
PUT
Register a contract version
Parámetros de ruta
Cuerpo
application/json
Respuesta
Identical content is already registered under this identity: a replay that changes nothing. The body is the stored contract version.

