Function reloadTasksResourceOnTimeSchedule

  • Creates a reload task for the app that runs on a recurring time schedule. This is a convenience wrapper over POST /scheduling/tasks; the full task definition is generated server-side. Use POST /scheduling/tasks for advanced configurations.

    The schedule is evaluated in timezone. The first run is the next occurrence of recurrence after the task is created; creating a task never runs it immediately. A task is created disabled unless enabled is true.

    Errors:

    • 400 CHO-001: the request body or the path id is invalid. This includes a name or description over its maximum length.
    • 400 CHO-017: the schedule was rejected: recurrence or timezone is invalid, endDateTime is not after startDateTime, or endDateTime is in the past.
    • 403 CHO-003: the app does not exist, is not accessible, or the caller lacks app:reload on it.
    • 404: not returned for a missing app, which gets 403 as above. Kept for compatibility.
    • 422 CHO-014: the app already has the maximum number of tasks. CHO-018: the caller has reached the per-user task quota, when one is configured.
    • 424 CHO-013: the task could not be stored. Nothing is created.
    • 503 CHO-024: the scheduler is temporarily unavailable. Nothing is created.

    Parameters

    Returns Promise<ReloadTasksResourceOnTimeScheduleHttpResponse>

    ReloadTasksResourceOnTimeScheduleHttpError