ScheduleClient
Hierarchy
- ResourceClient
- ScheduleClient
Index
Properties
inheritedapifyClient
inheritedbaseUrl
inheritedhttpClient
optionalinheritedid
optionalinheritedparams
inheritedpublicBaseUrl
inheritedresourcePath
optionalinheritedsafeId
inheritedurl
Methods
delete
Deletes the schedule.
Returns Promise<void>
See more at https://docs.apify.com/api/v2/schedule-delete
get
Retrieves the schedule.
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.
Returns Promise<undefined | string>
The schedule log as a string, or
undefinedif it does not exist.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 | cronExpression | timezone | isEnabled | isExclusive | notifications> & { actions: DistributiveOptional<ScheduleAction, id>[] }>
Fields to update.
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.