Skip to main content
POST
/
ims
/
clr
/
v2p0
/
credentials
Upsert a Verifiable Comprehensive Learner Record (CLR)
curl --request POST \
  --url https://api.alpha-1edtech.ai/ims/clr/v2p0/credentials/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "@context": [
    "<string>"
  ],
  "id": "<string>",
  "type": [
    "<string>"
  ],
  "issuer": {
    "id": "<string>",
    "type": [
      "<string>"
    ],
    "name": "<string>",
    "url": "<string>",
    "phone": "<string>",
    "description": "<string>",
    "image": {
      "id": "<string>",
      "type": "<string>",
      "caption": "<string>"
    },
    "email": "[email protected]"
  },
  "name": "<string>",
  "validFrom": "2023-11-07T05:31:56Z",
  "credentialSubject": {
    "type": [
      "<string>"
    ],
    "verifiableCredential": [
      {
        "@context": [
          "<string>"
        ],
        "id": "<string>",
        "type": [
          "<string>"
        ],
        "issuer": {
          "id": "<string>",
          "type": [
            "<string>"
          ],
          "name": "<string>",
          "url": "<string>",
          "phone": "<string>",
          "description": "<string>",
          "image": {
            "id": "<string>",
            "type": "<string>",
            "caption": "<string>"
          },
          "email": "[email protected]"
        },
        "validFrom": "2023-11-07T05:31:56Z",
        "credentialSubject": {
          "id": "<string>"
        },
        "validUntil": "2023-11-07T05:31:56Z",
        "proof": [
          {
            "type": "<string>",
            "proofPurpose": "<string>",
            "verificationMethod": "<string>",
            "created": "2023-11-07T05:31:56Z",
            "proofValue": "<string>",
            "cryptosuite": "<string>"
          }
        ]
      }
    ],
    "id": "<string>",
    "identifier": [
      {
        "type": "<string>",
        "identityHash": "<string>",
        "identityType": "<string>",
        "hashed": true,
        "salt": "<string>"
      }
    ],
    "achievement": [
      {
        "id": "<string>",
        "type": [
          "<string>"
        ],
        "name": "<string>",
        "description": "<string>",
        "criteria": {
          "id": "<string>",
          "narrative": "<string>"
        },
        "image": {
          "id": "<string>",
          "type": "<string>",
          "caption": "<string>"
        },
        "achievementType": "Achievement",
        "creator": {
          "id": "<string>",
          "type": [
            "<string>"
          ],
          "name": "<string>",
          "url": "<string>",
          "phone": "<string>",
          "description": "<string>",
          "image": {
            "id": "<string>",
            "type": "<string>",
            "caption": "<string>"
          },
          "email": "[email protected]"
        }
      }
    ],
    "association": [
      {
        "type": "<string>",
        "associationType": "exactMatchOf",
        "sourceId": "<string>",
        "targetId": "<string>"
      }
    ]
  },
  "description": "<string>",
  "validUntil": "2023-11-07T05:31:56Z",
  "proof": [
    {
      "type": "<string>",
      "proofPurpose": "<string>",
      "verificationMethod": "<string>",
      "created": "2023-11-07T05:31:56Z",
      "proofValue": "<string>",
      "cryptosuite": "<string>"
    }
  ],
  "credentialSchema": [
    {
      "id": "<string>",
      "type": "<string>"
    }
  ]
}
'
{
  "@context": [
    "<string>"
  ],
  "id": "<string>",
  "type": [
    "<string>"
  ],
  "issuer": {
    "id": "<string>",
    "type": [
      "<string>"
    ],
    "name": "<string>",
    "url": "<string>",
    "phone": "<string>",
    "description": "<string>",
    "image": {
      "id": "<string>",
      "type": "<string>",
      "caption": "<string>"
    },
    "email": "[email protected]"
  },
  "name": "<string>",
  "validFrom": "2023-11-07T05:31:56Z",
  "credentialSubject": {
    "type": [
      "<string>"
    ],
    "verifiableCredential": [
      {
        "@context": [
          "<string>"
        ],
        "id": "<string>",
        "type": [
          "<string>"
        ],
        "issuer": {
          "id": "<string>",
          "type": [
            "<string>"
          ],
          "name": "<string>",
          "url": "<string>",
          "phone": "<string>",
          "description": "<string>",
          "image": {
            "id": "<string>",
            "type": "<string>",
            "caption": "<string>"
          },
          "email": "[email protected]"
        },
        "validFrom": "2023-11-07T05:31:56Z",
        "credentialSubject": {
          "id": "<string>"
        },
        "validUntil": "2023-11-07T05:31:56Z",
        "proof": [
          {
            "type": "<string>",
            "proofPurpose": "<string>",
            "verificationMethod": "<string>",
            "created": "2023-11-07T05:31:56Z",
            "proofValue": "<string>",
            "cryptosuite": "<string>"
          }
        ]
      }
    ],
    "id": "<string>",
    "identifier": [
      {
        "type": "<string>",
        "identityHash": "<string>",
        "identityType": "<string>",
        "hashed": true,
        "salt": "<string>"
      }
    ],
    "achievement": [
      {
        "id": "<string>",
        "type": [
          "<string>"
        ],
        "name": "<string>",
        "description": "<string>",
        "criteria": {
          "id": "<string>",
          "narrative": "<string>"
        },
        "image": {
          "id": "<string>",
          "type": "<string>",
          "caption": "<string>"
        },
        "achievementType": "Achievement",
        "creator": {
          "id": "<string>",
          "type": [
            "<string>"
          ],
          "name": "<string>",
          "url": "<string>",
          "phone": "<string>",
          "description": "<string>",
          "image": {
            "id": "<string>",
            "type": "<string>",
            "caption": "<string>"
          },
          "email": "[email protected]"
        }
      }
    ],
    "association": [
      {
        "type": "<string>",
        "associationType": "exactMatchOf",
        "sourceId": "<string>",
        "targetId": "<string>"
      }
    ]
  },
  "description": "<string>",
  "validUntil": "2023-11-07T05:31:56Z",
  "proof": [
    {
      "type": "<string>",
      "proofPurpose": "<string>",
      "verificationMethod": "<string>",
      "created": "2023-11-07T05:31:56Z",
      "proofValue": "<string>",
      "cryptosuite": "<string>"
    }
  ],
  "credentialSchema": [
    {
      "id": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
@context
string[]
required
id
string<uri>
required
type
string[]
required
issuer
object
required
name
string
required
validFrom
string<date-time>
required
credentialSubject
object
required
description
string
validUntil
string<date-time>
proof
object[]
credentialSchema
object[]

Response

Credential successfully updated

@context
string[]
required
id
string<uri>
required
type
string[]
required
issuer
object
required
name
string
required
validFrom
string<date-time>
required
credentialSubject
object
required
description
string
validUntil
string<date-time>
proof
object[]
credentialSchema
object[]