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

Changes

Changed in 2 of the 3 revisions of this API.13

    • the endpoint scheme security tenants was removed from the API

      api-security-removed

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

      new-optional-request-parameter

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • a7641432a6c111See the full diff
    • deleted the header request parameter x-tenant-id

      request-parameter-removed

    • the endpoint scheme security tenants was added to the API

      api-security-added

    This revision also has 145 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog