GET api/Events?projectId={projectId}&taskId={taskId}

Get the events of a task based on task id

Request Information

URI Parameters

NameDescriptionTypeAdditional information
projectId

Project id

integer

Required

taskId

Task id

integer

Required

Body Parameters

None.

Response Information

Resource Description

Get the events of a task based on task id

API_Data_ListOfEventListItem
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

Collection of EventListItem

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  },
  "Data": [
    {
      "EventId": 1,
      "ParentTaskId": 2,
      "TemplateId": 1,
      "Title": "sample string 3",
      "StartDate": "2020-12-03 03:18:09",
      "FinishDate": "2020-12-03 03:18:09",
      "CrntOwnerId": 1,
      "OwnerName": "sample string 4",
      "StatusId": 1,
      "StatusName": "sample string 5",
      "DateCreated": "2020-12-03 03:18:09",
      "AttachmentId": 1,
      "AttachmentVersion": 1,
      "AttachmentName": "sample string 6"
    },
    {
      "EventId": 1,
      "ParentTaskId": 2,
      "TemplateId": 1,
      "Title": "sample string 3",
      "StartDate": "2020-12-03 03:18:09",
      "FinishDate": "2020-12-03 03:18:09",
      "CrntOwnerId": 1,
      "OwnerName": "sample string 4",
      "StatusId": 1,
      "StatusName": "sample string 5",
      "DateCreated": "2020-12-03 03:18:09",
      "AttachmentId": 1,
      "AttachmentVersion": 1,
      "AttachmentName": "sample string 6"
    }
  ]
}

application/xml, text/xml

Sample:
<API_Data_ArrayOfEventListItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Entities">
    <d2p1:EventListItem>
      <d2p1:AttachmentId>1</d2p1:AttachmentId>
      <d2p1:AttachmentName>sample string 6</d2p1:AttachmentName>
      <d2p1:AttachmentVersion>1</d2p1:AttachmentVersion>
      <d2p1:CrntOwnerId>1</d2p1:CrntOwnerId>
      <d2p1:DateCreated>2020-12-03T03:18:09.0491454-08:00</d2p1:DateCreated>
      <d2p1:EventId>1</d2p1:EventId>
      <d2p1:FinishDate>2020-12-03T03:18:09.0491454-08:00</d2p1:FinishDate>
      <d2p1:OwnerName>sample string 4</d2p1:OwnerName>
      <d2p1:ParentTaskId>2</d2p1:ParentTaskId>
      <d2p1:StartDate>2020-12-03T03:18:09.0491454-08:00</d2p1:StartDate>
      <d2p1:StatusId>1</d2p1:StatusId>
      <d2p1:StatusName>sample string 5</d2p1:StatusName>
      <d2p1:TemplateId>1</d2p1:TemplateId>
      <d2p1:Title>sample string 3</d2p1:Title>
    </d2p1:EventListItem>
    <d2p1:EventListItem>
      <d2p1:AttachmentId>1</d2p1:AttachmentId>
      <d2p1:AttachmentName>sample string 6</d2p1:AttachmentName>
      <d2p1:AttachmentVersion>1</d2p1:AttachmentVersion>
      <d2p1:CrntOwnerId>1</d2p1:CrntOwnerId>
      <d2p1:DateCreated>2020-12-03T03:18:09.0491454-08:00</d2p1:DateCreated>
      <d2p1:EventId>1</d2p1:EventId>
      <d2p1:FinishDate>2020-12-03T03:18:09.0491454-08:00</d2p1:FinishDate>
      <d2p1:OwnerName>sample string 4</d2p1:OwnerName>
      <d2p1:ParentTaskId>2</d2p1:ParentTaskId>
      <d2p1:StartDate>2020-12-03T03:18:09.0491454-08:00</d2p1:StartDate>
      <d2p1:StatusId>1</d2p1:StatusId>
      <d2p1:StatusName>sample string 5</d2p1:StatusName>
      <d2p1:TemplateId>1</d2p1:TemplateId>
      <d2p1:Title>sample string 3</d2p1:Title>
    </d2p1:EventListItem>
  </Data>
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</API_Data_ArrayOfEventListItem>