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
  • Auth
    none 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

jobIdstring
credentialDefinitionMetadataAnyJsonObject required

JSON object that can contain any key-value pairs

registrationMetadataAnyJsonObject required

JSON object that can contain any key-value pairs

Changes

    • info

      the endpoint scheme security tenants was removed from the API

    • info

      added the new optional header request parameter x-tenant-id

    • warning

      deleted the header request parameter x-tenant-id

    • info

      the endpoint scheme security tenants was added to the API