Docs

Update app properties

https://api.apifonica.com/v2/accounts/{accountSID}/applications/{applicationSID}

Overview

To update an application properties, make the PUT request to /accounts/{accountSID}/applications/{applicationSID}

Request must contain new values for changeable parameters

Changeable parameters

Parameter

Description

controller

URL which will be used to make a request for an XML controller file for incoming calls or messages.

method

Method which will be used to make a request.

name

Application name.

events

The call progress events that Apifonica will send webhooks on. Can be none (default), all (for all events) or selected events divided by vertical line (f.e. answered|completed)

Description

URL which will be used to make a request for an XML controller file.

Description

Method used for Apifonica queries.

Description

Application name.

Description

The call progress events that Apifonica will send webhooks on. Can be none (default), all (for all events) or selected events divided by vertical line (f.e. answered|completed)

Request example

curl –X PUT ‘https://api.apifonica.com/v2/accounts/{accountSID}/applications/{applicationSID}’ \
-H ‘Content-Type: application/json’ \
-d ‘{ \
     “controller”: ”http://172.16.102.175:8082/messages/events”, \
     “method”: ”GET”, \
     “name”: ”MyApp1”, \
     “events”: ”ringing|answered”, \

    }’ \
-u {accountSID}:{authToken}

Response example

{
    "status_code": 200,
    "status_message": "OK",
    "uri": "/v2/accounts/{accountSID}/applications/{applicationSID}"
}