patch https://cgc-api.sbgenomics.com/v2
/tasks/{task_id}/inputs
This call returns enables the user to change just the inputs provided to the specified task. The task is referred to by its ID, which you can obtain by making the call to list all tasks you can access.
https://cgc-api.sbgenomics.com/v2/tasks/{task_id}/inputs
Request
Example request
PATCH /v2/tasks/08c5da64-1329-ba3e-b014-62a1617bc7db/inputs HTTP/1.1
Host: cgc-api.sbgenomics.com
X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74
curl -s -H "X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74" -H "content-type: application/json" -X PATCH "https://cgc-api.sbgenomics.com/v2/tasks/08c5da64-1329-ba3e-b014-62a1617bc7db/inputs"
Header Fields
Name | Description |
---|---|
X-SBG-Auth-Token required | Your CGC authentication token. |
Path parameters
Name | Description |
---|---|
task_id required | The ID of the task you are querying |
Query parameters
Name | Data type | Description |
---|---|---|
fields | string | Selector specifying a subset of fields to include in the response. |
Request body
In the body of the request, you should enter some or all of the key-value pairs contained in the input
object for the task. For details about how to specify a task input
, see the section of the API Overview on task inputs.
Example request body
{
"cuffdiff_zip": {
"class": "File",
"path": "562785c3d4b00a1d67a8b1da",
"name": "new-file-name.vcf"
}
}
Response
See a list of CGC-specific response codes that may be contained in the body of the response.
Example response body
{
"dispersion_threshold": null,
"cuffdiff_zip": {
"class": "File",
"path": "562785c3d4b00a1d67a8b1da",
"name": "new-file-name.vcf"
},
"density_threshold": null,
"thresholds_off": null
}