{"_id":"544ffc773ef5ff10005b5ce0","project":"542dbe0ecb19820800c1f4d7","is_link":false,"parentDoc":null,"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"},"__v":4,"category":{"_id":"544e558dbd51b9080037f8ca","pages":["5450079b3c6f700800a9b3cf","544e55a3b80812080035be56","544ffc773ef5ff10005b5ce0"],"project":"542dbe0ecb19820800c1f4d7","version":"542ecc0a6b0eb6080066ca77","__v":5,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-27T14:24:13.680Z","from_sync":false,"order":8,"slug":"applications","title":"Applications"},"user":"542dc547cb19820800c1f4f1","editedParams2":true,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-10-28T20:28:39.716Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"try":true,"results":{"codes":[{"status":200,"language":"json","code":"{\n    \"sid\": \"{ApplicationSid}\",\n    \"date_created\": \"Mon, 30 Jul 2012 16:53:23 +0000\",\n    \"date_updated\": \"Mon, 30 Jul 2012 16:53:23 +0000\",\n    \"account_sid\": \"{AccountSid}\",\n    \"client_count\": 0, \n    \"friendly_name\": \"ExampleApplication\",\n    \"api_version\": \"v2\",\n    \"voice_url\": \"www.example.com/voicerequest\",\n    \"voice_method\": \"POST\",\n    \"voice_fallback_url\": \"www.example.com/voicefallback\",\n    \"voice_fallback_method\": \"POST\",\n    \"heartbeat_url\" : \"www.example.com/voiceheartbeat\",\n    \"heartbeat_method\" : \"POST\",\n    \"status_callback\": \"www.example.com/voicestatuscallback\",\n    \"status_callback_method\": \"POST\",\n    \"hangup_callback\": \"www.example.com/voicestatuscallback\",\n    \"hangup_callback_method\": \"POST\",\n    \"voice_caller_id_lookup\": \"False\",\n    \"sms_url\": \"www.example.com/smsrequest\",\n    \"sms_method\": \"POST\",\n    \"sms_fallback_url\": \"www.example.com/smsfallback\",\n    \"sms_fallback_method\": \"POST\",\n    \"sms_status_callback\": \"www.example.com/smsstatuscallback\",\n    \"sms_status_callback_url\": \"POST\",\n    \"uri\": \"/v2/Accounts/{AccountSid}/Applications/{ApplicationSid}.json\"\n}  ","name":""},{"status":404,"language":"json","code":"{\n    \"status\": 404,\n    \"message\": \"The requested resource was not found: /v2/Accounts/bad/bad_response.json\"\n}","name":""}]},"settings":"","examples":{"codes":[]},"method":"post","basic_auth":true,"auth":"required","params":[{"_id":"544ffe8d3c6f700800a9b37f","ref":"","in":"path","required":true,"desc":"Account SID.","default":"","type":"string","name":"AccountSid"},{"_id":"544ffe8d3c6f700800a9b37e","ref":"","in":"path","required":true,"desc":"Application SID.","default":"","type":"string","name":"ApplicationSid"},{"_id":"544ffe8d3c6f700800a9b37d","ref":"","in":"body","required":false,"desc":"The name used to identify this application. If this is not included at the initial POST, it is given the value of the application sid.","default":"","type":"string","name":"FriendlyName"},{"_id":"544ffe8d3c6f700800a9b37c","ref":"","in":"body","required":false,"desc":"The URL requested once the call connects. This URL must be valid and should return InboundXML containing instructions on how to process your call. A badly formatted Url will NOT fallback to the FallbackUrl but return an error without placing the call. Url length is limited to 200 characters.","default":"http://telapi.com/ivr/welcome/call","type":"string","name":"VoiceUrl"},{"_id":"544ffe8d3c6f700800a9b37b","ref":"","in":"body","required":false,"desc":"The HTTP method used to request the URL once the call connects. Valid parameters are GET and POST - any other value will default to POST.","default":"POST","type":"string","name":"VoiceMethod"},{"_id":"544ffe8d3c6f700800a9b37a","ref":"","in":"body","required":false,"desc":"URL used if the required URL is unavailable or if any errors occur during execution of the InboundXML returned by the required URL. URL length is limited to 200 characters.","default":"","type":"string","name":"VoiceFallbackUrl"},{"_id":"544ffe8d3c6f700800a9b379","ref":"","in":"body","required":false,"desc":"The HTTP method used to request the FallbackUrl once the call connects. Valid parameters are GET and POST - any other value will default to POST.","default":"POST","type":"string","name":"VoiceFallbackMethod"},{"_id":"544fff443c6f700800a9b386","ref":"","in":"body","required":false,"desc":"Look up the caller’s caller-ID name from the CNAM database (additional charges apply). Allowed values are \"true\" and \"false\".","default":"false","type":"string","name":"VoiceCallerIdLookup"},{"_id":"544fff443c6f700800a9b385","ref":"","in":"body","required":false,"desc":"The URL requested when an SMS is received. This URL must be valid and should return InboundXML containing instructions on how to process the SMS. A badly formatted URL will NOT fallback to the FallbackUrl but return an error without placing the call. URL length is limited to 200 characters.","default":"","type":"string","name":"SmsUrl"},{"_id":"544fff443c6f700800a9b384","ref":"","in":"body","required":false,"desc":"The HTTP method used to request the URL when an SMS is received. Valid parameters are GET and POST - any other value will default to POST.","default":"POST","type":"string","name":"SmsMethod"},{"_id":"544fff443c6f700800a9b383","ref":"","in":"body","required":false,"desc":"URL used if the required URL is unavailable or if any errors occur during execution of the InboundXML returned by the required URL. URL length is limited to 200 characters.","default":"","type":"string","name":"SmsFallbackUrl"},{"_id":"544fff443c6f700800a9b382","ref":"","in":"body","required":false,"desc":"The HTTP method used to request the FallbackUrl once the call connects. Valid parameters are GET and POST - any other value will default to POST.","default":"POST","type":"string","name":"SmsFallbackMethod"},{"_id":"544fffa23c6f700800a9b38d","ref":"","in":"body","required":false,"desc":"A URL that will be requested every 60 seconds during the call, sending information about the call. The HeartbeatUrl will NOT be requested unless at least 60 seconds of call time have elapsed. URL length is limited to 200 characters.","default":"","type":"string","name":"HeartbeatUrl"},{"_id":"544fffa23c6f700800a9b38c","ref":"","in":"body","required":false,"desc":"The HTTP method used to request the HeartbeatUrl. Valid parameters are GET and POST - any other value will default to POST.","default":"POST","type":"string","name":"HeartbeatMethod"},{"_id":"544fffa23c6f700800a9b38b","ref":"","in":"body","required":false,"desc":"A URL that will be requested when the call connects and ends, sending information about the call. URL length is limited to 200 characters.","default":"","type":"string","name":"StatusCallback"},{"_id":"544fffa23c6f700800a9b38a","ref":"","in":"body","required":false,"desc":"The HTTP method used to request the StatusCallback URL. Valid parameters are GET and POST - any other value will default to POST.","default":"POST","type":"string","name":"StatusCallbackMethod"},{"_id":"544fffa23c6f700800a9b389","ref":"","in":"body","required":false,"desc":"This is a StatusCallback clone that will be phased out in future versions.","default":"","type":"string","name":"HangupCallback"},{"_id":"544fffa23c6f700800a9b388","ref":"","in":"body","required":false,"desc":"This is a StatusCallbackMethod clone that will be phased out in future versions.","default":"","type":"string","name":"HangupCallbackMethod"}],"url":"/v2/Accounts/:AccountSid/Applications/:ApplicationSid.json"},"isReference":false,"order":2,"body":"# **Response Parameters**\n\nResponse parameters are equal to those on [\"View Application\" API call](/v2/docs/view-application).\n\n# **Example cURL**\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -X POST 'https://api.zang.io/v2/Accounts/{AccountSid}/Applications/{ApplicationSid}.json' -u '{AccountSid}:{AuthToken}' -d 'FriendlyName=UpdatedApp'\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]","excerpt":"updates TelAPI application data","slug":"update-application","type":"endpoint","title":"Update Application"}

postUpdate Application

updates TelAPI application data

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

AccountSid:
required
string
Account SID.
ApplicationSid:
required
string
Application SID.

Body Params

FriendlyName:
string
The name used to identify this application. If this is not included at the initial POST, it is given the value of the application sid.
VoiceUrl:
stringhttp://telapi.com/ivr/welcome/call
The URL requested once the call connects. This URL must be valid and should return InboundXML containing instructions on how to process your call. A badly formatted Url will NOT fallback to the FallbackUrl but return an error without placing the call. Url length is limited to 200 characters.
VoiceMethod:
stringPOST
The HTTP method used to request the URL once the call connects. Valid parameters are GET and POST - any other value will default to POST.
VoiceFallbackUrl:
string
URL used if the required URL is unavailable or if any errors occur during execution of the InboundXML returned by the required URL. URL length is limited to 200 characters.
VoiceFallbackMethod:
stringPOST
The HTTP method used to request the FallbackUrl once the call connects. Valid parameters are GET and POST - any other value will default to POST.
VoiceCallerIdLookup:
stringfalse
Look up the caller’s caller-ID name from the CNAM database (additional charges apply). Allowed values are "true" and "false".
SmsUrl:
string
The URL requested when an SMS is received. This URL must be valid and should return InboundXML containing instructions on how to process the SMS. A badly formatted URL will NOT fallback to the FallbackUrl but return an error without placing the call. URL length is limited to 200 characters.
SmsMethod:
stringPOST
The HTTP method used to request the URL when an SMS is received. Valid parameters are GET and POST - any other value will default to POST.
SmsFallbackUrl:
string
URL used if the required URL is unavailable or if any errors occur during execution of the InboundXML returned by the required URL. URL length is limited to 200 characters.
SmsFallbackMethod:
stringPOST
The HTTP method used to request the FallbackUrl once the call connects. Valid parameters are GET and POST - any other value will default to POST.
HeartbeatUrl:
string
A URL that will be requested every 60 seconds during the call, sending information about the call. The HeartbeatUrl will NOT be requested unless at least 60 seconds of call time have elapsed. URL length is limited to 200 characters.
HeartbeatMethod:
stringPOST
The HTTP method used to request the HeartbeatUrl. Valid parameters are GET and POST - any other value will default to POST.
StatusCallback:
string
A URL that will be requested when the call connects and ends, sending information about the call. URL length is limited to 200 characters.
StatusCallbackMethod:
stringPOST
The HTTP method used to request the StatusCallback URL. Valid parameters are GET and POST - any other value will default to POST.
HangupCallback:
string
This is a StatusCallback clone that will be phased out in future versions.
HangupCallbackMethod:
string
This is a StatusCallbackMethod clone that will be phased out in future versions.

Result Format


Documentation

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