DELETE /credentials/:credentialId
Revoke a Verifiable Credential.
{{baseUrl}}/credentials/:credentialId
Headers
Header | Type | Description |
---|---|---|
x-api-key | string | The API key required for authentication. |
Path Parameters
Parameter | Type | Description |
---|---|---|
credentialId | string | The unique identifier of the Verifiable Credential to be revoked. |
credentialId: DegreeCredential-35f5d2f5-b272-4563-a4b8-cd08608896ea
Click Send
and wait for the response.
Response (Success - 200)
Parameter | Type | Description |
---|---|---|
message | string | A message confirming that the Verifiable Credential was deleted. |
credentialId | string | The ID of the Verifiable Credential that was deleted. |
Sample Response Body:
{
"message": "Credential with ID DegreeCredential-35f5d2f5-b272-4563-a4b8-cd08608896ea has been successfully deleted.",
"credentialId": "DegreeCredential-35f5d2f5-b272-4563-a4b8-cd08608896ea"
}
Response (Server Error - 500)
Parameter | Type | Description |
---|---|---|
error | string | Describes the error that occurred. |
Sample Response Body:
{
"error": "Server error"
}