Pular para o conteúdo principal
PUT
Register a contract version

Autorizações

Authorization
string
header
obrigatório

A JWT that Access Manager issues.

Parâmetros de caminho

producer
string
obrigatório

Producer service that owns the fact type.

Exemplo:

"checkout-api"

namespace
string
obrigatório

Namespace of the fact type.

Exemplo:

"acme.checkout"

type
string
obrigatório

Fact type name.

Exemplo:

"checkout.order_placed"

schemaVersion
string
obrigatório

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

Exemplo:

"1.0.0"

Corpo

application/json
hash
string
obrigatório

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

Exemplo:

"sha256:0000000000000000000000000000000000000000000000000000000000000000"

references
object[] | null
obrigatório

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

schema
any
obrigatório

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

team
string
obrigatório

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.

Exemplo:

"checkout-squad"

compatibilityPolicy
string

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

Resposta

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

createdAt
string<date-time>
obrigatório

When this version was registered. RFC 3339, UTC.

hash
string
obrigatório

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

namespace
string
obrigatório

Namespace of the fact type.

Exemplo:

"acme.checkout"

producer
string
obrigatório

Producer service that owns the fact type.

Exemplo:

"checkout-api"

references
object[] | null
obrigatório

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

schema
any
obrigatório

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
obrigatório

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

Exemplo:

"1.0.0"

status
enum<string>
obrigatório

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

Opções disponíveis:
ACTIVE,
DEPRECATED
team
string
obrigatório

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

Exemplo:

"checkout-squad"

type
string
obrigatório

Fact type name, chosen by the producer.

Exemplo:

"checkout.order_placed"

compatibilityPolicy
enum<string>

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

Opções disponíveis:
TRANSITIVE