Rerun a task

/tasks/{task_id}/actions/clone

For general information on the API, including formatting, parameters, and pagination, please see the API Overview.

This call reruns the specified task. Once rerun, the task can either be in draft mode or immediately ran, using the action query parameter (see below).

Request

https://cavatica-api.sbgenomics.com/v2/tasks/{task_id}/actions/clone

Example request

POST /v2/tasks/bd5e95d9-12b3-789c-45b6-34d8696571a9/actions/clone" HTTP/1.1
Host: cavatica-api.sbgenomics.com
X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f74
curl  -s -H "X-SBG-Auth-Token: 6282d5e2121d43e7900e9d52b15845e7" -H "content-type: application/json" -X POST "https://cgc-api.sbgenomics.com/v2/tasks/bd5e95d9-12b3-789c-45b6-34d8696571a9/actions/run"

Header Fields

NameDescription
X-SBG-Auth-Token
required
Your CAVATICA authentication token.

Path parameters

NameDescription
task_idThe ID of the task you are rerunning on.

Query parameters

NameData typeDescription
actionstringSet this to run in order to create a draft task and execute it immediately.

Response

See a list of CAVATICA-specific response codes that may be contained in the body of the response.

Example response body

{
    "href": "https://cavatica-api.sbgenomics.com/v2/tasks/bd5e95d9-12b3-789c-45b6-34d8696571a9",
    "id": "bd5e95d9-12b3-789c-45b6-34d8696571a9",
    "name": "VarsScan2 WF from BAM test",
    "status": "DRAFT",
    "project": "rfranklin/rfranklin-s-demo-project",
    "app": "rfranklin/rfranklin-s-demo-project/varscan2-workflow-from-bam-v2-3-9/0",
    "type": "v2",
    "created_by": "rfranklin",
    "start_time": "2018-07-03T14:24:10Z",
    "batch": false,
    "use_interruptible_instances": false,
    "errors": [],
    "warnings": [],
    "inputs": {
        "input_fasta_file": {
            "path": "567890abc9b0307bc0414164",
            "class": "File"
        },
        "Normal_BAM": {
            "path": "567890abc1e5339df0414123",
            "class": "File"
        },
        "Tumor_BAM": {
            "path": "567890abc4f3066bc3750174",
            "class": "File"
        }
    },
    "outputs": {
        "High_Confidence_INDELs": {},
        "empty_contigs": {},
        "High_Confidence_SNPs": {}
    },
    "created_time": "2018-07-03T14:24:10Z"
}
Language