POST api/Event/Add

Add a event to a task

Request Information

URI Parameters

None.

Body Parameters

EventModel
NameDescriptionTypeAdditional information
ProjectId

integer

None.

ParentTaskId

integer

None.

EventId

integer

None.

TemplateId

integer

None.

Title

string

None.

StartDate

date

None.

FinishDate

date

None.

CrntOwnerId

integer

None.

OwnerName

string

None.

StatusId

integer

None.

StatusName

string

None.

DateCreated

date

None.

CreatedById

integer

None.

CreatedBy

string

None.

AttachmentId

integer

None.

AttachmentVersion

integer

None.

AttachmentName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ProjectId": 1,
  "ParentTaskId": 2,
  "EventId": 3,
  "TemplateId": 1,
  "Title": "sample string 4",
  "StartDate": "2020-12-03 21:02:10",
  "FinishDate": "2020-12-03 21:02:10",
  "CrntOwnerId": 1,
  "OwnerName": "sample string 5",
  "StatusId": 1,
  "StatusName": "sample string 6",
  "DateCreated": "2020-12-03 21:02:10",
  "CreatedById": 1,
  "CreatedBy": "sample string 7",
  "AttachmentId": 1,
  "AttachmentVersion": 1,
  "AttachmentName": "sample string 8"
}

application/xml, text/xml

Sample:
<EventModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Entities">
  <AttachmentId>1</AttachmentId>
  <AttachmentName>sample string 8</AttachmentName>
  <AttachmentVersion>1</AttachmentVersion>
  <CreatedBy>sample string 7</CreatedBy>
  <CreatedById>1</CreatedById>
  <CrntOwnerId>1</CrntOwnerId>
  <DateCreated>2020-12-03T21:02:10.6201493-08:00</DateCreated>
  <EventId>3</EventId>
  <FinishDate>2020-12-03T21:02:10.6201493-08:00</FinishDate>
  <OwnerName>sample string 5</OwnerName>
  <ParentTaskId>2</ParentTaskId>
  <ProjectId>1</ProjectId>
  <StartDate>2020-12-03T21:02:10.6201493-08:00</StartDate>
  <StatusId>1</StatusId>
  <StatusName>sample string 6</StatusName>
  <TemplateId>1</TemplateId>
  <Title>sample string 4</Title>
</EventModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Add a event to a task

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>