Revoke many certificates by id
POST
/ssh/bulk/revoke
const url = 'https://pki.example.com/api/v1/ssh/bulk/revoke';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"certIds":["example"],"reason":"example"}'};
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/ssh/bulk/revoke \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "certIds": [ "example" ], "reason": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
certIds
required
Array<string>
reason
string
key
additional properties
any
Example generated
{ "certIds": [ "example" ], "reason": "example"}Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
key
additional properties
any
Example generated
{}Default Response
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
key
additional properties
any
key
additional properties
any
Example generated
{ "error": { "code": "example", "message": "example" }}Default Response
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
key
additional properties
any
key
additional properties
any
Example generated
{ "error": { "code": "example", "message": "example" }}