edit/schedule_2

Method description

Use this method to edit schedule: change dates and times of scheduled tools and reports.

Method parameters

Parameter Type Description Default
Mandatory
type enum Parameter description and available values, see here
target_id int ID of an object to get a schedule for
schedule array of Schedule Days and times to run tools and send reports

Schedule Type

Parameter Type Description Default
object Schedule
times array of Schedule.Time Hour and minute to run a tool and send reports
days set

Days

Available values:

  • ALL - every day
  • YANDEX_UPDATE - after Yandex updates
  • AFTER_CHECK - after keyword rank check
  • MONDAY - Monday
  • TUESDAY - Tuesday
  • WEDNESDAY - Wednesday
  • THURSDAY - Thursday
  • FRIDAY - Friday
  • SATURDAY - Saturday
  • SUNDAY - Sunday
  • 0..27 - dates (any date from 1 to 27)
  • LAST_OF_MONTH - last day of month

Тип Schedule.Time

Parameter Type Description Default
object Schedule.Time
hour enum

An hour to run a tool or send a report

Available values:

  • ALL - every hour
  • EVERY_FOUR - every 4 hours
  • 0..23 - number from 0 to 23
minute enum

A minute to run a tool or send a report

Available values:

  • ALL - every minute
  • EVERY_FIVE - every 5 minutes
  • EVERY_TEN - every 10 minutes
  • 0..59 - number from 0 to 59

Посмотреть в API Explorer