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.
Path parameters
-
The
sid
orunique_name
of the Service resource to update.
Body
-
FriendlyName string
A descriptive string that you create to describe the Service resource. It can be a maximum of 255 characters.
-
IncludeCredentials boolean
Whether to inject Account credentials into a function invocation context.
-
UiEditable boolean
Whether the Service resource's properties and subresources can be edited via the UI. The default value is
false
.
POST /v1/Services/{Sid}
curl \
-X POST https://serverless.twilio.com/v1/Services/{Sid} \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'FriendlyName=string&IncludeCredentials=true&UiEditable=true'
Request example
{
"FriendlyName": "string",
"IncludeCredentials": true,
"UiEditable": true
}
Request examples
{
"FriendlyName": "string",
"IncludeCredentials": true,
"UiEditable": true
}
Response examples (200)
{
"account_sid": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"domain_base": "string",
"friendly_name": "string",
"include_credentials": true,
"links": {},
"sid": "string",
"ui_editable": true,
"unique_name": "string",
"url": "https://example.com"
}
Response examples (200)
{
"account_sid": "string",
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"domain_base": "string",
"friendly_name": "string",
"include_credentials": true,
"links": {},
"sid": "string",
"ui_editable": true,
"unique_name": "string",
"url": "https://example.com"
}