--- title: "Edit guest access (order)" source_url: https://dev.digicert.com/certcentral-apis/services-api/orders/edit-guest-access-order.html api_method: PUT api_endpoint: "/services/v2/order/certificate/12345678/guest-access" api_url: "https://www.digicert.com/services/v2/order/certificate/12345678/guest-access" --- **PUT** `https://www.digicert.com/services/v2/order/certificate/12345678/guest-access` Use this endpoint to enable or disable guest access for an order. To use this endpoint, guest access must be enabled for your account. ## Example requests and responses **cURL** ```bash curl --request PUT 'https://www.digicert.com/services/v2/order/certificate/12345678/guest-access' \ --header 'X-DC-DEVKEY: {{api_key}}' \ --header 'Content-Type: application/json' \ --data-raw '{ "enable_guest_access": 1 }' ``` **Python** ```python import requests url = "https://www.digicert.com/services/v2/order/certificate/12345678/guest-access" payload = "{\n \"enable_guest_access\": 1\n}" 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/12345678/guest-access" method := "PUT" payload := strings.NewReader("{\n \"enable_guest_access\": 1\n}") 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/12345678/guest-access', 'headers': { 'X-DC-DEVKEY': '{{api_key}}', 'Content-Type': 'application/json' }, body: JSON.stringify({"enable_guest_access":1}) }; 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 enable or disable guest access for . |
| Name | Type | Req/Opt | Description |
|---|---|---|---|
| enable_guest_access | int | required | Guest access settings for the order. Allowed values: 1 (enabled) or 0 (disabled) |