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
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
  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
{  "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