Update a specific Service resource.
The top-level resource for a Serverless application, which serves as a container for the application environments.
Update a specific Service resource.
Body
-
Whether to inject Account credentials into a function invocation context.
-
A descriptive string that you create to describe the Service resource. It can be a maximum of 255 characters.
-
Whether the Service resource's properties and subresources can be edited via the UI. The default value is
false
.
POST
/v1/Services/{Sid}
curl \
--request POST 'https://serverless.twilio.com/v1/Services/{Sid}' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'UiEditable=true&FriendlyName=service-friendly-update&IncludeCredentials=true'
Request example
{"UiEditable"=>true, "FriendlyName"=>"service-friendly-update", "IncludeCredentials"=>true}
Response examples (200)
{
"sid": "ZS00000000000000000000000000000000",
"url": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000",
"links": {
"assets": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000/Assets",
"builds": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000/Builds",
"functions": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000/Functions",
"environments": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000/Environments"
},
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"domain_base": "service-unique-update-1234",
"ui_editable": true,
"unique_name": "service-unique-update",
"date_created": "2018-11-10T20:00:00Z",
"date_updated": "2018-11-10T20:00:00Z",
"friendly_name": "service-friendly-update",
"include_credentials": true
}