Credentials
Update a credential
Use this endpoint to update a credential.
patch/v1/credentials/{id}
Path parameters
idstring required
The unique ID of the credential
Example:01hz2f0c9ryvzajg20jqh9taab
The unique ID of the credential
Headers
Certifier-Versionstring required
API version header. Required for all requests.
Example:2022-10-26
API version header. Required for all requests.
Request body
Example request
{
"recipient": {
"id": "01jmerb62apgachxwx6db76c7s",
"name": "John Doe",
"email": "john.doe@example.com"
},
"issueDate": "2022-01-01",
"expiryDate": "2023-01-01",
"customAttributes": {
"custom.mentor": "Jane Doe"
}
}Response
Credential updated successfully
Example response
{
"id": "01hz2f0c9ryvzajg20jqh9taab",
"publicId": "124a8110-1af5-4747-9308-e9d06bd1852a",
"groupId": "01g90279gp5sbmfek7wymcsvec",
"status": "draft",
"recipient": {
"id": "01jmerb62apgachxwx6db76c7s",
"name": "John Doe",
"email": "john.doe@example.com"
},
"issueDate": "2022-01-01",
"expiryDate": "2023-01-01",
"attributes": {
"recipient.name": "John Doe"
},
"customAttributes": {
"custom.mentor": "Jane Doe"
},
"createdAt": "2022-01-01T00:00:00.000Z",
"updatedAt": "2022-01-01T00:00:00.000Z"
}