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.
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"
}
]
}
Name | Type | Description |
---|---|---|
certificate_id | number | ID of certificate to archive. Cannot be the primary certificate on an order. |