Skip to content
English
  • There are no suggestions because the search field is empty.

revoke_vc

POST /credentials/v1/revoke/{credentialId} Select code sample Fetch cURL
const url = 'https://example.com/credentials/v1/revoke/example';const options = {  method: 'POST',  headers: {Authorization: 'Bearer 
  
   ', '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 
  
   ' \ --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 ”

200

Section titled “200 ”

Revoked credential VC

Media type application/json
Example generated
example

400

Section titled “400 ”

Invalid revoke request

Media type application/json object callstack object One of: object internal required string object external required object error nullable url required string error required string
Example generated
{  "callstack": {    "internal": "example"  },  "error": "example"}

404

Section titled “404 ”

Credential not found

Media type application/json object callstack object One of: object internal required string object external required object error nullable url required string error required string
Example generated
{  "callstack": {    "internal": "example"  },  "error": "example"}

500

Section titled “500 ”

Server error

Media type application/json object callstack object One of: object internal required string object external required object error nullable url required string error required string
Example generated
{  "callstack": {    "internal": "example"  },  "error": "example"}
Previous
allocate
Next
status