Updates the Account object by setting the values of the parameters passed. Parameters that are not provided will remain unchanged.

This request accepts only the name, city, state, time zone, and address as parameters.

API Endpoint

POST
https://api.plivo.com/v1/Account/{auth_id}/

Arguments

NameTypeDescription
addressstringPostal address of the account, which is displayed on the invoices.
namestringName of the account holder.
citystringCity of the account holder.
statestringState or region of the account.
timezonestringThe time zone used in the Plivo dashboard for this account. A list of possible time zone values is maintained at the IANA Time Zone Database.

Returns

Returns a confirmation that the object is updated.

Request

import plivo

client = plivo.RestClient('<auth_id>','<auth_token>')
response = client.account.update(
    name='Lucius Fox',
    city='New York',
    address='Times Square', )
print(response)

# Or, you could use the Application object
account_details = client.account.get()
response = account_details.update(
    name='Lucius Fox',
    city='New York',
    address='Times Square', )
print(response)

Response

HTTP Status Code: 202
{
  "api_id": "02bbdbaa-9303-11e7-8bc8-065f6a74a84a",
  "message": "changed"
}