Menu

Expand
Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

ConnectionPolicy Resource

The ConnectionPolicies resource describes a list of URI Entries that are used to route Origination traffic to a PSTN Carrier over a BYOC Trunk.

ConnectionPolicy properties

Resource Properties in REST API format
account_sid
sid<AC> Not PII

The SID of the Account that created the Connection Policy resource.

sid
sid<NY> Not PII

The unique string that we created to identify the Connection Policy resource.

friendly_name
string Not PII

The string that you assigned to describe the resource.

date_created
date_time<iso8601> Not PII

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

date_updated
date_time<iso8601> Not PII

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

url
url Not PII

The absolute URL of the resource.

links
uri_map Not PII

The URLs of related resources.

Create a ConnectionPolicy resource

post
https://voice.twilio.com/v1/ConnectionPolicies
Parameters
Parameters in REST API format
friendly_name
Optional
post string Not PII

A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long.

Example 1
        
        
        
        

        Fetch a ConnectionPolicy resource

        get
        https://voice.twilio.com/v1/ConnectionPolicies/{Sid}
        Parameters
        Parameters in REST API format
        sid
        Path
        get sid<NY> Not PII

        The unique string that we created to identify the Connection Policy resource to fetch.

        Example 1
              
              
              
              

              Read multiple ConnectionPolicy resources

              get
              https://voice.twilio.com/v1/ConnectionPolicies
              Example 1
                    
                    
                    
                    

                    Update a ConnectionPolicy resource

                    post
                    https://voice.twilio.com/v1/ConnectionPolicies/{Sid}
                    Parameters
                    Parameters in REST API format
                    sid
                    Path
                    post sid<NY> Not PII

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

                    friendly_name
                    Optional
                    post string Not PII

                    A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long.

                    Example 1
                          
                          
                          
                          

                          Delete a ConnectionPolicy resource

                          delete
                          https://voice.twilio.com/v1/ConnectionPolicies/{Sid}
                          Parameters
                          Parameters in REST API format
                          sid
                          Path
                          delete sid<NY> Not PII

                          The unique string that we created to identify the Connection Policy resource to delete.

                          Example 1
                                
                                
                                
                                
                                Rate this page:

                                Need some help?

                                We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.