Create AnonCreds Schema
To issue Verifiable Credentials, the issuer will have to first create a Schema and then a Credential Definition.
Create Schema
The request body must contain the schema
object, which defines the attributes, name and version of the Schema. This will create a DID-Linked Resource of type anonCredsSchema
.
Create a schema on the connected datastore
post
/anoncreds/schema
Body
optionsobject
schemaobject
Responses
application/json
cURL
JavaScript
Python
HTTP
200
Request Body
Check the new Schema
Retrieve an individual schemas details
get
/anoncreds/schema/{schema_id}
Path parameters
schema_idstringrequired
Schema identifier
Example:
did:(method):2:schema_name:1.0
Responses
application/json
cURL
JavaScript
Python
HTTP
200
Last updated
Was this helpful?