Create Subject Profile

This creates a subject profile using method. The weightage for this API is 10

API Specification

Create subject profile

POST https://api.krypcore.com/api/v0/did/createSubjectProfile

Creates a new subject profile under the given instance.

Headers

NameTypeDescription

Authorization*

String

User Auth Key obtained from Dash

DappId*

String

DappId

Request Body

NameTypeDescription

subjectId*

String

ID of subject-Email ID

subjectDescription*

String

Description of subject

subjectName*

String

The name of the subject

method

String

method type

{
    "Data": "did:key:z6MkoMGS7TnPJ9yykW1uPVeyviA1i6Ly5zn5PnbHAr9agaGS",
    "Message": "Subject Profile Created",
    "Status": "SUCCESS"
}

Take a look at how you might call this method using our official libraries, or via curl:

curl --location 'https://api.krypcore.com/api/v0/did/createSubjectProfile' \
--header 'Authorization: xxxxxxxxxxxxx' \
--header 'DappId: xxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
  "method": "key",
  "subjectDescription": "xxx",
  "subjectId": "xxx@gmail.com",
  "subjectName": "xxx"
}'

Last updated