AnonCreds

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

post/anoncreds/schemas

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

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