Modify task inputs

This call enables you to modify 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.

Request

https://api.sbgenomics.com/v2/tasks/{task_id}/inputs
https://eu-api.sbgenomics.com/v2/tasks/{task_id}/inputs

Example request

GET /v2/tasks/08c5ce64-1551-4b7d-b054-63a1517bc7bb/inputs HTTP/1.1
Host: api.sbgenomics.com
X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f74
curl  -s -H "X-SBG-Auth-Token: 6282d5e2121d43e7900e9d52b15845e7" -H "content-type: application/json" -X GET "https://api.sbgenomics.com/v2/tasks/08c5ce64-1551-4b7d-b054-63a1517bc7bb/inputs"
from sevenbridges import Api

api = Api(url='https://api.sbgenomics.com/v2',
          token='3259c50e1ac5426ea8f1273259740f74')

task = api.tasks.get(id='08c5ce64-1551-4b7d-b054-63a1517bc7bb')

task.inputs['cuffdiff_zip'] = api.files.get(id='562785e6e4b00a1d67a8b1aa')

# send PATCH request to SB API, same as changing any other field
task.save()

print(task.inputs)

Header Fields

Name

Description

X-SBG-Auth-Token
required

Your Seven Bridges Platform 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 on task inputs.

Example request body

{
        "cuffdiff_zip": {
            "class": "File",
            "path": "562785e6e4b00a1d67a8b1aa",
            "name": "new-file-name.vcf"
        }
}

Response

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

Example response body

{
  "dispersion_threshold": null,
  "cuffdiff_zip": {
    "class": "File",
    "path": "562785e6e4b00a1d67a8b1aa",
    "name": "new-file-name.vcf"
  },
  "density_threshold": null,
  "thresholds_off": null
}