Archive certificate

PUT
https://www.digicert.com/services/v2/certificate/{{certificate_id}}/archive

Use this endpoint to archive a certificate. By default, archived certificates do not appear in response data for the List reissues and List duplicates API endpoints. You cannot archive the primary certificate on an order.

To restore an archived certificate, use the Restore certificate endpoint.

Example requests and responses

cURL
curl --request PUT 'https://www.digicert.com/services/v2/certificate/{{certificate_id}}/archive' \
--header 'X-DC-DEVKEY: {{api_key}}'
204 No Content
// No content
400 Bad Request
{
  "errors": [
    {
      "code": "cannot_archive_primary_certificate",
      "message": "Primary certificate cannot be archived"
    }
  ]
}

Path parameters

Name Type Description
certificate_id number ID of certificate to archive. Cannot be the primary certificate on an order.