AnonCreds

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

post/anoncreds/schemas

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /anoncreds/schemas
  • 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

optionsAnyJsonObject

JSON object that can contain any key-value pairs

Example request

{
  "schema": {
    "issuerId": "did:indy:bcovrin:test:WgWxqztrNooG92RXvxSTWv",
    "name": "schema-name",
    "version": "1.0",
    "attrNames": [
      "age"
    ]
  }
}

Response

Ok

jobIdstring
schemaMetadataAnyJsonObject 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