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.
Object containing unique id of the background task and associated data. This id can be used to query the job status
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
The schema ID
https://schema.truvera.io/ExampleSchema-V5-1722512884923.jsonfor adding nullability to a ref
The schema URI
https://schema.truvera.io/ExampleSchema-V5-1722512884923.jsonWhether the current user is the owner of the schema
trueThe owner name
TruveraThe owner logo
https://logo.truvera.io/ownerApplication 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
The schema ID
https://schema.truvera.io/ExampleSchema-V5-1722512884923.jsonfor adding nullability to a ref
The schema URI
https://schema.truvera.io/ExampleSchema-V5-1722512884923.jsonWhether the current user is the owner of the schema
trueThe owner name
TruveraThe owner logo
https://logo.truvera.io/ownerApplication 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
Object containing unique id of the background task and associated data. This id can be used to query the job status
Something went wrong with deleting the schema
Unauthorized.
Schema does not exist
Something went wrong with deleting the schema
Last updated
Was this helpful?