TrunkingV1OriginationUrl
post/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}

Request

  • Base URL
    https://trunking.twilio.com
  • URL
    https://trunking.twilio.com/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}
  • Auth
    HTTP basic

Path parameters

TrunkSidstring required

The SID of the Trunk from which to update the OriginationUrl.

Sidstring required

The unique string that we created to identify the OriginationUrl resource to update.

Request body application/x-www-form-urlencoded

Weightinteger

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.

Priorityinteger

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.

Enabledboolean

Whether the URL is enabled. The default is true.

FriendlyNamestring

A descriptive string that you create to describe the resource. It can be up to 64 characters long.

SipUrlstring uri

The SIP address you want Twilio to route your Origination calls to. This must be a sip: schema. sips is NOT supported.

Response

OK

account_sidstring nullable

The SID of the Account that created the OriginationUrl resource.

sidstring nullable

The unique string that we created to identify the OriginationUrl resource.

trunk_sidstring nullable

The SID of the Trunk that owns the Origination URL.

weightinteger

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.

enabledboolean nullable

Whether the URL is enabled. The default is true.

sip_urlstring uri nullable

The SIP address you want Twilio to route your Origination calls to. This must be a sip: schema.

friendly_namestring nullable

The string that you assigned to describe the resource.

priorityinteger

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.

date_createdstring date-time nullable

The date and time in GMT when the resource was created specified in RFC 2822 format.

date_updatedstring date-time nullable

The date and time in GMT when the resource was last updated specified in RFC 2822 format.

urlstring uri nullable

The absolute URL of the resource.

Changes

    • info

      the response's property default value 0 was added for the status

    • info

      the response's property default value 0 was added for the status

    • info

      api tag TrunkingV1OriginationUrl added