--- title: "Update renewal notification settings" source_url: https://dev.digicert.com/certcentral-apis/services-api/orders/update-renewal-notification-settings.html api_method: PUT api_endpoint: "/services/v2/order/certificate/{{order_id}}/renewal-emails/{{status}}" api_url: "https://www.digicert.com/services/v2/order/certificate/{{order_id}}/renewal-emails/{{status}}" --- **PUT** `https://www.digicert.com/services/v2/order/certificate/{{order_id}}/renewal-emails/{{status}}` Use this endpoint to enable or disable renewal notification emails for an order. > **Info** > > To see whether renewal notifications are enabled or disabled for an order, check the status of the [disable_renewal_notifications](https://dev.digicert.com/md/certcentral-apis/services-api/orders/order-info.md#disable_renewal_notifications) property in the response data for the [Order info](https://dev.digicert.com/md/certcentral-apis/services-api/orders/order-info.md) endpoint. ## Example requests and responses **cURL** ```bash curl --request PUT 'https://www.digicert.com/services/v2/order/certificate/{{order_id}}/renewal-emails/{{status}}' \ --header 'X-DC-DEVKEY: {{api_key}}' \ --header 'Content-Type: application/json' ``` **Python** ```python import requests url = "https://www.digicert.com/services/v2/order/certificate/{{order_id}}/renewal-emails/{{status}}" payload = {} headers = { 'X-DC-DEVKEY': {{api_key}}, 'Content-Type': 'application/json' } response = requests.request("PUT", url, headers=headers, data = payload) print(response.text.encode('utf8')) ``` **Go** ```go package main import ( "fmt" "strings" "net/http" "io/ioutil" ) func main() { url := "https://www.digicert.com/services/v2/order/certificate/{{order_id}}/renewal-emails/{{status}}" method := "PUT" payload := strings.NewReader("") client := &http.Client { } req, err := http.NewRequest(method, url, payload) if err != nil { fmt.Println(err) } req.Header.Add("X-DC-DEVKEY", {{api_key}}) req.Header.Add("Content-Type", "application/json") res, err := client.Do(req) defer res.Body.Close() body, err := ioutil.ReadAll(res.Body) fmt.Println(string(body)) } ``` **NodeJS** ```javascript var request = require('request'); var options = { 'method': 'PUT', 'url': 'https://www.digicert.com/services/v2/order/certificate/{{order_id}}/renewal-emails/{{status}}', 'headers': { 'X-DC-DEVKEY': {{api_key}}, 'Content-Type': 'application/json' } }; request(options, function (error, response) { if (error) throw new Error(error); console.log(response.body); }); ``` ## 204 No Content ```json // No Content ``` ## Path parameters
Name Req/Opt Description
order_id required ID of the order to update renewal notification settings for.
status required Status of renewal notification settings for the order.
Allowed values:
  • enable: Enables renewal email notifications for the order.
  • disable: Disables renewal email notifications for the order.