• Parameters

    • task_id: string
    • Optionaloptions: {
          payload: Record<string, string>;
          query?: undefined;
      } & {
          headers?: Headers;
          query?: {
              [key: string]:
                  | string
                  | number
                  | boolean
                  | (
                      | string
                      | number
                      | null
                      | undefined)[]
                  | null
                  | undefined;
          };
      }
    • OptionalsdkOptions: SDKOptions

    Returns Promise<JSONFetchResponse<{
        code: "Updated";
        DATA_TYPE: "result";
        message: string;
        request_id: string;
        resource: `/task/${string}/cancel`;
    }>>