Update a specific Asset resource.
A wrapper that represents a static file and groups the different Versions of the static file.
Update a specific Asset resource.
Path parameters
-
The SID of the Service to update the Asset resource from.
-
The SID that identifies the Asset resource to update.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^ZH[0-9a-fA-F]{32}$
.
POST
/v1/Services/{ServiceSid}/Assets/{Sid}
curl \
--request POST 'https://serverless.twilio.com/v1/Services/{ServiceSid}/Assets/{Sid}' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'FriendlyName=asset-friendly-update'
Request example
{"FriendlyName"=>"asset-friendly-update"}
Response examples (200)
{
"sid": "ZH00000000000000000000000000000000",
"url": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000/Assets/ZH00000000000000000000000000000000",
"links": {
"asset_versions": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000/Assets/ZH00000000000000000000000000000000/Versions"
},
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"service_sid": "ZS00000000000000000000000000000000",
"date_created": "2018-11-10T20:00:00Z",
"date_updated": "2018-11-10T20:00:00Z",
"friendly_name": "asset-friendly-update"
}