Update a Status List
Update an unencrypted Status List as a DID-Linked Resource using cheqd Studio.
Authorizations
Query parameters
listTypestring · enumRequiredPossible values:
The type of Status List.
statusActionstring · enumRequiredPossible values:
The update action to be performed on the unencrypted status list, can be revoke, suspend or reinstate
Body
all ofOptionalExample:
{"did":"did:cheqd:testnet:7c2b990c-3d05-4ebf-91af-f4f4d0091d2e","statusListName":"cheqd-employee-credentials","indices":[10,3199,12109,130999]}
Responses
200
The request was successful.
application/json
Responseall of
and
one ofOptional
or
or
400
A problem with the input fields has occurred. Additional state information plus metadata may be available in the response body.
401
Access token is missing or invalid
500
An internal error has occurred. Additional state information plus metadata may be available in the response body.
post
POST /credential-status/update/unencrypted HTTP/1.1
Host: studio-api.cheqd.net
x-api-key: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 143
"did='did:cheqd:testnet:7c2b990c-3d05-4ebf-91af-f4f4d0091d2e'&statusListName='cheqd-employee-credentials'&indices=[10,3199,12109,130999]"
{
"updated": true,
"revoked": true,
"resource": {
"StatusList2021": {
"encodedList": "H4sIAAAAAAAAA-3BAQ0AAADCoPdPbQ8HFAAAAAAAAAAAAAAAAAAAAADwaDhDr_xcRAAA",
"type": "StatusList2021Revocation",
"validFrom": "2023-06-26T11:45:19.349Z"
},
"metadata": {
"type": "StatusList2021Revocation",
"encoding": "base64url",
"encrypted": false
}
},
"resourceMetadata": {
"resourceURI": "did:cheqd:testnet:7c2b990c-3d05-4ebf-91af-f4f4d0091d2e/resources/5945233a-a4b5-422b-b893-eaed5cedd2dc",
"resourceCollectionId": "7c2b990c-3d05-4ebf-91af-f4f4d0091d2e",
"resourceId": "5945233a-a4b5-422b-b893-eaed5cedd2dc",
"resourceName": "cheqd-employee-credentials",
"resourceType": "StatusList2021Revocation",
"mediaType": "application/json",
"resourceVersion": "1.0.0",
"created": "2023-06-26T11:45:20Z",
"checksum": "909e22e371a41afbb96c330a97752cf7c8856088f1f937f87decbef06cbe9ca2",
"previousVersionId": null,
"nextVersionId": null
}
}
Last updated
Was this helpful?