revoke_vc
POST
/credentials/v1/revoke/{credentialId}
const url = 'https://example.com/credentials/v1/revoke/example';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"credentialStatus":{"statusListCredential":"http://localhost:3050/credentials/v1/status-lists/bea5c950-15c2-4d28-a5a0-4638dcce30b2","statusListIndex":"0"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/credentials/v1/revoke/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "credentialStatus": { "statusListCredential": "http://localhost:3050/credentials/v1/status-lists/bea5c950-15c2-4d28-a5a0-4638dcce30b2", "statusListIndex": "0" } }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” credentialId
required
string
Credential identifier
Request Body required
Section titled “Request Body required ” Media type application/json
object
credentialStatus
required
object
statusListCredential
required
string
statusListIndex
required
string
Example
{ "credentialStatus": { "statusListCredential": "http://localhost:3050/credentials/v1/status-lists/bea5c950-15c2-4d28-a5a0-4638dcce30b2", "statusListIndex": "0" }}Responses
Section titled “ Responses ”Revoked credential VC
Media type application/json
Example generated
exampleInvalid revoke request
Media type application/json
Credential not found
Media type application/json
Server error
Media type application/json