Create a schema
Creates a new schema. Schemas contains a set of rules and constraints that can be used to validate records. Each schema has a record property which references the type of records that can be validated using the schema. A schema can optionally extend another one by using the `extend` property which references the parent schema by its handle. If a record type has at least one schema, a schema will be mandatory for all records of that type. To specify which schema should be used to validate a record, the `schema` property must be passed when creating or updating a record.
Authorization
Authorization
RequiredBearer <token>JWT signed by private key. The presence of this token is not mandatory. It becomes required through the configuration of authorization access rules that requires a token to grant access. Once sent, the token is validated for its format, signature and expiration, regardless of the presence of access rules.
In: header
Request Body
application/json
RequiredSchema body
hash
Requiredstring"^[A-Fa-f0-9]{64}$"
meta
Requiredobjectdata
Requiredobject & objectHeader Parameters
x-ledger
string | stringThe unique identifier of ledger in context for multi tenant requests.
Created schema