Update environment variable in Actor version
Changed onUpdates Actor environment variable using values specified by an EnvVar object passed as JSON in the POST payload. If the object does not define a specific property, its value will not be updated.
The request needs to specify the Content-Type: application/json HTTP header!
When providing your API authentication token, we recommend using the request's Authorization header, rather than the URL. For details, see Authentication.
The response is the EnvVar object as returned by the Get environment variable of Actor version endpoint.
Request
- Base URLhttps://api.apify.com
- Auth
- HTTP bearer
- or API key in query parameter token
Path parameters
Actor ID or the username of the Actor owner and the Actor name, separated by a tilde (~).
Actor version.
The name of the environment variable
Request body
Example request
{
"name": "MY_ENV_VAR",
"value": "my-value"
}Response
Example response
{
"data": {
"name": "MY_ENV_VAR",
"value": "my-value",
"valueHash": "a1b2c3"
}
}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
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
- info
added the optional property
/to the response with the status
- info