Update an environment variable
Changed onUpdates 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.
Request
- Base URLhttps://api.checklyhq.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
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
Request body
Example request
{
"key": "API_KEY"
}Response
Successful
Example response
{
"key": "API_KEY"
}Changes
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- breaking
request body became required
- breaking
for the
pathrequest parameterkey, the minLength was increased from0to1 - breaking
for the
headerrequest parameterx-checkly-account, the format changed from no format touuid - breaking
the
request property's minLength was increased from0to1 - breaking
the
request property's minLength was increased from0to1 - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
added the non-success response with the status
- info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the
response's property default valuefalsewas removed for the status - info
the
response's property default valuefalsewas removed for the status - info
removed the
401.00enum value from theresponse property for the response status - info
removed the
403.00enum value from theresponse property for the response status - info
removed the
404.00enum value from theresponse property for the response status - info
removed the
429.00enum value from theresponse property for the response status - info
removed the
Forbiddenenum value from theresponse property for the response status - info
removed the
Not Foundenum value from theresponse property for the response status - info
removed the
Too Many Requestsenum value from theresponse property for the response status - info
removed the
Unauthorizedenum value from theresponse property for the response status
- breaking