Skip to main content

Update IP authentication strategy for a connection

PUT 
/security/connections/:connection_id/ip_authentication

Updates the IP authentication strategy used for the connection.

Request

Path Parameters

    connection_id stringrequired

    ID of the connection whose IP authentication is to be updated

Body

required

IP authentication strategy details

    ip_authentication_method stringrequired

    Possible values: [tech-prefix, token, p-charge-info]

    Default value: tech-prefix

    The method of IP authentication to use along with the connection. Defaults to tech-prefix.

    webhook_url string

    URL to which Telnyx will deliver your Call Control webhooks

    failover_url string

    URL to which Telnyx will deliver your Call Control webhooks if we get an error response from your webhook_url

Responses

200: IP authentication update response

400: Bad Request

401: Unauthorized

404: Record Not Found

422: Unprocessable Request

Request samples


curl -L -X PUT 'https://api.telnyx.com/security/connections/:connection_id/ip_authentication' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"ip_authentication_method": "tech-prefix",
"webhook_url": "string",
"failover_url": "string"
}'

Response samples


{
"success": true,
"message": "string",
"ip_authentication_method": "tech-prefix"
}