POST Certificates Revoke

The POST /Certificates/Revoke operation revokes one or more certificates with the specified IDs. On success, the operation returns HTTP 200 OK with  a list of the successfully revoked certificate IDs on a success or a list of the failed certificate IDs if any revocations fail.

Tip:  The following permissions (see Security Roles and Claims) are required to use this feature:
/certificates/collections/revoke/
OR
/certificates/collections/revoke/#/
OR
/certificate_stores/revoke/
OR
/certificate_stores/revoke/#/

Permissions for certificates can be set at the system-wide or resource-specific level. The appropriate level depends on how the certificates are accessed. See Certificate CollectionClosed The certificate search function allows you to query the Keyfactor Command database for certificates from any available source based on any criteria of the certificates and save the results as a collection that will be available in other places in the Management Portal (for example expiration alerts and certain reports). Permissions and Application Permissions for more information.

In permission strings, # represents a specific resource identifier. In /certificates/collections/ permission strings it refers to a certificate collection ID (for example, CollectionId) and in /certificate_stores/ permission strings it refers to a certificate store application ID (for example, containerId).

Table 321: POST Certificates Revoke Input Parameters

Name In Description
CertificateIDs Body Required. An array of integers containing the list of Keyfactor Command reference IDs for certificates that should be revoked.
Reason Body

An integer containing the specific reason that the certificate is being revoked. ClosedShow revocation reasons.

The default is Unspecified.

Comment Body Required. A string containing a free-form reason or comment on why the certificate is being revoked.
EffectiveDate Body A string containing the date and time when the certificate will be revoked. The date and time are expressed in ISO 8601 UTC format (YYYY-MM-DDTHH:mm:ss[.fff]Z). For example, 2026-05-19T16:23:01Z. The default is the current date and time. Keyfactor Command only supports past and present dates for revocation.
CollectionId Body

An optional integer that specifies the certificate collection (CollectionId) to validate whether the user has sufficient permissions to perform the action. If a CollectionId is not provided, the user must have appropriate permissions granted system-wide or via certificate store applications.

Providing a CollectionId allows the system to check the user's permissions at the certificate collection level. Permissions are evaluated in the following order:

  1. System-wide certificate permissions
  2. Granular certificate permissions

Use either ContainerId or CollectionId, not both. If both are specified, CollectionId takes precedence, and the ContainerId is ignored (defaults to 0).

See Certificate Collection Permissions for more information.

ContainerId Body

An optional integer that specifies the certificate store application (ContainerId) to validate whether the user has sufficient permissions to perform the action. If a ContainerId is not provided, the user must have appropriate permissions granted system-wide or via certificate collections.

Providing a ContainerId allows the system to check the user's permissions at the application level. Permissions are evaluated in the following order:

  1. System-wide certificate permissions
  2. System-wide certificate store application permissions
  3. Granular certificate store application permissions

Use either ContainerId or CollectionId, not both.

See Application Permissions for more information.

PublishCRL Body A Boolean indicating whether a new CRL should be published following revocation (True or False). The default is True.
Tip:  See the Keyfactor APIClosed An API is a set of functions to allow creation of applications. Keyfactor offers the Keyfactor API, which allows third-party software to integrate with the advanced certificate enrollment and management features of Keyfactor Command. Reference and Utility, which allows you to call API operations and view results. It is primarily intended for validation, testing, and workflow development, and also serves as an interactive supplement to this API documentation. You can access it from the help menu () in the Management Portal.