ScheduleCollectionClient
Hierarchy
- ResourceCollectionClient
- ScheduleCollectionClient
Index
Properties
inheritedapifyClient
inheritedbaseUrl
inheritedhttpClient
optionalinheritedid
optionalinheritedparams
inheritedpublicBaseUrl
inheritedresourcePath
optionalinheritedsafeId
inheritedurl
Methods
create
Creates a new schedule.
Parameters
optionalschedule: Partial<Pick<Schedule, name | description | title | cronExpression | timezone | isEnabled | isExclusive | notifications> & { actions: DistributiveOptional<ScheduleAction, id>[] }>
The schedule data.
Returns Promise<Schedule>
The created schedule object.
list
Lists all schedules.
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: ScheduleCollectionListOptions = {}
Pagination and sorting options.
Returns PaginatedIterator<Schedule>
A paginated iterator of schedules.
Client for managing the collection of Schedules in your account.
Schedules are used to automatically start Actors or tasks at specified times. This client provides methods to list and create schedules.
https://docs.apify.com/platform/schedules