Update a specific Variable.
A key and value pair that is specific to an Environment.
Update a specific Variable.
Path parameters
-
The SID of the Service to update the Variable resource under.
-
The SID of the Environment with the Variable resource to update.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^ZE[0-9a-fA-F]{32}$
. -
The SID of the Variable resource to update.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^ZV[0-9a-fA-F]{32}$
.
POST
/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid}
curl \
--request POST 'https://serverless.twilio.com/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid}' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'Key=update-key&Value=update-value'
Request example
{"Key"=>"update-key", "Value"=>"update-value"}
Response examples (200)
{
"key": "update-key",
"sid": "ZV00000000000000000000000000000000",
"url": "https://serverless.twilio.com/v1/Services/ZS00000000000000000000000000000000/Environments/ZE00000000000000000000000000000000/Variables/ZV00000000000000000000000000000000",
"value": "update-value",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"service_sid": "ZS00000000000000000000000000000000",
"date_created": "2018-11-10T20:00:00Z",
"date_updated": "2018-11-11T20:00:00Z",
"environment_sid": "ZE00000000000000000000000000000000"
}