List tasks in a project (secondary method)

/projects/{project_owner}/{project}/tasks

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

This call lists the tasks in the specified project. It is an alias for the call GET tasks and redirects to that path.

https://cavatica-api.sbgenomics.com/v2/projects/{project_owner}/{project}/tasks

❗️

Alias call

Note that since this is an alias for another call, the call cannot be made straightforwardly from all applications. In particular, to send the call using cURL, use the cURL option -L to redirect the path of this call to https://api.sbgenomics.com/v2/files?project={project_owner}/{project.

Alternatively, to list all files, you can simply use the call GET tasks.

Request

Example request

👍

Referring to your project

Note that project_owner is always case-sensitive, and that project is not the project's name but its ID, or short name. For full details of identifying objects using the API, please see the API overview.

GET /v2/projects/RFranklin/my-project/tasks HTTP/1.1
Host: cavatica-api.sbgenomics.com
X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f74
curl -L "https://cgc-api.sbgenomics.com/v2/tasks?project=RFranklin/my-project"  -s -H "X-SBG-Auth-Token: 7942f56901534434a054dafc3813bc96" -H "content-type: application/json" -X GET "https://cavatica-api.sbgenomics.com/v2/projects/RFranklin/my-project/tasks"

Header Fields

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

Path parameters

NameDescription
projectThe short name of the project you are querying.
project_ownerThe owner of the project you are querying.

Query parameters

NameData typeDescription
fieldsstringSelector specifying a subset of fields to include in the response.

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?offset=0&limit=25&project=RFranklin/my-project",
  "items": [
    {
      "href": "https://cavatica-api.sbgenomics.com/v2/tasks/bd5e95d9-12b3-789c-45b6-34d8696571a9",
      "id": "bd5e95d9-12b3-789c-45b6-34d8696571a9",
      "name": "test run - 12-11-15 11:02:03",
      "project": "RFranklin/my-project"
    },
    {
      "href": "https://cavatica-api.sbgenomics.com/v2/tasks/723c949a-789c-12b3-45b6-b2dd0d8d0021",
      "id": "723c949a-789c-12b3-45b6-b2dd0d8d0021",
      "name": "test run - 12-11-15 11:52:45",
      "project": "RFranklin/my-project"
    }
  ],
  "links": []
}
{
  "href": "https://cavatica-api.sbgenomics.com/v2/tasks/?offset=0&limit=25&project=RFranklin/my-project",
  "items": [
    {
      "href": "https://cavatica-api.sbgenomics.com/v2/tasks/67f68072-45b6-12b3-789c-37be8b0f2f04",
      "id": "67f68072-45b6-12b3-789c-37be8b0f2f04",
      "name": "test run - 12-11-15 11:02:03",
      "project": "RFranklin/my-project"
    },
    {
      "href": "https://cavatica-api.sbgenomics.com/v2/tasks/f0b89de2-45b6-789c-12b3-05b832c576c6",
      "id": "f0b89de2-45b6-789c-12b3-05b832c576c6",
      "name": "test run - 12-11-15 11:52:45",
      "project": "RFranklin/my-project"
    }
  ],
  "links": []
}

Language