--- title: "Edit subaccount" source_url: https://dev.digicert.com/certcentral-apis/services-api/subaccount/edit-subaccount.html api_method: PUT api_endpoint: "/services/v2/account/subaccount/{{subaccount_id}}" api_url: "https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}" --- **PUT** `https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}` Use this endpoint to edit subaccount settings. ## Example requests and responses **cURL** ```bash curl -X PUT \ 'https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}' \ -H 'Content-Type: application/json' \ -H 'X-DC-DEVKEY: {{api_key}}' \ -d '{ "account_manager_user_id": 1234567, "bill_parent": true }' ``` **Python** ```python import requests url = "https://www.digicert.com/services/v2/account/subaccount/{{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) print(response.text) ``` **Go** ```go package main import ( "fmt" "strings" "net/http" "io/ioutil" ) func main() { url := "https://www.digicert.com/services/v2/account/subaccount/{{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) fmt.Println(res) fmt.Println(string(body)) } ``` **NodeJS** ```javascript var request = require("request"); var options = { method: 'PUT', url: 'https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}', headers: { '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); console.log(body); }); ``` ## 204 No Content ```json // 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.
enable_ica_selection optional boolean If true, intermediate CA selection is enabled for the subaccount.Otherwise, false.
Learn more about configuring the ICA certificate chain feature for your public certificates.