Create environment variable in Actor version
Changed onCreates an environment variable of an Actor using values specified in an EnvVar object passed as JSON in the POST payload.
The request must specify name and value parameters (as strings) in the JSON payload and a Content-Type: application/json HTTP header.
{
"name": "ENV_VAR_NAME",
"value": "my-env-var"
}
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.
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