Skip to main content

Attach connections to an outbound profile

PUT 
/termination/endpoints/:id/actions/attach_connections

Attaches the specified connections to an outbound profile if they are not already attached. Note that this endpoint never removes connections already attached.

Request

Path Parameters

    id stringrequired

    ID of outbound profile to update

Body

required

IDs of connections to attach to the outbound profile

    connection_ids string[]required

Responses

200: Outbound Profile updated response

400: Bad request

401: Unauthorized

Request samples


curl -L -X PUT 'https://api.telnyx.com/termination/endpoints/:id/actions/attach_connections' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"connection_ids": [
"string"
]
}'

Response samples


{
"id": "string",
"user_id": "string",
"connections": [
{}
],
"name": "string",
"traffic_type": 1,
"service_plan": 4,
"cps_limit": 100,
"ports": 0,
"translation_rule": "string",
"active": true,
"cps_limit_increase": 0,
"tag_list": [
"string"
],
"usage_payment_method": "rate-deck",
"custom_rate_deck": false,
"rate_deck_url": "string",
"whitelisted_destination_format": "alpha3",
"whitelisted_destinations": [
"US",
"BR",
"AU"
],
"max_destination_rate": 0,
"connection_id": "string",
"call_recording_type": "all",
"call_recording_phone_numbers": [
"string"
],
"call_recording_format": "wav",
"call_recording_channels": "single",
"daily_spend_limit": "string",
"daily_spend_limit_enabled": false,
"billing_group_id": "string"
}