---
title: "Update AutoSSL metadata via JSON"
method: GET
path: "/set_autossl_metadata_key"
tags: ["SSL", "Auto-Generated Certificates"]
---

# Update AutoSSL metadata via JSON

`GET /set_autossl_metadata_key`

This function sets values for AutoSSL's metadata keys. This allows you to replace certificates that AutoSSL did not issue and toggle other AutoSSL notifications.

**Note:**

  * This function performs the same actions as the WHM API 1 `set_autossl_metadata` function. However, this function accepts a single key and value pair as a parameter instead of JSON. Additionally, you can **only** enter one key and value pair per function call.
  * This function **only** accepts a single key and value pair. To set all values, use the WHM API 1 `set_autossl_metadata` function or make multiple calls to this function.

## Query parameters

- `key` 'clobber_externally_signed' | 'notify_autossl_expiry' | 'notify_autossl_expiry_coverage' | 'notify_autossl_expiry_coverage_user' | 'notify_autossl_renewal' | 'notify_autossl_renewal_user' | 'notify_autossl_renewal_coverage' | 'notify_autossl_renewal_coverage_user' | 'notify_autossl_renewal_coverage_reduced' | 'notify_autossl_renewal_coverage_reduced_user' | 'notify_autossl_renewal_uncovered_domains' | 'notify_autossl_renewal_uncovered_domains_user', required
- `value` 0 | 1, required

## Response `200`

HTTP Request was successful.

- object
  - `metadata` object
    - `command` string — The method name called.
    - `reason` string — The reason the API function failed when the `metadata.result` field is `0`. This field may display a success message when a function succeeds.
    - `result` 0 | 1 — * `1` - Success. * `0` - Failed. Check the `reason` field for more details.
    - `version` integer — The version of the API function.

---

[API](https://skmtc.net/cpanel/apis/whm-api.md) · [All operations](https://skmtc.net/cpanel/apis/whm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpanel/whm-api/revisions/3da41671c02c/schema)
