Register a reference type
Registers a reference type: a kind of business identifier facts carry, such as an order number, with its scope keys, correlation and sensitivity. Every contract declaring the type inherits its scope and sensitivity, and may declare exact correlation only on an exact type, so register it from your deploy pipeline before any contract uses it.
Rules
- Idempotent: equal content answers
200as a replay. - A registered type is immutable, with one exception:
mask: documentcan be added once to a type that has no mask, every other member equal. Omittingmaskon a type that has one is a replay showing the stored mask; a mask can never be removed. maskaccepts onlydocument, and never with sensitivitynoneorhashed.- A name under a reserved prefix needs
catalog:reserved(SF-0014); any other belongs to your own catalog and needs an application credential (SF-0029). ownerIdentityis the authenticated caller, recorded for audit.
Responses
201registered;200replay, or the mask added.403SF-0014missingcontracts:read,contracts:writeorcatalog:reserved;SF-0029user token on a name of your own catalog.409SF-0022different content:errors[]lists every differing member, and nothing changes.422SF-0092invalid member.503SF-0094retry later.
PUT
Path Parameters
Body
application/json
Response
The reference type is already registered with this content: a replay, or the one-way addition of mask: document to a type that had no mask. The body is the stored type.

