Update origination url
Network element entry points into your communications infrastructure
Path parameters
-
The SID of the Trunk from which to update the OriginationUrl.
-
The unique string that we created to identify the OriginationUrl resource to update.
Body
-
Enabled boolean
Whether the URL is enabled. The default is
true
. -
FriendlyName string
A descriptive string that you create to describe the resource. It can be up to 64 characters long.
-
Priority integer
The relative importance of the URI. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important URI.
-
SipUrl string(uri)
The SIP address you want Twilio to route your Origination calls to. This must be a
sip:
schema.sips
is NOT supported. -
Weight integer
The value that determines the relative share of the load the URI should receive compared to other URIs with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. URLs with higher values receive more load than those with lower ones with the same priority.
curl \
-X POST https://trunking.twilio.com/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid} \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'Enabled=true&FriendlyName=string&Priority=42&SipUrl=https%3A%2F%2Fexample.com&Weight=42'
{
"Enabled": true,
"FriendlyName": "string",
"Priority": 42,
"SipUrl": "https://example.com",
"Weight": 42
}
{
"Enabled": true,
"FriendlyName": "string",
"Priority": 42,
"SipUrl": "https://example.com",
"Weight": 42
}
{
"account_sid": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"enabled": true,
"friendly_name": "string",
"priority": 42,
"sid": "string",
"sip_url": "https://example.com",
"trunk_sid": "string",
"url": "https://example.com",
"weight": 42
}
{
"account_sid": "string",
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"enabled": true,
"friendly_name": "string",
"priority": 42,
"sid": "string",
"sip_url": "https://example.com",
"trunk_sid": "string",
"url": "https://example.com",
"weight": 42
}