メニュー

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?

Asset

Assets are static files that you can host at a particular domain in an Environment.

The steps to create Assets are as follows:

  1. Create an Asset (this resource)
  2. Create an Asset Version

We will need the Asset Version SID to include this Asset in a Build.

Asset properties

Names in PHP format
sid
sid<ZH> Not PII

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

accountSid
sid<AC> Not PII

The SID of the Account that created the Asset resource.

serviceSid
sid<ZS> Not PII

The SID of the Service that the Asset resource is associated with.

friendlyName
文字列 PII MTL: 7 DAYS

The string that you assigned to describe the Asset resource.

dateCreated
date_time<iso8601> Not PII

The date and time in GMT when the Asset resource was created specified in ISO 8601 format.

dateUpdated
date_time<iso8601> Not PII

The date and time in GMT when the Asset resource was last updated specified in ISO 8601 format.

url
url Not PII

The absolute URL of the Asset resource.

links
uri_map Not PII

The links to the nested resources of the asset.

Create an Asset resource

post
https://serverless.twilio.com/v1/Services/{ServiceSid}/Assets
パラメーター
Names in None format
service_sid
必須
post sid_like<ZS> Not PII

The SID of the Service to create the Asset resource under.

friendly_name
必須
post 文字列 PII MTL: 7 DAYS

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

        
        
        
        

        Fetch an Asset resource

        GET
        https://serverless.twilio.com/v1/Services/{ServiceSid}/Assets/{Sid}
        パラメーター
        Names in None format
        service_sid
        必須
        GET sid_like<ZS> Not PII

        The SID of the Service to fetch the Asset resource from.

        sid
        必須
        GET sid<ZH> Not PII

        The SID of the Asset resource to fetch.

              
              
              
              

              Read multiple Asset resources

              GET
              https://serverless.twilio.com/v1/Services/{ServiceSid}/Assets
              パラメーター
              Names in None format
              service_sid
              必須
              GET sid_like<ZS> Not PII

              The SID of the Service to read the Asset resources from.

                    
                    
                    
                    

                    Update an Asset resource

                    post
                    https://serverless.twilio.com/v1/Services/{ServiceSid}/Assets/{Sid}
                    パラメーター
                    Names in None format
                    service_sid
                    必須
                    post sid_like<ZS> Not PII

                    The SID of the Service to update the Asset resource from.

                    sid
                    必須
                    post sid<ZH> Not PII

                    The SID of the Asset resource to update.

                    friendly_name
                    必須
                    post 文字列 PII MTL: 7 DAYS

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

                          
                          
                          
                          

                          Delete an Asset resource

                          削除する
                          https://serverless.twilio.com/v1/Services/{ServiceSid}/Assets/{Sid}
                          パラメーター
                          Names in None format
                          service_sid
                          必須
                          削除する sid_like<ZS> Not PII

                          The SID of the Service to delete the Asset resource from.

                          sid
                          必須
                          削除する sid<ZH> Not PII

                          The SID of the Asset resource to delete.

                                
                                
                                
                                
                                Rate this page:

                                ヘルプが必要ですか?

                                誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。