Function createTask

  • Creates a new task for the specified resource. The task is owned by the requesting user and is disabled by default until explicitly enabled. The resourceId is derived automatically from the task's state definitions and cannot be set directly in the request body.

    Parameters

    • query: { migrateFrom?: string }

      an object with query parameters

      • OptionalmigrateFrom?: string

        When provided, specifies the unique identifier of a legacy reload-task to migrate from the previous scheduling system.

    • body: tasks.Task

      an object with the body content

    • Optionaloptions: ApiCallOptions

    Returns Promise<tasks.CreateTaskHttpResponse>

    CreateTaskHttpError