The request body must contain the credential_definition
object with the Issuer DID and the Schema ID created in the previous steps.
To enable revocation, the options
must contain the revocation flag, and the size of the revocation registry. Also, ensure that a Tails Server is configured for the issuer.
{% swagger src="../../../.gitbook/assets/swagger.json" path="/anoncreds/credential-definition" method="post" %} swagger.json {% endswagger %}
credential_definition (mandatory)
"issuerId": DID of the Issuer.
"schemaId": The AnonCreds Schema ID created by the Issuer (must be of the same DID).
"tag": Additional Name to identify the Credential Definition.
options (optional)
"support_revocation": Boolean value to indicate that the Credential can be revoked or not. (Tails server must be configured if this is set to `true`)
"revocation_registry_size": Maximum size of the Revocation Registry.
{% swagger src="../../../.gitbook/assets/swagger.json" path="/anoncreds/credential-definition/{cred_def_id}" method="get" %} swagger.json {% endswagger %}