Edit guest access (order)

PUT
https://www.digicert.com/services/v2/order/certificate/{{order_id}}/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
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
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
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
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 Success
// No content

Path parameters

Name Req/Opt Description
order_id required ID of the order to enable or disable guest access for .

Request parameters

Name Type Req/Opt Description
enable_guest_access int required Guest access settings for the order.
Allowed values: 1 (enabled) or 0 (disabled)