- update(task_id, options?, sdkOptions?): Promise<JSONFetchResponse<{
code: "Updated";
DATA_TYPE: "result";
message: string;
request_id: string;
resource: `/task/${string}/cancel`;
}>> Parameters
- task_id: string
Optional
options: {
payload: Record<string, string>;
query?: undefined;
} & {
headers?: Headers;
query?: {
[key: string]:
| string
| number
| boolean
| (
| string
| number
| null
| undefined)[]
| null
| undefined;
};
}Optional
sdkOptions: SDKOptions
Returns Promise<JSONFetchResponse<{
code: "Updated";
DATA_TYPE: "result";
message: string;
request_id: string;
resource: `/task/${string}/cancel`;
}>>
See
https://docs.globus.org/api/transfer/task/#update_task_by_id