ScheduleClient
Hierarchy
- ResourceClient
- ScheduleClient
Index
Properties
inheritedapifyClient
inheritedbaseUrl
inheritedhttpClient
optionalinheritedid
optionalinheritedparams
inheritedpublicBaseUrl
inheritedresourcePath
optionalinheritedsafeId
inheritedurl
Methods
delete
Deletes the schedule.
Returns Promise<void>
get
Retrieves the schedule.
Returns Promise<undefined | Schedule>
The schedule object, or
undefinedif it does not exist.
getLog
Retrieves the schedule's log.
Returns Promise<undefined | string>
The schedule log as a string, or
undefinedif it does not exist.
update
Updates the schedule with the specified fields.
Parameters
newFields: Partial<Pick<Schedule, name | description | title | cronExpression | timezone | isEnabled | isExclusive | notifications> & { actions: DistributiveOptional<ScheduleAction, id>[] }>
Fields to update.
Returns Promise<Schedule>
The updated schedule object.
Client for managing a specific Schedule.
Schedules are used to automatically start Actors or tasks at specified times. This client provides methods to get, update, and delete schedules, as well as retrieve schedule logs.
https://docs.apify.com/platform/schedules