v1

latestOpenAPI 3.0.0Apache-2.02026-07-1767300384.3 KB
AnonCreds

Creates a new AnonCreds credentialDefinition and registers the credentialDefinition in the AnonCreds registry

post/anoncreds/credential-definitions

Headers

x-tenant-idstring

Optional header to set the context to a specific tenant. Only needed when the --multi-tenant feature is enabled. Default value is 'default'

Request body

Example request

{
  "credentialDefinition": {
    "issuerId": "did:indy:bcovrin:test:WgWxqztrNooG92RXvxSTWv",
    "schemaId": "did:indy:bcovrin:test:WgWxqztrNooG92RXvxSTWv/anoncreds/v0/SCHEMA/schema-name/1.0",
    "tag": "definition"
  },
  "options": {
    "supportRevocation": true
  }
}

Response

Ok

jobIdstring
credentialDefinitionMetadataAnyJsonObject required

JSON object that can contain any key-value pairs

registrationMetadataAnyJsonObject required

JSON object that can contain any key-value pairs