Create credential definition from schema

Create a credential definition from the specified schema.

Service Clients (SDKs)

This endpoint can be accessed using one of our service clients as follows.

For more information on how to use our service clients, see our Service Clients (SDKs) guide.

CredentialDefinitionContract credentialDefinition = await _credentialsClient.CreateCredentialDefinitionForSchemaIdAsync(schemaId, new CredentialDefinitionParameters {
  SupportRevocation = false,
  Tag = "unique tag"
});
let credentialDefinition = await credentialsClient.createCredentialDefinitionForSchemaId(schemaId, {
  body: {
    supportRevocation: false,
    tag: "unique tag"
  }
});
credential_definition = credentials_client.create_credential_definition_for_schema_id(schema_id, {
  "supportRevocation": False,
  "tag": "unique tag"
})
body = Credentials::Models::CredentialDefinitionParameters.new
body.support_revocation = false
body.tag = 'unique tag'
credential_definition = credentials_client.create_credential_definition_for_schema_id(schema_id, body)
Language
Authentication
Header
Click Try It! to start a request and see the response here!