Update an Application

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

Modify an application using this API.

Below is the list of arguments that can be passed in this API request, more information can be found here

ArgumentsDescriptionRequired/Conditional/Optional
answer_urlThe URL Plivo will fetch when a call executes this application. More details.Required
app_nameThe name of your applicationRequired
answer_methodThe method used to call the answer_url. Defaults to POST.Optional
hangup_urlThe URL that will be notified by Plivo when the call hangs up. Defaults to answer_url. More details.Optional
hangup_methodThe method used to call the hangup_url. Defaults to POST.Optional
fallbackanswerurlInvoked by Plivo only if answer_url is unavailable or the XML response is invalid. Should contain a XML response.Optional
fallback_methodThe method used to call the fallbackanswerurl. Defaults to POST.Optional
message_urlThe URL that will be notified by Plivo when an inbound message is received. Defaults not set.Optional
message_methodThe method used to call the message_url. Defaults to POST.Optional
defaultnumberappIf set to true, this parameter ensures that newly created numbers, which don't have an app_id, point to this application.Optional
defaultendpointappIf set to true, this parameter ensures that newly created endpoints, which don't have an app_id, point to this application.Optional
subaccountID of the subaccount to which this application needs to be associated with.Optional
logincomingmessagesIf set to false, the content of incoming messages to Plivo phone numbers associated with this application are not logged in Plivo systems, including the debug logs available on the Plivo console. Additionally, the last three digits of the from number are redacted in all system logs and in the Message Detail Record (MDR) of the incoming message.
logincomingmessages defaults true when not specified.
Note that non-redacted content and from number is always passed to the the message_url irrespective of the value set for this flag.
Optional

Request Body

{"answer_url"=>"http://answer.url", "answer_method"=>"POST", "hangup_url"=>"http://hangup.url", "hangup_method"=>"POST", "fallback_answer_url"=>"http://fallback.url", "fallback_method"=>"POST", "message_url"=>"http://message.url", "message_method"=>"POST", "default_number_app"=>"true", "default_endpoint_app"=>"true", "subaccount"=>"SAXXXXXXXXXXX", "log_incoming_messages"=>"true"}