# Update Account PUT https://api.hellosign.com/v3/account Content-Type: application/json Updates the properties and settings of your Account. Currently only allows for updates to the [Callback URL](/api/reference/tag/Callbacks-and-Events) and locale. Reference: https://developer.hellosign.com/api/account/update ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: Update Account version: endpoint_account.update paths: /account: put: operationId: update summary: Update Account description: >- Updates the properties and settings of your Account. Currently only allows for updates to the [Callback URL](/api/reference/tag/Callbacks-and-Events) and locale. tags: - - subpackage_account parameters: - name: Authorization in: header description: Basic authentication of the form `Basic `. required: true schema: type: string responses: '200': description: successful operation content: application/json: schema: $ref: '#/components/schemas/AccountGetResponse' '400': description: failed_operation content: {} requestBody: content: application/json: schema: $ref: '#/components/schemas/AccountUpdateRequest' components: schemas: AccountUpdateRequest: type: object properties: account_id: type: - string - 'null' description: The ID of the Account callback_url: type: string description: The URL that Dropbox Sign should POST events to. locale: type: string description: >- The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. AccountResponseQuotas: type: object properties: api_signature_requests_left: type: - integer - 'null' description: API signature requests remaining. documents_left: type: - integer - 'null' description: Signature requests remaining. templates_total: type: - integer - 'null' description: Total API templates allowed. templates_left: type: - integer - 'null' description: API templates remaining. sms_verifications_left: type: - integer - 'null' description: SMS verifications remaining. num_fax_pages_left: type: - integer - 'null' description: Number of fax pages left AccountResponseUsage: type: object properties: fax_pages_sent: type: - integer - 'null' description: Number of fax pages sent AccountResponse: type: object properties: account_id: type: string description: The ID of the Account email_address: type: string description: The email address associated with the Account. is_locked: type: boolean description: >- Returns `true` if the user has been locked out of their account by a team admin. is_paid_hs: type: boolean description: Returns `true` if the user has a paid Dropbox Sign account. is_paid_hf: type: boolean description: Returns `true` if the user has a paid HelloFax account. quotas: $ref: '#/components/schemas/AccountResponseQuotas' callback_url: type: - string - 'null' description: The URL that Dropbox Sign events will `POST` to. role_code: type: - string - 'null' description: The membership role for the team. team_id: type: - string - 'null' description: The id of the team account belongs to. locale: type: - string - 'null' description: >- The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. usage: $ref: '#/components/schemas/AccountResponseUsage' WarningResponse: type: object properties: warning_msg: type: string description: Warning message warning_name: type: string description: Warning name required: - warning_msg - warning_name AccountGetResponse: type: object properties: account: $ref: '#/components/schemas/AccountResponse' warnings: type: array items: $ref: '#/components/schemas/WarningResponse' description: A list of warnings. required: - account ``` ## SDK Code Examples ```php PHP setUsername("YOUR_API_KEY"); // $config->setAccessToken("YOUR_ACCESS_TOKEN"); $account_update_request = (new Dropbox\Sign\Model\AccountUpdateRequest()) ->setCallbackUrl("https://www.example.com/callback") ->setLocale("en-US"); try { $response = (new Dropbox\Sign\Api\AccountApi(config: $config))->accountUpdate( account_update_request: $account_update_request, ); print_r($response); } catch (Dropbox\Sign\ApiException $e) { echo "Exception when calling AccountApi#accountUpdate: {$e->getMessage()}"; } ``` ```csharp C# using System; using System.Collections.Generic; using System.IO; using System.Text.Json; using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; namespace Dropbox.SignSandbox; public class AccountUpdateExample { public static void Run() { var config = new Configuration(); config.Username = "YOUR_API_KEY"; // config.AccessToken = "YOUR_ACCESS_TOKEN"; var accountUpdateRequest = new AccountUpdateRequest( callbackUrl: "https://www.example.com/callback", locale: "en-US" ); try { var response = new AccountApi(config).AccountUpdate( accountUpdateRequest: accountUpdateRequest ); Console.WriteLine(response); } catch (ApiException e) { Console.WriteLine("Exception when calling AccountApi#AccountUpdate: " + e.Message); Console.WriteLine("Status Code: " + e.ErrorCode); Console.WriteLine(e.StackTrace); } } } ``` ```typescript TypeScript import * as fs from 'fs'; import api from "@dropbox/sign" import models from "@dropbox/sign" const apiCaller = new api.AccountApi(); apiCaller.username = "YOUR_API_KEY"; // apiCaller.accessToken = "YOUR_ACCESS_TOKEN"; const accountUpdateRequest: models.AccountUpdateRequest = { callbackUrl: "https://www.example.com/callback", locale: "en-US", }; apiCaller.accountUpdate( accountUpdateRequest, ).then(response => { console.log(response.body); }).catch(error => { console.log("Exception when calling AccountApi#accountUpdate:"); console.log(error.body); }); ``` ```java Java package com.dropbox.sign_sandbox; import com.dropbox.sign.ApiException; import com.dropbox.sign.Configuration; import com.dropbox.sign.api.*; import com.dropbox.sign.auth.*; import com.dropbox.sign.JSON; import com.dropbox.sign.model.*; import java.io.File; import java.math.BigDecimal; import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; import java.util.Map; public class AccountUpdateExample { public static void main(String[] args) { var config = Configuration.getDefaultApiClient(); ((HttpBasicAuth) config.getAuthentication("api_key")).setUsername("YOUR_API_KEY"); // ((HttpBearerAuth) config.getAuthentication("oauth2")).setBearerToken("YOUR_ACCESS_TOKEN"); var accountUpdateRequest = new AccountUpdateRequest(); accountUpdateRequest.callbackUrl("https://www.example.com/callback"); accountUpdateRequest.locale("en-US"); try { var response = new AccountApi(config).accountUpdate( accountUpdateRequest ); System.out.println(response); } catch (ApiException e) { System.err.println("Exception when calling AccountApi#accountUpdate"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); e.printStackTrace(); } } } ``` ```ruby Ruby require "json" require "dropbox-sign" Dropbox::Sign.configure do |config| config.username = "YOUR_API_KEY" # config.access_token = "YOUR_ACCESS_TOKEN" end account_update_request = Dropbox::Sign::AccountUpdateRequest.new account_update_request.callback_url = "https://www.example.com/callback" account_update_request.locale = "en-US" begin response = Dropbox::Sign::AccountApi.new.account_update( account_update_request, ) p response rescue Dropbox::Sign::ApiError => e puts "Exception when calling AccountApi#account_update: #{e}" end ``` ```python Python import json from datetime import date, datetime from pprint import pprint from dropbox_sign import ApiClient, ApiException, Configuration, api, models configuration = Configuration( username="YOUR_API_KEY", # access_token="YOUR_ACCESS_TOKEN", ) with ApiClient(configuration) as api_client: account_update_request = models.AccountUpdateRequest( callback_url="https://www.example.com/callback", locale="en-US", ) try: response = api.AccountApi(api_client).account_update( account_update_request=account_update_request, ) pprint(response) except ApiException as e: print("Exception when calling AccountApi#account_update: %s\n" % e) ``` ```go Account Update package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.hellosign.com/v3/account" req, _ := http.NewRequest("PUT", url, nil) req.Header.Add("Authorization", "Basic :") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```swift Account Update import Foundation let headers = [ "Authorization": "Basic :", "Content-Type": "application/json" ] let request = NSMutableURLRequest(url: NSURL(string: "https://api.hellosign.com/v3/account")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "PUT" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` ```php PHP setUsername("YOUR_API_KEY"); // $config->setAccessToken("YOUR_ACCESS_TOKEN"); $account_update_request = (new Dropbox\Sign\Model\AccountUpdateRequest()) ->setCallbackUrl("https://www.example.com/callback") ->setLocale("en-US"); try { $response = (new Dropbox\Sign\Api\AccountApi(config: $config))->accountUpdate( account_update_request: $account_update_request, ); print_r($response); } catch (Dropbox\Sign\ApiException $e) { echo "Exception when calling AccountApi#accountUpdate: {$e->getMessage()}"; } ``` ```csharp C# using System; using System.Collections.Generic; using System.IO; using System.Text.Json; using Dropbox.Sign.Api; using Dropbox.Sign.Client; using Dropbox.Sign.Model; namespace Dropbox.SignSandbox; public class AccountUpdateExample { public static void Run() { var config = new Configuration(); config.Username = "YOUR_API_KEY"; // config.AccessToken = "YOUR_ACCESS_TOKEN"; var accountUpdateRequest = new AccountUpdateRequest( callbackUrl: "https://www.example.com/callback", locale: "en-US" ); try { var response = new AccountApi(config).AccountUpdate( accountUpdateRequest: accountUpdateRequest ); Console.WriteLine(response); } catch (ApiException e) { Console.WriteLine("Exception when calling AccountApi#AccountUpdate: " + e.Message); Console.WriteLine("Status Code: " + e.ErrorCode); Console.WriteLine(e.StackTrace); } } } ``` ```typescript TypeScript import * as fs from 'fs'; import api from "@dropbox/sign" import models from "@dropbox/sign" const apiCaller = new api.AccountApi(); apiCaller.username = "YOUR_API_KEY"; // apiCaller.accessToken = "YOUR_ACCESS_TOKEN"; const accountUpdateRequest: models.AccountUpdateRequest = { callbackUrl: "https://www.example.com/callback", locale: "en-US", }; apiCaller.accountUpdate( accountUpdateRequest, ).then(response => { console.log(response.body); }).catch(error => { console.log("Exception when calling AccountApi#accountUpdate:"); console.log(error.body); }); ``` ```java Java package com.dropbox.sign_sandbox; import com.dropbox.sign.ApiException; import com.dropbox.sign.Configuration; import com.dropbox.sign.api.*; import com.dropbox.sign.auth.*; import com.dropbox.sign.JSON; import com.dropbox.sign.model.*; import java.io.File; import java.math.BigDecimal; import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; import java.util.Map; public class AccountUpdateExample { public static void main(String[] args) { var config = Configuration.getDefaultApiClient(); ((HttpBasicAuth) config.getAuthentication("api_key")).setUsername("YOUR_API_KEY"); // ((HttpBearerAuth) config.getAuthentication("oauth2")).setBearerToken("YOUR_ACCESS_TOKEN"); var accountUpdateRequest = new AccountUpdateRequest(); accountUpdateRequest.callbackUrl("https://www.example.com/callback"); accountUpdateRequest.locale("en-US"); try { var response = new AccountApi(config).accountUpdate( accountUpdateRequest ); System.out.println(response); } catch (ApiException e) { System.err.println("Exception when calling AccountApi#accountUpdate"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); e.printStackTrace(); } } } ``` ```ruby Ruby require "json" require "dropbox-sign" Dropbox::Sign.configure do |config| config.username = "YOUR_API_KEY" # config.access_token = "YOUR_ACCESS_TOKEN" end account_update_request = Dropbox::Sign::AccountUpdateRequest.new account_update_request.callback_url = "https://www.example.com/callback" account_update_request.locale = "en-US" begin response = Dropbox::Sign::AccountApi.new.account_update( account_update_request, ) p response rescue Dropbox::Sign::ApiError => e puts "Exception when calling AccountApi#account_update: #{e}" end ``` ```python Python import json from datetime import date, datetime from pprint import pprint from dropbox_sign import ApiClient, ApiException, Configuration, api, models configuration = Configuration( username="YOUR_API_KEY", # access_token="YOUR_ACCESS_TOKEN", ) with ApiClient(configuration) as api_client: account_update_request = models.AccountUpdateRequest( callback_url="https://www.example.com/callback", locale="en-US", ) try: response = api.AccountApi(api_client).account_update( account_update_request=account_update_request, ) pprint(response) except ApiException as e: print("Exception when calling AccountApi#account_update: %s\n" % e) ``` ```go Default Example package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.hellosign.com/v3/account" payload := strings.NewReader("{\n \"callback_url\": \"https://www.example.com/callback\",\n \"locale\": \"en-US\"\n}") req, _ := http.NewRequest("PUT", url, payload) req.Header.Add("Authorization", "Basic :") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```swift Default Example import Foundation let headers = [ "Authorization": "Basic :", "Content-Type": "application/json" ] let parameters = [ "callback_url": "https://www.example.com/callback", "locale": "en-US" ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://api.hellosign.com/v3/account")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "PUT" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```