ScheduleClient
Hierarchy
- ResourceClient
- ScheduleClient
Index
Properties
inheritedapifyClient
inheritedbaseUrl
inheritedhttpClient
optionalinheritedid
optionalinheritedparams
inheritedpublicBaseUrl
Added in 2.17.0
inheritedresourcePath
optionalinheritedsafeId
inheritedurl
Methods
delete
Deletes the schedule.
Parameters
options: TimeoutOptions = {}
Request options
Returns Promise<void>
See more at https://docs.apify.com/api/v2/schedule-delete
get
Retrieves the schedule.
Parameters
options: TimeoutOptions = {}
Request options
Returns Promise<undefined | Schedule>
The schedule object, or
undefinedif it does not exist.See more at https://docs.apify.com/api/v2/schedule-get
getLog
Retrieves the schedule's log.
Parameters
options: TimeoutOptions = {}
Request options
Returns Promise<ScheduleLogEntry[]>
The schedule log, one entry per invocation.
See more at https://docs.apify.com/api/v2/schedule-log-get
update
Updates the schedule with the specified fields.
Parameters
newFields: Partial<Pick<Schedule, name | description | title | timezone | cronExpression | isEnabled | isExclusive | notifications> & { actions: DistributiveOptional<ScheduleAction, id>[] }>
Fields to update.
options: TimeoutOptions = {}
Request options
Returns Promise<Schedule>
The updated schedule object.
See more at https://docs.apify.com/api/v2/schedule-put
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.