--- title: "Update auto-reissue settings" source_url: https://dev.digicert.com/certcentral-apis/services-api/orders/update-auto-reissue-settings.html api_method: PUT api_endpoint: "/services/v2/order/certificate/123456789/auto-reissue" api_url: "https://www.digicert.com/services/v2/order/certificate/123456789/auto-reissue" --- **PUT** `https://www.digicert.com/services/v2/order/certificate/123456789/auto-reissue` Use this endpoint to update the auto-reissue setting for an order. When auto-reissue is enabled for a Multi-year Plan, DigiCert automatically creates a reissue request for the most recently issued certificate when that certificate is within 30 days of expiring. Auto-reissue repeats until the order expires. ## Related topics - To see the auto-reissue setting for an order, check the `auto_reissue` parameter in the [Order info](https://dev.digicert.com/md/certcentral-apis/services-api/orders/order-info.md) response. - To learn more about reissuing certificates in a Multi-year Plan, see Multi-Year Plans. > **Info** > > Auto-reissues are not supported if the product does not support Multi-year Plans, or if Multi-year Plans are disabled for the account. ## Example requests and responses **cURL** ```bash curl --request PUT 'https://www.digicert.com/services/v2/order/certificate/123456789/auto-reissue' \ --header 'X-DC-DEVKEY: {{api_key}}' \ --header 'Content-Type: application/json' \ --data-raw '{ "auto_reissue": 0 }' ``` **Python** ```python import requests url = "https://www.digicert.com/services/v2/order/certificate/120008212/auto-reissue" payload="{\n \"auto_reissue\": 0\n}" headers = { 'X-DC-DEVKEY': {{api_key}}, 'Content-Type': 'application/json' } response = requests.request("PUT", url, headers=headers, data=payload) print(response.text) ``` **Go** ```go package main import ( "fmt" "strings" "net/http" "io/ioutil" ) func main() { url := "https://www.digicert.com/services/v2/order/certificate/120008212/auto-reissue" method := "PUT" payload := strings.NewReader(`{ "auto_reissue": 0 }`) client := &http.Client { } req, err := http.NewRequest(method, url, payload) if err != nil { fmt.Println(err) return } req.Header.Add("X-DC-DEVKEY", {{api_key}}) req.Header.Add("Content-Type", "application/json") res, err := client.Do(req) if err != nil { fmt.Println(err) return } defer res.Body.Close() body, err := ioutil.ReadAll(res.Body) if err != nil { fmt.Println(err) return } fmt.Println(string(body)) } ``` **NodeJS** ```javascript var request = require('request'); var options = { 'method': 'PUT', 'url': 'https://www.digicert.com/services/v2/order/certificate/120008212/auto-reissue', 'headers': { 'X-DC-DEVKEY': {{api_key}}, 'Content-Type': 'application/json' }, body: JSON.stringify({"auto_reissue":0}) }; 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. |
| Name | Req/Opt | Type | Description |
|---|---|---|---|
| auto_reissue | required | integer | Auto-reissue setting for the order. Possible values: 1 (enabled) or 0 (disabled) |