Skip to main content

Create environment variable

POST 

/v2/acts/:actorId/versions/:versionNumber/env-vars

ClientsApify API Python Client ReferenceCreates an environment variable of an Actor using values specified in a 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 endpoint.

Request

Responses

Response Headers
    Location