ActorVersionCollectionClient
Hierarchy
- ResourceCollectionClient
- ActorVersionCollectionClient
Index
Properties
inheritedapifyClient
inheritedbaseUrl
inheritedhttpClient
optionalinheritedid
optionalinheritedparams
inheritedpublicBaseUrl
inheritedresourcePath
optionalinheritedsafeId
inheritedurl
Methods
create
Creates a new Actor version.
Parameters
actorVersion: ActorVersion
The Actor version data.
Returns Promise<FinalActorVersion>
The created Actor version object.
list
Lists all Actor versions.
Awaiting the return value (as you would with a Promise) will result in a single API call. The amount of fetched items in a single API call is limited.
const paginatedList = await client.list(options);Asynchronous iteration is also supported. This will fetch additional pages if needed until all items are retrieved.
for await (const singleItem of client.list(options)) {...}Parameters
options: ActorVersionCollectionListOptions = {}
Pagination options.
Returns Promise<ActorVersionListResult> & AsyncIterable<FinalActorVersion, any, any>
A paginated iterator of Actor versions.
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.
https://docs.apify.com/platform/actors/development/actor-definition/versions