Docs

Update pool

https://api.apifonica.com/v2/accounts/{accountSid}/pools/{poolSid}

Update pool parameters. Updates are reflected on each number in the pool.

Note: "numbers" parameter is not supported for this action. Use "Add number to pool" and "Remove number from pool" instead.

Request example:

curl –X PATCH https://api.apifonica.com/v2/accounts/{accountSID}/pools/{poolSid} \
-H 'Content-Type: application/json' \
-d '{
        "name": "My Pool Updated",
        "call_app_sid": "{newApplicationSid}"
    }' \
-u {accountSID}:{authToken}

Response example:

{
    "sid": "{poolSid}",
    "account_sid": "{accountSid}",
    "name": "My Pool Updated",
    "mode": "xml",
    "call_inbound_mode": "xml",
    "call_outbound_mode": "sip_phone",
    "call_app_sid": "{newApplicationSid}",
    "controller": "http://mydomain.com/myapp2.php",
    "method": "POST",
    "events": "all",
    "numbers": [
        "123456787",
        "123456788",
        "123456789",
    ],
    "created": "Thu, 04 Jun 2020 11:42:04 +0000",
    "updated": "Thu, 04 Jun 2020 11:52:04 +0000"
}