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 'FriendlyName=service-friendly-update&IncludeCredentials=true&UiEditable=true'
Request example
{"FriendlyName" => "service-friendly-update", "IncludeCredentials" => true, "UiEditable" => true}
Response examples (200)
{
"sid": "ZS00000000000000000000000000000000",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"friendly_name": "service-friendly-update",
"unique_name": "service-unique-update",
"include_credentials": true,
"ui_editable": true,
"domain_base": "service-unique-update-1234",
"date_created": "2018-11-10T20:00:00Z",
"date_updated": "2018-11-10T20:00:00Z",
"url": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000",
"links": {
"environments": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000/Environments",
"functions": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000/Functions",
"assets": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000/Assets",
"builds": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000/Builds"
}
}