{"_id":"544a9c414688c7080018669b","user":"542dc547cb19820800c1f4f1","parentDoc":null,"__v":1,"editedParams2":true,"project":"542dbe0ecb19820800c1f4d7","editedParams":true,"version":{"_id":"542ecc0a6b0eb6080066ca77","forked_from":"542dbe0fcb19820800c1f4da","project":"542dbe0ecb19820800c1f4d7","__v":31,"createdAt":"2014-10-03T16:17:14.165Z","releaseDate":"2014-10-03T16:17:14.165Z","categories":["542ecc0a6b0eb6080066ca78","542ef44f6b0eb6080066cb24","543bf3e22a30961a00b66eb3","5446952b82bd7e08002768a0","544821ae8d7af31a00dd41ce","544a7885f1aefa08006efc69","544c758e11845f0e001ed8de","544e5565b80812080035be55","544e558dbd51b9080037f8ca","5450b045a66f020800dba73d","5450eb6aa66f020800dba945","5450f39ea66f020800dba989","5450f877a66f020800dba9cf","54510356a66f020800dbaa17","5451274514af501a00b50c99","54513345a66f020800dbab24","54513cc014af501a00b50d24","54515eec14af501a00b50db9","54519b1d14af501a00b50ea9","54519b2aa66f020800dbacb4","54524f9704160008005b1d27","54538d2308d1800800473d95","54538d420c09721000a06a03","54538e5608d1800800473d9a","5453ea9547c30114004fb375","5453eb12b077c31c00067bcb","5453eb27b077c31c00067bcd","5453ed5db077c31c00067bde","548075cbe291c51a00e7e096","5922fa475c48c70f00f21453","59244fd41e32eb190028ad8d"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2"},"category":{"_id":"544a7885f1aefa08006efc69","project":"542dbe0ecb19820800c1f4d7","version":"542ecc0a6b0eb6080066ca77","__v":2,"pages":["544a885df1aefa08006efca0","544a9c414688c7080018669b"],"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-24T16:04:21.067Z","from_sync":false,"order":6,"slug":"accounts","title":"Accounts"},"is_link":false,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-10-24T18:36:49.030Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"method":"post","results":{"codes":[{"name":"","code":"{\n    \"sid\": \"AccountSid\",\n    \"friendly_name\": \"foo:::at:::bar.com\",\n    \"status\": \"active\",\n\n    \"account_balance\": \"25.00\",\n\n\n    \"date_created\": \"Tue, 21 Aug 2012 14:27:03 +0000\",\n    \"date_updated\": \"Thu, 1 Nov 2012 19:54:05 +0000\",\n    \"uri\": \"/v2/Accounts/AccountSid.json\",\n    \"max_outbound_limit\" : \"0.400000\",\n    \"type\": \"Full\",\n    \"time_zone\": \"America/New_York\",\n\n    \"subresource_uris\": {\n        \"available_phone_numbers\": \"/v2/Accounts/AccountSid/AvailablePhoneNumbers.json\",\n        \"calls\": \"/v2/Accounts/AccountSid/Calls.json\",\n        \"conferences\": \"/v2/Accounts/AccountSid/Conferences.json\",\n        \"incoming_phone_numbers\": \"/v2/Accounts/AccountSid/IncomingPhoneNumbers.json\",\n        \"notifications\": \"/v2/Accounts/AccountSid/Notifications.json\",\n        \"recordings\": \"/v2/Accounts/AccountSid/Recordings.json\",\n        \"sms_messages\": \"/v2/Accounts/AccountSid/SMS/Messages.json\",\n        \"transcriptions\": \"/v2/Accounts/AccountSid/Transcriptions.json\",\n        \"transactions\": \"/v2/Accounts/AccountSid/Transactions.json\",\n        \"applications\": \"/v2/Accounts/AccountSid/Applications.json\",\n        \"fraud\": \"/v2/Accounts/AccountSid/Fraud.json\",\n        \"cnam\": \"/v2/Accounts/AccountSid/CNAM.json\",\n        \"carrier\": \"/v2/Accounts/AccountSid/Carrier.json\",\n        \"usages\": \"/v2/Accounts/AccountSid/Usages.json\"\n        }\n}        ","language":"json","status":200},{"name":"","code":"{\n    \"status\": 404,\n    \"message\": \"The requested resource was not found: /v2/Accounts/bad/bad_response.json\"\n}","language":"json","status":404}]},"settings":"","try":true,"basic_auth":true,"examples":{"codes":[]},"auth":"required","params":[{"_id":"544a9c414688c7080018669d","ref":"","in":"path","required":true,"desc":"Account SID.","default":"","type":"string","name":"AccountSid"},{"_id":"544a9c414688c7080018669c","ref":"","in":"body","required":false,"desc":"The custom alias for your account.","default":"the email used to create the account","type":"string","name":"FriendlyName"}],"url":"/v2/Accounts/:AccountSid.json"},"isReference":false,"order":1,"body":"# **Response Parameters**\n\nResponse parameters are equal to those on [\"View Account\" API call](/v2/docs/view-account).\n\n# **Example cURL**\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -X POST 'https://api.zang.io/v2/Accounts/{AccountSid}.json' -u '{AccountSid}:{AuthToken}' -d 'FriendlyName=friendly'\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]","excerpt":"updates account information","slug":"update-account","type":"endpoint","title":"Update Account"}

postUpdate Account

updates account information

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

AccountSid:
required
string
Account SID.

Body Params

FriendlyName:
stringthe email used to create the account
The custom alias for your account.

Result Format


Documentation

# **Response Parameters** Response parameters are equal to those on ["View Account" API call](/v2/docs/view-account). # **Example cURL** [block:code] { "codes": [ { "code": "curl -X POST 'https://api.zang.io/v2/Accounts/{AccountSid}.json' -u '{AccountSid}:{AuthToken}' -d 'FriendlyName=friendly'", "language": "shell" } ] } [/block]