Delete Certificate
path: v1/hts/api/integration/delete-certificate
How to use
To delete a certificate, two parameters are required: the collectionId of the collection it belongs to and the certificateId of the certificate itself. 
Parameter List
| Field | Type | Required | Usage |
|---|---|---|---|
| collectionId | String | Yes | Unique identifier for the collection |
| certificateIds | Array of certificateId | Yes | Expects an array where each element should represent a certificateId that belongs to the same collection and user |
cURL command
curl --request POST \
--url http://<dgverse-api-base-url>/v1/hts/api/integration/delete-certificate \
--header 'Authorization: Bearer <YOUR TOKEN>' \
--header 'Content-Type: application/json' \
--data '{"collectionId": "<VALUE>>", "certificateIds": ["<VALUE1>", "<VALUE2>"]}'
Response
A ‘200 Ok’ status means the delete certificate process is successful. 
Error Troubleshooting
- 400 Bad Request: No such collection found; please create collection to start.
- 400 Bad Request: Invalid Certificate ID, this certificate may have been already deleted or doesn’t exist within this collection.
