--- title: "Add emergency contact emails" source_url: https://dev.digicert.com/partner-subscriptions-api/account-management/add-emergency-contact-emails.html api_method: PUT api_endpoint: "/partner-subscription/api/v1/account/emergency-emails" api_url: "https://www.digicert.com/partner-subscription/api/v1/account/emergency-emails" --- **PUT** `https://www.digicert.com/partner-subscription/api/v1/account/emergency-emails` Use this endpoint to add one or more emergency contact email addresses to the authenticated partner subscriptions account. Emergency contact email addresses are used for critical security issues or service disruptions. New email addresses are added to the existing emergency contact email list. Duplicate email addresses are automatically removed. All email addresses must use a valid email format. > **Info** > > Use a parent account Partner Subscriptions API key to add emergency contact emails to the parent account. Use a subaccount Partner Subscriptions API key to add emergency contact emails to the authenticated subaccount. ## Example requests and responses **cURL** ```bash curl -X PUT \ https://www.digicert.com/partner-subscription/api/v1/account/emergency-emails \ -H 'Content-Type: application/json' \ -H 'X-PARTNER-APIKEY: {{partner_api_key}}' \ -d '{ "emergency_contact_emails": [ "new-contact@example.com", "another-contact@example.com" ] }' ``` **Python** ```python import requests url = "https://www.digicert.com/partner-subscription/api/v1/account/emergency-emails" payload = "{\n \"emergency_contact_emails\": [\n \"new-contact@example.com\",\n \"another-contact@example.com\"\n ]\n}" headers = { 'X-PARTNER-APIKEY': "{{partner_api_key}}", 'Content-Type': "application/json" } response = requests.request("PUT", url, data=payload, headers=headers) print(response.text) ``` **Go** ```go package main import ( "fmt" "strings" "net/http" "io/ioutil" ) func main() { url := "https://www.digicert.com/partner-subscription/api/v1/account/emergency-emails" payload := strings.NewReader("{\n \"emergency_contact_emails\": [\n \"new-contact@example.com\",\n \"another-contact@example.com\"\n ]\n}") req, _ := http.NewRequest("PUT", url, payload) req.Header.Add("X-PARTNER-APIKEY", "{{partner_api_key}}") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` **NodeJS** ```javascript var request = require("request"); var options = { method: 'PUT', url: 'https://www.digicert.com/partner-subscription/api/v1/account/emergency-emails', headers: { 'Content-Type': 'application/json', 'X-PARTNER-APIKEY': '{{partner_api_key}}' }, body: { emergency_contact_emails: [ 'new-contact@example.com', 'another-contact@example.com' ] }, json: true }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); }); ``` ## 204 No Content The emergency contact email addresses were added successfully. The response does not include a body. ## URL path and query parameters This endpoint does not use URL path or query parameters. ## Request parameters
Name Req/Opt Type Description
emergency_contact_emails required array[string] Valid emergency contact email addresses to add to the authenticated account. Duplicate email addresses are automatically removed.
## Response parameters This endpoint does not return response parameters.