Update ACME restrictions
less than a minute
PATCH
https://www.digicert.com/services/v2/key/{{key_id}}/restrictions
Use this endpoint to update the allowed SANs and order-count restriction for an existing ACME key and its associated ACME Directory URL.
Example requests and responses
curl -X PATCH \
'https://www.digicert.com/services/v2/key/{{key_id}}/restrictions' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}' \
-d '{
"allowed_order_count": 3,
"sans": [
"somedomain.com"
]
}'curl -X PATCH \
'https://www.digicert.com/services/v2/key/{{key_id}}/restrictions' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}' \
-d '{
"sans": []
}'204 No Content
// empty
URL path parameters
| Name | Req/Opt | Type | Description |
|---|---|---|---|
| key_id | required | int | ID of the ACME key to update. |
Request parameters
| Name | Req/Opt | Type | Description |
|---|---|---|---|
| sans | optional | array[string] | Specify the domains (subject alternative names (SANs)) and wildcards allowed for certificates issued with this ACME key. Submit an empty array [] to remove all SAN restrictions. If omitted, the current SAN restrictions remain unchanged.Maximum: 250 SANs per ACME Directory URL. |
| allowed_order_count | optional | int | Specify the maximum number of certificate orders that can be created with this ACME key. The value cannot be lower than the current used_order_count. |
Was this page helpful?
Provide feedback