Saltar al contenido principal
PUT
Register a contract version

Autorizaciones

Authorization
string
header
requerido

A JWT that Access Manager issues.

Parámetros de ruta

producer
string
requerido

Producer service that owns the fact type.

Ejemplo:

"checkout-api"

namespace
string
requerido

Namespace of the fact type.

Ejemplo:

"acme.checkout"

type
string
requerido

Fact type name.

Ejemplo:

"checkout.order_placed"

schemaVersion
string
requerido

Semantic version of the contract (major.minor.patch).

Ejemplo:

"1.0.0"

Cuerpo

application/json
hash
string
requerido

Content hash computed by the producer (the prefix sha256: plus 64 lowercase hex characters), verified by the server against the content sent.

Ejemplo:

"sha256:0000000000000000000000000000000000000000000000000000000000000000"

references
object[] | null
requerido

References facts of this type carry; scope and sensitivity come from each reference type and cannot be declared here.

schema
any
requerido

Self-contained JSON Schema 2020-12 document that every fact payload of this type must satisfy.

team
string
requerido

Owning team or squad, audited, never an identity: 1 to 128 UTF-8 bytes (accented letters take two or more), no surrounding whitespace or control characters.

Ejemplo:

"checkout-squad"

compatibilityPolicy
string

How a new version is checked against the earlier versions of its major; optional, defaults to TRANSITIVE. Allowed values: TRANSITIVE.

Respuesta

Identical content is already registered under this identity: a replay that changes nothing. The body is the stored contract version.

createdAt
string<date-time>
requerido

When this version was registered. RFC 3339, UTC.

hash
string
requerido

Content hash verified at registration (the prefix sha256: plus 64 hex characters); the authoritative integrity value of this version.

namespace
string
requerido

Namespace of the fact type.

Ejemplo:

"acme.checkout"

producer
string
requerido

Producer service that owns the fact type.

Ejemplo:

"checkout-api"

references
object[] | null
requerido

References facts of this type carry, each with the scope and sensitivity its reference type had at registration.

schema
any
requerido

Payload schema as stored: member order, whitespace and number spelling may differ from what was sent, so check integrity with hash, never by rehashing this.

schemaVersion
string
requerido

Semantic version of this contract (major.minor.patch).

Ejemplo:

"1.0.0"

status
enum<string>
requerido

Lifecycle status: a DEPRECATED version refuses new facts and never returns to ACTIVE. Allowed values: ACTIVE, DEPRECATED.

Opciones disponibles:
ACTIVE,
DEPRECATED
team
string
requerido

Owning team or squad, as registered; informational and audited, never an identity.

Ejemplo:

"checkout-squad"

type
string
requerido

Fact type name, chosen by the producer.

Ejemplo:

"checkout.order_placed"

compatibilityPolicy
enum<string>

How a new version is checked against the earlier versions of its major. Allowed values: TRANSITIVE.

Opciones disponibles:
TRANSITIVE