Modifica subaccount


Use this endpoint to edit subaccount settings.

curl -X PUT \
  '{{subaccount_id}}' \
  -H 'Content-Type: application/json' \
  -H 'X-DC-DEVKEY: {{api_key}}' \
  -d '{
	"account_manager_user_id": 1234567,
	"bill_parent": true
import requests

url = "{{subaccount_id}}"

payload = "{\n\t\"account_manager_user_id\": 1234567,\n\t\"bill_parent\": true\n}"
headers = {
    'X-DC-DEVKEY': "{{api_key}}",
    'Content-Type': "application/json"

response = requests.request("PUT", url, data=payload, headers=headers)

package main

import (

func main() {

	url := "{{subaccount_id}}"

	payload := strings.NewReader("{\n\t\"account_manager_user_id\": 1234567,\n\t\"bill_parent\": true\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("X-DC-DEVKEY", "{{api_key}}")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)


var request = require("request");

var options = { method: 'PUT',
  url: '{{subaccount_id}}',
   { 'Content-Type': 'application/json',
     'X-DC-DEVKEY': '{{api_key}}' },
  body: { account_manager_user_id: 1234567, bill_parent: true },
  json: true };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

204 No Content
// empty

Request parameters

Name Req/Opt Type Description
account_manager_user_id optional integer ID of an existing user that will manage the subaccount.

Note: To remove the account manager from a subaccount, omit the account_manager_user_id parameter from your request and set the value of allow_removing_account_manager to true.
bill_parent optional boolean Specify if the parent account should be billed for all certificate orders.
child_name optional string Friendly name to help identify subaccounts with identical or similar names. This name is only visible to the parent account.
Maximum length: 64 characters
allow_parent_order_renewal optional boolean If true, subaccount can renew orders created by the parent account. Otherwise, false.
allow_removing_account_manager optional boolean If true, requests that omit the account_manager_user_id parameter will remove the subaccount's existing account manager. If false (default), requests that omit the account_manager_user_id parameter will not remove the subaccount's existing account manager.