Update Actor version
Changed onUpdates Actor version using values specified by a Version 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 Version object as returned by the Get 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
{
"versionNumber": "1.6",
"envVars": [
{
"name": "MY_ENV_VAR",
"value": "my-value"
}
],
"buildTag": "latest",
"sourceFiles": [
{
"format": "TEXT",
"content": "console.log('This is the main.js file');",
"name": "src/main.js"
}
]
}Response
Example response
{
"data": {
"versionNumber": "0.0",
"envVars": [
{
"name": "MY_ENV_VAR",
"value": "my-value",
"valueHash": "a1b2c3"
}
],
"buildTag": "latest",
"sourceFiles": [
{
"format": "TEXT",
"content": "console.log('This is the main.js file');",
"name": "src/main.js"
}
]
}
}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
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