/certificates/{id}/revoke
POST
/certificates/{id}/revoke
const url = 'https://pki.example.com/api/v1/certificates/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/revoke';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"reason":"unspecified","details":"example","effectiveDate":1,"generateCrl":false}'};
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/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/revoke \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "reason": "unspecified", "details": "example", "effectiveDate": 1, "generateCrl": false }'Revoke a certificate
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
reason
required
string
details
string
effectiveDate
Unix timestamp for effective revocation date
integer
generateCrl
Generate a new CRL after revocation
boolean
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
id
string format: uuid
status
string
revocationDate
string format: date-time
revocationReason
string
Example
{ "status": "revoked"}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" } ] }}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" } ] }}