DgVerseDgVerse
Home
Get Started
  • Auth Endpoint
  • Create Collection
  • Create Certificate
  • Create Directory
  • Transfer Certificate Via Wallet
  • Transfer Certificate Via Mail
  • Cancel Claim
  • Freeze User
  • Un-freeze User
  • Pause Collection
  • Un-Pause Collection
  • Delete Collection
  • Invalidate Certificates
  • Delete Certificates
  • Get Collection
  • Get Certificates
  • Get Directory of a Collection
Home
Get Started
  • Auth Endpoint
  • Create Collection
  • Create Certificate
  • Create Directory
  • Transfer Certificate Via Wallet
  • Transfer Certificate Via Mail
  • Cancel Claim
  • Freeze User
  • Un-freeze User
  • Pause Collection
  • Un-Pause Collection
  • Delete Collection
  • Invalidate Certificates
  • Delete Certificates
  • Get Collection
  • Get Certificates
  • Get Directory of a Collection
  • Delete Certificate

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. screenshot

Parameter List

FieldTypeRequiredUsage
collectionIdStringYesUnique identifier for the collection
certificateIdsArray of certificateIdYesExpects 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. screenshot

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.
Last Updated:
Contributors: John
Prev
Invalidate certificate
Next
Get Collection