Assets are static files that you can host at a particular domain in an Environment.
The steps to create Assets are as follows:
We will need the Asset Version SID to include this Asset in a Build.
The unique string that we created to identify the Asset resource.
^ZH[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID of the Account that created the Asset resource.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID of the Service that the Asset resource is associated with.
^ZS[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The string that you assigned to describe the Asset resource. It can be a maximum of 255 characters.
The date and time in GMT when the Asset resource was created specified in ISO 8601 format.
The date and time in GMT when the Asset resource was last updated specified in ISO 8601 format.
The URLs of the Asset resource's nested resources.
POST https://serverless.twilio.com/v1/Services/{ServiceSid}/Assets
The SID of the Service to create the Asset resource under.
application/x-www-form-urlencoded
A descriptive string that you create to describe the Asset resource. It can be a maximum of 255 characters.
GET https://serverless.twilio.com/v1/Services/{ServiceSid}/Assets/{Sid}
The SID that identifies the Asset resource to fetch.
^ZH[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
GET https://serverless.twilio.com/v1/Services/{ServiceSid}/Assets
The SID of the Service to read the Asset resources from.
How many resources to return in each list page. The default is 50, and the maximum is 1000.
1
Maximum: 1000
The page token. This is provided by the API.
POST https://serverless.twilio.com/v1/Services/{ServiceSid}/Assets/{Sid}
application/x-www-form-urlencoded
A descriptive string that you create to describe the Asset resource. It can be a maximum of 255 characters.
DELETE https://serverless.twilio.com/v1/Services/{ServiceSid}/Assets/{Sid}
The SID that identifies the Asset resource to delete.
^ZH[0-9a-fA-F]{32}$
Min length: 34
Max length: 34