Delete a Credential
DELETE
/api/v1/credentials/{id}
Update the Credential status to delete, for an existing Profile. The credential could be deleted only if the credential is pending.
Request
curl -X 'DELETE' --location 'https://nanotrust.io/api/v1/credentials/ID?profile_id=PROFILE_ID' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_TOKEN'
Query Params
Name | Type | Descriptipon |
Profile_id | String | Profile id |
id | String | Credential id |
Responses
200
Credential successfully deleted
{
"credential": {
"status": "deleted",
"id": "713f0866-83ed-4657-8b69-17cc91d06ac8",
"issuer_profile_id": "46f57f14-04a5-4bb0-accc-c7280f8e89b5",
"kind": "diploma",
"owner_name": "Fidel Crooks MD",
"owner_email": "merrill_streich@trantow.com",
"data": {
"name": "Associate Degree in Communications",
"start_time": "2021-04-30"
},
"created_at": "2023-03-06T14:16:55.179+01:00",
"updated_at": "2023-03-06T14:16:55.219+01:00",
"review_token": "3i2vtrbhKdz9dEaxpjT5Kkwv",
"owner_profile_id": null,
"wallet_status": "unsync",
"owner_birth_date": "2021-03-25",
"owner_birth_place": "Heidefurt",
"email_template_id": null,
"mailjet_id": null,
"mailjet_status": 0,
"is_implicit_consent": false
}
}
401
Profile not found No access token was provided, please provide one in an Authorization header.