Skip to content

CreateCredentialDefinition

POST
/credential-definitions

Creates a new credential definition.

Authorizations

Request Body required

object
endorserDid
string
endorse
boolean
tag
required
string
schemaId
required
string
WgWxqztrNooG92RXvxSTWv:2:schema_name:1.0
issuerId
required
string

Responses

200

CredDef

Any of:
object
jobId
string
credentialDefinitionState
required
Any of:
object
state
required
string
Allowed values: wait
credentialDefinition
object
issuerId
required
string
schemaId
required
string
type
required
string
Allowed values: CL
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
Examples
{
"ver": "1.0",
"id": "WgWxqztrNooG92RXvxSTWv:3:CL:20:tag",
"schemaId": "351936",
"type": "CL",
"tag": "definition",
"value": {
"primary": {
"n": "string",
"s": "string",
"r": {
"master_secret": "string",
"string": "string"
},
"rctxt": "string",
"z": "string"
},
"revocation": {
"g": "1 string",
"g_dash": "string",
"h": "string",
"h0": "string",
"h1": "string",
"h2": "string",
"htilde": "string",
"h_cap": "string",
"u": "string",
"pk": "string",
"y": "string"
}
}
}

202

Wait for action to complete