Update an environment variable
Updates an environment variable. Uses the "key" field as the ID for updating. Only updates value, locked, and secret properties. Once a value is set to secret, it cannot be unset.
Path parameters
The key of the environment variable (this value cannot be changed).
The key of the environment variable (this value cannot be changed).
Headers
Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general
Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general
Request body
Example request
{
"key": "API_KEY"
}Response
Successful
Example response
{
"key": "API_KEY"
}Changes
Changed in 1 of the 4 revisions of this API.5217
- ▲
request body became required
request-body-became-required
- ▲
for the
pathrequest parameterkey, the minLength was increased from0to1request-parameter-min-length-increased
- ▲
for the
headerrequest parameterx-checkly-account, the type/format was changed fromstring/tostring/uuidrequest-parameter-type-changed
- ▲
the
keyrequest property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
valuerequest property's minLength was increased from0to1request-property-min-length-increased
- ●
removed the optional property
attributesfrom the response with the401statusresponse-optional-property-removed
- ●
removed the optional property
attributesfrom the response with the429statusresponse-optional-property-removed
- ○
added the non-success response with the status
400response-non-success-status-added
- ○
the response property
lockedbecame required for the status200response-property-became-required
- ○
the response property
messagebecame required for the status401response-property-became-required
- ○
the response property
messagebecame required for the status403response-property-became-required
- ○
the response property
messagebecame required for the status404response-property-became-required
- ○
the response property
messagebecame required for the status429response-property-became-required
- ○
the response property
secretbecame required for the status200response-property-became-required
- ○
the
lockedresponse's property default valuefalsewas removed for the status200response-property-default-value-removed
- ○
the
secretresponse's property default valuefalsewas removed for the status200response-property-default-value-removed
- ○
removed the
401.00enum value from thestatusCoderesponse property for the response status401response-property-enum-value-removed
- ○
removed the
403.00enum value from thestatusCoderesponse property for the response status403response-property-enum-value-removed
- ○
removed the
404.00enum value from thestatusCoderesponse property for the response status404response-property-enum-value-removed
- ○
removed the
429.00enum value from thestatusCoderesponse property for the response status429response-property-enum-value-removed
- ○
removed the
Forbiddenenum value from theerrorresponse property for the response status403response-property-enum-value-removed
- ○
removed the
Not Foundenum value from theerrorresponse property for the response status404response-property-enum-value-removed
- ○
removed the
Too Many Requestsenum value from theerrorresponse property for the response status429response-property-enum-value-removed
- ○
removed the
Unauthorizedenum value from theerrorresponse property for the response status401response-property-enum-value-removed
This revision also has 566 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲