Revoke credential
POST/credential/:id/revoke
Cancels a credential. The resulting state depends on whether the credential has already been emitted:
- If the credential was emitted or replaced, it transitions to revoked and will no longer be considered valid.
So does one being anchored on-chain, even though it is still reported as
processing. - If its emission has not started yet, it transitions to aborted, and any reason given is discarded.
Any other credential still being emitted (processing) can be neither, and answers 409
InvalidTransition with its current state; so does one already aborted or revoked, or with a change
request in progress.
One that kept changing while the request was handled answers 409 OutdatedCertificate, and the
request can be retried.
Request
Responses
- 200
- 409
Successful operation
Conflict