ActorVersionCollectionClient
Hierarchy
- ResourceCollectionClient
- ActorVersionCollectionClient
Index
Properties
inheritedapifyClient
inheritedbaseUrl
inheritedhttpClient
optionalinheritedid
optionalinheritedparams
inheritedpublicBaseUrl
Added in 2.17.0
inheritedresourcePath
optionalinheritedsafeId
inheritedurl
Methods
create
Creates a new Actor version.
Parameters
actorVersion: Version
The Actor version data.
options: TimeoutOptions = {}
Request options
Returns Promise<FinalVersion>
The created Actor version object.
See more at https://docs.apify.com/api/v2/act-versions-post
list
Lists all Actor versions.
The endpoint returns every version in one response, so awaiting the return value (as you would with a Promise) gets the whole list.
const { items } = await client.list();Asynchronous iteration is also supported, and yields the versions one by one.
for await (const singleItem of client.list()) {...}Parameters
options: TimeoutOptions = {}
Request options
Returns Promise<ActorVersionListResult> & AsyncIterable<FinalVersion, any, any>
The Actor versions, awaitable as a whole list or iterable one by one.
See more at https://docs.apify.com/api/v2/act-versions-get
Client for managing the collection of Actor versions.
Actor versions represent specific builds or snapshots of an Actor's code. This client provides methods to list and create versions for a specific Actor.