CreateCredentialDefinition
POST /credential-definitions
POST
/credential-definitions
Creates a new credential definition.
Authorizations
Request Body required
object
endorserDid
string
endorse
boolean
tag
required
string
schemaId
required
string
issuerId
required
string
Responses
200
CredDef
Any of:
object
jobId
string
credentialDefinitionState
required
Any of:
object
state
required
string
credentialDefinition
object
issuerId
required
string
schemaId
required
string
type
required
string
tag
required
string
value
required
object
revocation
primary
required
Construct a type with a set of properties K of type T
object
credentialDefinitionId
string
object
state
required
string
action
required
string
credentialDefinitionId
required
string
credentialDefinition
required
object
issuerId
required
string
schemaId
required
string
type
required
string
tag
required
string
value
required
object
revocation
primary
required
Construct a type with a set of properties K of type T
object
object
state
required
string
credentialDefinition
required
object
issuerId
required
string
schemaId
required
string
type
required
string
tag
required
string
value
required
object
revocation
primary
required
Construct a type with a set of properties K of type T
object
credentialDefinitionId
required
string
object
state
required
string
reason
required
string
credentialDefinition
object
issuerId
required
string
schemaId
required
string
type
required
string
tag
required
string
value
required
object
revocation
primary
required
Construct a type with a set of properties K of type T
object
credentialDefinitionId
string
credentialDefinitionMetadata
required
Construct a type with a set of properties K of type T
object
registrationMetadata
required
Construct a type with a set of properties K of type T
object
object
state
required
string
credentialDefinition
required
object
issuerId
required
string
schemaId
required
string
type
required
string
tag
required
string
value
required
object
revocation
primary
required
Construct a type with a set of properties K of type T
object
credentialDefinitionId
required
string
Examples
202
Wait for action to complete