Creates a reload task for the app that runs when another task finishes with
the given status.
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 upstream task (onTaskId) must belong to the caller's tenant, and the caller
needs read access to the upstream task's app. The server adds the upstream task's
spaceId and appId to the event correlations of the created task. If the
upstream task is deleted later, this task no longer runs.
Errors:
400CHO-001: the request body or the path id is invalid. This includes a
name or description over its maximum length, and an onTaskStatus other
than succeeded, failed or any.
400CHO-016: onTaskId is not a UUID, or no such task exists in the caller's tenant.
403CHO-003: the app does not exist, is not accessible, or the caller
lacks app:reload on it.
CHO-015: the caller cannot read the upstream task's app.
422CHO-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.
424CHO-013: the task could not be stored. Nothing is created.
404CHO-004: the upstream task was deleted while the request was processed.
Creates a reload task for the app that runs when another task finishes with the given status. This is a convenience wrapper over
POST /scheduling/tasks; the full task definition is generated server-side. UsePOST /scheduling/tasksfor advanced configurations.The upstream task (
onTaskId) must belong to the caller's tenant, and the caller needs read access to the upstream task's app. The server adds the upstream task'sspaceIdandappIdto the event correlations of the created task. If the upstream task is deleted later, this task no longer runs.Errors:
400CHO-001: the request body or the pathidis invalid. This includes anameordescriptionover its maximum length, and anonTaskStatusother thansucceeded,failedorany.400CHO-016:onTaskIdis not a UUID, or no such task exists in the caller's tenant.403CHO-003: the app does not exist, is not accessible, or the caller lacksapp:reloadon it.CHO-015: the caller cannot read the upstream task's app.422CHO-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.424CHO-013: the task could not be stored. Nothing is created.404CHO-004: the upstream task was deleted while the request was processed.