Skip to main content
PUT
/
sip
/
tenants
/
{tenant_id}
/
sip-trunks
/
{trunk_id}
Update Sip Trunk
curl --request PUT \
  --url https://api.example.com/sip/tenants/{tenant_id}/sip-trunks/{trunk_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "phone_numbers": [
    "<string>"
  ],
  "auth_username": "<string>",
  "auth_password": "<string>",
  "provider_config": {},
  "status": "<string>"
}
'
{
  "name": "<string>",
  "trunk_type": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "sip_uri": "<string>",
  "status": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "phone_numbers": [
    "<string>"
  ],
  "provider": "<string>",
  "livekit_trunk_id": "<string>",
  "dispatch_rule_id": "<string>",
  "last_health_check": "2023-11-07T05:31:56Z",
  "metadata": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.mrassistant.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

tenant_id
string<uuid>
required
trunk_id
string<uuid>
required

Body

application/json

SIP trunk update model.

name
string | null
Required string length: 1 - 255
phone_numbers
string[] | null
auth_username
string | null
auth_password
string | null
provider_config
Provider Config · object
status
string | null

Response

Successful Response

SIP trunk response model.

name
string
required
Required string length: 1 - 255
trunk_type
string
required
Pattern: ^(inbound|outbound)$
id
string<uuid>
required
tenant_id
string<uuid>
required
sip_uri
string
required
status
string
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
phone_numbers
string[]
provider
string | null
livekit_trunk_id
string | null
dispatch_rule_id
string | null
last_health_check
string<date-time> | null
metadata
Metadata · object