Credential schemas
Create schema
Parameters
Creates a JSON schema on the blockchain. More info about Schema Creation
Verifiable Credential Schema
The schema version, generally following the JSON-schema specification.
http://json-schema.org/draft-07/schema#Name of the schema.
My SchemaA brief description of the schema.
Truvera Schema ExampleDefines the type of schema. Usually 'object'.
objectThe properties that define the schema.
{"id":{"type":"string"},"emailAddress":{"type":"string","format":"email"},"alumniOf":{"type":"string"}}Required fields within the schema.
["emailAddress","alumniOf"]Specifies whether additional properties outside the defined schema are allowed.
trueSchema will be created.
Invalid params like size not supported or not JSON.
Unauthorized
Transaction limit reached or upgrade required to proceed
List schemas
Parameters
Get all schemas created by user. More info about List Schemas
How many items to offset by for pagination
0How many items to return at one time (max 64)
64Whether to include ecosystems or not
trueAll schemas by user
Application error
Get schema
Parameters
Returns the JSON schema for a specific ID. More info about Get Schema By ID
32 byte hex string. Ignoring higher base (base64) for simplicity.
Schema
Application error
Schema was not found.
Delete schema
Deletes a schema from the database
32 byte hex string. Ignoring higher base (base64) for simplicity.
Schema has been deleted
Something went wrong with deleting the schema
Unauthorized.
Schema does not exist
Something went wrong with deleting the schema
Last updated
Was this helpful?