Actor versions
The API endpoints in this section allow you to manage your Apify Actors versions.
- The version object contains the source code of a specific version of an Actor.
- The
sourceTypeproperty indicates where the source code is hosted, and based on its value theVersionobject has the following additional property:
| Value | Description |
|---|---|
"SOURCE_FILES" | Source code is comprised of multiple files specified in the sourceFiles array. Each item of the array is an object with the following fields:- name: File path and name- format: Format of the content, can be either "TEXT" or "BASE64"- content: File contentSource files can be shown and edited in the Apify Console's Web IDE. |
"GIT_REPO" | Source code is cloned from a Git repository, whose URL is specified in the gitRepoUrl field. |
"TARBALL" | Source code is downloaded using a tarball or Zip file from a URL specified in the tarballUrl field. |
"GITHUB_GIST" | Source code is taken from a GitHub Gist, whose URL is specified in the gitHubGistUrl field. |
For more information about source code and Actor versions, check out Source code in Actors documentation.
Get list of Actor versions
/actors/{actorId}/versionsCreate Actor version
/actors/{actorId}/versionsGet Actor version
/actors/{actorId}/versions/{versionNumber}Update Actor version
/actors/{actorId}/versions/{versionNumber}Update Actor version (POST)
/actors/{actorId}/versions/{versionNumber}Delete Actor version
/actors/{actorId}/versions/{versionNumber}Update Actor version build on push
/actors/{actorId}/versions/{versionNumber}/build-on-pushGet list of environment variables of Actor version
/actors/{actorId}/versions/{versionNumber}/env-varsCreate environment variable in Actor version
/actors/{actorId}/versions/{versionNumber}/env-varsGet environment variable of Actor version
/actors/{actorId}/versions/{versionNumber}/env-vars/{envVarName}Update environment variable in Actor version
/actors/{actorId}/versions/{versionNumber}/env-vars/{envVarName}Update environment variable in Actor version (POST)
/actors/{actorId}/versions/{versionNumber}/env-vars/{envVarName}Delete environment variable from Actor version
/actors/{actorId}/versions/{versionNumber}/env-vars/{envVarName}