Update ACME restrictions

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

NameReq/OptTypeDescription
key_idrequiredintID of the ACME key to update.

Request parameters

NameReq/OptTypeDescription
sansoptionalarray[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_countoptionalintSpecify 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.