Skip to main content

Update an FQDN

PUT 
/security/fqdns/:id

Updates the specified FQDN with the values of the parameters passed. Any parameters not included in the request will be left unchanged.

Request

Path Parameters

    id stringrequired

    ID of FQDN to update

Body

required

Updated FQDN object

    connection_id stringrequired
    fqdn stringrequired
    port integer
    dns_record_type stringrequired

    Possible values: [a, srv]

    the DNS record type for the FQDN. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. If the DNS record type is 'a' and a port is not specified, 5060 will be used.

Responses

200: FQDN updated response

400: Bad request

401: Unauthorized

Request samples


curl -L -X PUT 'https://api.telnyx.com/security/fqdns/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"connection_id": "string",
"fqdn": "string",
"port": 0,
"dns_record_type": "a"
}'

Response samples


{
"id": "string",
"connection_id": "string",
"fqdn": "string",
"port": 0,
"dns_record_type": "a"
}