Update a Fax Application
PATCH/fax_applications/:id
Updates settings of an existing Fax Application based on the parameters of the request.
Request
Path Parameters
Identifies the resource.
- application/json
Body
required
Parameters to be updated for the Fax Application
A user-assigned name to help manage the application.
Default value: true
Specifies whether the connection can be used.
Possible values: [Latency
, Chicago, IL
, Ashburn, VA
, San Jose, CA
, Sydney, Australia
, Amsterdam, Netherlands
, London, UK
, Toronto, Canada
, Vancouver, Canada
, Frankfurt, Germany
]
Default value: Latency
Latency
directs Telnyx to route media through the site with the lowest round-trip time to the user's connection. Telnyx calculates this time using ICMP ping messages. This can be disabled by specifying a site to handle all media.
The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'.
The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'.
Possible values: <= 30
Specifies how many seconds to wait before timing out a webhook.
Specifies an email address where faxes sent to this application will be forwarded to (as pdf or tiff attachments)
inbound
object
When set, this will limit the number of concurrent inbound calls to phone numbers associated with this connection.
Specifies a subdomain that can be used to receive Inbound calls to a Connection, in the same way a phone number is used, from a SIP endpoint. Example: the subdomain "example.sip.telnyx.com" can be called from any SIP endpoint by using the SIP URI "sip:@example.sip.telnyx.com" where the user part can be any alphanumeric value. Please note TLS encrypted calls are not allowed for subdomain calls.
Possible values: [only_my_connections
, from_anyone
]
Default value: from_anyone
This option can be enabled to receive calls from: "Anyone" (any SIP endpoint in the public Internet) or "Only my connections" (any connection assigned to the same Telnyx user).
outbound
object
When set, this will limit the number of concurrent outbound calls to phone numbers associated with this connection.
Identifies the associated outbound voice profile.
Responses
200: Successful response
- application/json
401: Unauthorized
- application/json
403: Unauthorized
404: Fax does not exist
422: Unprocessable entity
Request samples
curl -L -X PATCH 'https://api.telnyx.com/v2/fax_applications/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"application_name": "fax-router",
"active": false,
"anchorsite_override": "Amsterdam, Netherlands",
"webhook_event_url": "https://example.com",
"webhook_event_failover_url": "https://failover.example.com",
"webhook_timeout_secs": 25,
"inbound": {
"channel_limit": 10,
"sip_subdomain": "example",
"sip_subdomain_receive_settings": "only_my_connections"
},
"outbound": {
"channel_limit": 10,
"outbound_voice_profile_id": "1293384261075731499"
}
}'
Response samples
{
"data": {
"id": "1293384261075731499",
"record_type": "fax_application",
"application_name": "fax-router",
"active": false,
"anchorsite_override": "Amsterdam, Netherlands",
"webhook_event_url": "https://example.com",
"webhook_event_failover_url": "https://failover.example.com",
"webhook_timeout_secs": 25,
"inbound": {
"channel_limit": 10,
"sip_subdomain": "example",
"sip_subdomain_receive_settings": "only_my_connections"
},
"outbound": {
"channel_limit": 10,
"outbound_voice_profile_id": "1293384261075731499"
},
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}
}
{
"errors": [
{
"code": "string",
"detail": "string",
"meta": {
"url": "string"
},
"title": "string",
"source": {
"pointer": "string"
}
}
]
}