GET api/tasks/{id}

Retrieves all tasks associated with a specific node or project ID, including assignment details.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The ID of the node or project to retrieve task details for. If 0, retrieves all accessible tasks.

integer

Required

Body Parameters

None.

Response Information

Resource Description

On success: HTTP 200 OK with a list of tasks including assignment and project metadata. On failure: HTTP 400 Bad Request with a generic error message.

SDTask
NameDescriptionTypeAdditional information
startDate

Task Start Date

date

None.

endDate

Task End Date

date

None.

overdue

Flag set if the task is overdue, this is based on endDate and status

boolean

None.

assignedUsers

Collection of ViewUserDTO

None.

assignedGroups

Collection of ViewGroupDTO

None.

children

A list of Child Tasks

Collection of SDTask

None.

projectName

Task Project Name

string

None.

parentName

Task Parent Name - Project/Task Name

string

None.

parentId

Project or Task Parent Id

integer

None.

projectStartDate

Project Start Date

date

None.

projectEndDate

Project End Date

date

None.

projectStatus

Project Status

string

None.

projectCode

Project Code

string

None.

projectMeta

Collection of projectMeta

None.

i_node

Unique database id of the item

integer

None.

f_node

Unique database id of the item's parent, this is needed sometimes to figure out the structure of the content

integer

None.

item

Name\Title of the item

string

None.

description

Description of the item

string

None.

creator

User details who created the item

ViewUserDTO

None.

status

Current status of the item

string

None.

Response Formats

application/json, text/json

Sample:
{
  "startDate": "2025-11-21T03:18:53.7257983+00:00",
  "endDate": "2025-11-21T03:18:53.7257983+00:00",
  "overdue": true,
  "assignedUsers": [
    {
      "userID": 1,
      "userName": "sample string 2",
      "firstName": "sample string 3",
      "lastName": "sample string 4",
      "email": "sample string 5",
      "customFields": [
        {
          "values": [
            "sample string 1",
            "sample string 2"
          ],
          "guid": "sample string 1",
          "type": "sample string 2",
          "dataType": "sample string 3"
        },
        {
          "values": [
            "sample string 1",
            "sample string 2"
          ],
          "guid": "sample string 1",
          "type": "sample string 2",
          "dataType": "sample string 3"
        }
      ],
      "status": "sample string 6",
      "createDate": "2025-11-21T03:18:53.7257983+00:00",
      "groups": [
        {
          "name": "sample string 1",
          "id": 2
        },
        {
          "name": "sample string 1",
          "id": 2
        }
      ]
    },
    {
      "userID": 1,
      "userName": "sample string 2",
      "firstName": "sample string 3",
      "lastName": "sample string 4",
      "email": "sample string 5",
      "customFields": [
        {
          "values": [
            "sample string 1",
            "sample string 2"
          ],
          "guid": "sample string 1",
          "type": "sample string 2",
          "dataType": "sample string 3"
        },
        {
          "values": [
            "sample string 1",
            "sample string 2"
          ],
          "guid": "sample string 1",
          "type": "sample string 2",
          "dataType": "sample string 3"
        }
      ],
      "status": "sample string 6",
      "createDate": "2025-11-21T03:18:53.7257983+00:00",
      "groups": [
        {
          "name": "sample string 1",
          "id": 2
        },
        {
          "name": "sample string 1",
          "id": 2
        }
      ]
    }
  ],
  "assignedGroups": [
    {
      "id": 1,
      "name": "sample string 2",
      "description": "sample string 3",
      "tags": "sample string 4"
    },
    {
      "id": 1,
      "name": "sample string 2",
      "description": "sample string 3",
      "tags": "sample string 4"
    }
  ],
  "children": [],
  "projectName": "sample string 4",
  "parentName": "sample string 5",
  "parentId": 6,
  "projectStartDate": "2025-11-21T03:18:53.7257983+00:00",
  "projectEndDate": "2025-11-21T03:18:53.7257983+00:00",
  "projectStatus": "sample string 9",
  "projectCode": "sample string 10",
  "projectMeta": [
    {
      "label": "sample string 1",
      "value": "sample string 2"
    },
    {
      "label": "sample string 1",
      "value": "sample string 2"
    }
  ],
  "i_node": 11,
  "f_node": 12,
  "item": "sample string 13",
  "description": "sample string 14",
  "creator": {
    "userID": 1,
    "userName": "sample string 2",
    "firstName": "sample string 3",
    "lastName": "sample string 4",
    "email": "sample string 5",
    "customFields": [
      {
        "values": [
          "sample string 1",
          "sample string 2"
        ],
        "guid": "sample string 1",
        "type": "sample string 2",
        "dataType": "sample string 3"
      },
      {
        "values": [
          "sample string 1",
          "sample string 2"
        ],
        "guid": "sample string 1",
        "type": "sample string 2",
        "dataType": "sample string 3"
      }
    ],
    "status": "sample string 6",
    "createDate": "2025-11-21T03:18:53.7257983+00:00",
    "groups": [
      {
        "name": "sample string 1",
        "id": 2
      },
      {
        "name": "sample string 1",
        "id": 2
      }
    ]
  },
  "status": "sample string 15"
}

application/scim+json

Sample:

An exception has occurred while using the formatter 'SCIMMediaTypeFormatter' to generate sample for media type 'application/scim+json'. Exception message: Self referencing loop detected with type 'SDAPI.SDTask'. Path 'children'.