Revoke a certificate the integration issued (idempotent)
POST
/external/revoke
const url = 'https://pki.example.com/api/v1/external/revoke';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"serialNumber":"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/external/revoke \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "serialNumber": "example", "reason": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
serialNumber
required
Serial number of the certificate to revoke
string
reason
RFC 5280 revocation reason (default: unspecified)
string
key
additional properties
any
Example generated
{ "serialNumber": "example", "reason": "example"}Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
id
string
serialNumber
string
status
string
revocationDate
string format: date-time
idempotent
Present and true when the certificate was already revoked.
boolean
key
additional properties
any
Example
{ "status": "revoked"}