/certificates/bulk/revoke
POST
/certificates/bulk/revoke
const url = 'https://pki.example.com/api/v1/certificates/bulk/revoke';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"certificateIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"reason":"unspecified","details":"example","generateCrl":true}'};
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://pki.example.com/api/v1/certificates/bulk/revoke \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "certificateIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "reason": "unspecified", "details": "example", "generateCrl": true }'Bulk revoke certificates
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
certificateIds
required
Array of certificate IDs to revoke
Array<string>
reason
required
Revocation reason
string
details
Additional details about the revocation
string
generateCrl
Generate a new CRL after revocation
boolean
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
successful
integer
failed
integer
results
Array<object>
object
certificateId
string format: uuid
success
boolean
error
string
Example generated
{ "successful": 1, "failed": 1, "results": [ { "certificateId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "success": true, "error": "example" } ]}Default Response
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Array<object>
object
field
string
message
string
Example generated
{ "error": { "code": "example", "message": "example", "details": [ { "field": "example", "message": "example" } ] }}Default Response
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Array<object>
object
field
string
message
string
Example generated
{ "error": { "code": "example", "message": "example", "details": [ { "field": "example", "message": "example" } ] }}