Function getTasks

  • Retrieves a list of the tasks that the requesting user has access to.

    Parameters

    • query: {
          limit?: number;
          page?: string;
          resourceId: string;
          sort?: "+createdAt" | "-createdAt" | "+updatedAt" | "-updatedAt";
      }

      an object with query parameters

      • Optionallimit?: number

        The maximum number of resources to return for a request.

      • Optionalpage?: string

        The page cursor.

      • resourceId: string

        Required. Filter tasks by its target resource ID. If not provided, request will fail with 400 (Bad Request).

      • Optionalsort?: "+createdAt" | "-createdAt" | "+updatedAt" | "-updatedAt"

        The property of a resource to sort on (default sort is -updatedAt). A property must be prefixed by + or - to indicate ascending or descending sort order respectively.

    • Optionaloptions: ApiCallOptions

    Returns Promise<GetTasksHttpResponse>

    GetTasksHttpError