Create AnonCreds Schema
Create an AnonCreds Schema as a DID-Linked Resource (DLR) on cheqd for issuing AnonCreds.
Create Schema
Request Body
Check the new Schema
Last updated
Was this helpful?
Create an AnonCreds Schema as a DID-Linked Resource (DLR) on cheqd for issuing AnonCreds.
Last updated
Was this helpful?
Was this helpful?
POST /anoncreds/schema HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 239
{
"options": {
"create_transaction_for_endorser": false,
"endorser_connection_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
"schema": {
"attrNames": [
"score"
],
"issuerId": "did:(method):WgWxqztrNooG92RXvxSTWv",
"name": "Example schema",
"version": "1.0"
}
}{
"job_id": "text",
"registration_metadata": {},
"schema_metadata": {},
"schema_state": {
"schema": {
"attrNames": [
"score"
],
"issuerId": "did:(method):WgWxqztrNooG92RXvxSTWv",
"name": "Example schema",
"version": "1.0"
},
"schema_id": "did:(method):2:schema_name:1.0",
"state": "finished"
}
}GET /anoncreds/schema/{schema_id} HTTP/1.1
Accept: */*
{
"resolution_metadata": {},
"schema": {
"attrNames": [
"score"
],
"issuerId": "did:(method):WgWxqztrNooG92RXvxSTWv",
"name": "Example schema",
"version": "1.0"
},
"schema_id": "did:(method):2:schema_name:1.0",
"schema_metadata": {}
}