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}}'
// No content
{
  "errors": [
    {
      "code": "cannot_archive_primary_certificate",
      "message": "Primary certificate cannot be archived"
    }
  ]
}

Path parameters

NameTypeDescription
certificate_idnumberID of certificate to archive. Cannot be the primary certificate on an order.