AnonCreds
Creates a new AnonCreds credentialDefinition and registers the credentialDefinition in the AnonCreds registry
post/anoncreds/credential-definitions
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- URL/anoncreds/credential-definitions
- Authnone declared
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
Changes
- info
the endpoint scheme security
tenantswas removed from the API - info
added the new optional
headerrequest parameterx-tenant-id
- info
- warning
deleted the
headerrequest parameterx-tenant-id - info
the endpoint scheme security
tenantswas added to the API
- warning