POST api/ProjectTask

Request Information

URI Parameters

None.

Body Parameters

ProjectTaskModel
NameDescriptionTypeAdditional information
TaskId

integer

None.

ProjectId

integer

None.

ListId

integer

None.

TaskName

string

None.

TaskDescription

string

None.

TaskStatusId

integer

None.

TaskPriorityId

integer

None.

TaskTypeId

integer

None.

TaskCompletionPercentage

integer

None.

TaskEstimatedMinutes

integer

None.

TaskStartDate

date

None.

TaskDueDate

date

None.

TaskAssignedTo

integer

None.

TaskParentId

integer

None.

TaskSortOrder

integer

None.

CreatedBy

integer

None.

CreatedAt

date

None.

ProjectTaskTotalSubTasks

integer

None.

ProjectTaskCompletedSubTasks

integer

None.

ProjectTaskTimeLogTotalMinutes

integer

None.

ProjectTaskAttachmentList

Collection of ProjectTaskAttachmentModel

None.

ProjectTaskTagSelectionList

Collection of ProjectTaskTagSelectionModel

None.

Request Formats

application/json, text/json

Sample:
{
  "TaskId": 1,
  "ProjectId": 2,
  "ListId": 3,
  "TaskName": "sample string 4",
  "TaskDescription": "sample string 5",
  "TaskStatusId": 6,
  "TaskPriorityId": 7,
  "TaskTypeId": 8,
  "TaskCompletionPercentage": 9,
  "TaskEstimatedMinutes": 10,
  "TaskStartDate": "2020-11-25T11:15:43.1273667+00:00",
  "TaskDueDate": "2020-11-25T11:15:43.1273667+00:00",
  "TaskAssignedTo": 11,
  "TaskParentId": 12,
  "TaskSortOrder": 13,
  "CreatedBy": 14,
  "CreatedAt": "2020-11-25T11:15:43.1273667+00:00",
  "ProjectTaskTotalSubTasks": 15,
  "ProjectTaskCompletedSubTasks": 16,
  "ProjectTaskTimeLogTotalMinutes": 17,
  "ProjectTaskAttachmentList": [
    {
      "AttachmentId": 1,
      "ProjectId": 2,
      "TaskId": 3,
      "AttachmentTitle": "sample string 4",
      "AttachmentFileName": "sample string 5",
      "AttachmentFileSize": 6,
      "AttachmentSortOrder": 7,
      "CreatedBy": 8,
      "CreatedAt": "2020-11-25T11:15:43.1273667+00:00",
      "TaskName": "sample string 9",
      "CreatedByName": "sample string 10"
    },
    {
      "AttachmentId": 1,
      "ProjectId": 2,
      "TaskId": 3,
      "AttachmentTitle": "sample string 4",
      "AttachmentFileName": "sample string 5",
      "AttachmentFileSize": 6,
      "AttachmentSortOrder": 7,
      "CreatedBy": 8,
      "CreatedAt": "2020-11-25T11:15:43.1273667+00:00",
      "TaskName": "sample string 9",
      "CreatedByName": "sample string 10"
    }
  ],
  "ProjectTaskTagSelectionList": [
    {
      "ProjectTaskTagSelectionId": 1,
      "TaskId": 2,
      "ProjectTagId": 3,
      "ProjectTagOptionId": 4
    },
    {
      "ProjectTaskTagSelectionId": 1,
      "TaskId": 2,
      "ProjectTagId": 3,
      "ProjectTagOptionId": 4
    }
  ]
}

application/xml, text/xml

Sample:
<ProjectTaskModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cuewel.Business.Model">
  <CreatedAt>2020-11-25T11:15:43.1273667+00:00</CreatedAt>
  <CreatedBy>14</CreatedBy>
  <ListId>3</ListId>
  <ProjectId>2</ProjectId>
  <ProjectTaskAttachmentList>
    <ProjectTaskAttachmentModel>
      <AttachmentFileName>sample string 5</AttachmentFileName>
      <AttachmentFileSize>6</AttachmentFileSize>
      <AttachmentId>1</AttachmentId>
      <AttachmentSortOrder>7</AttachmentSortOrder>
      <AttachmentTitle>sample string 4</AttachmentTitle>
      <CreatedAt>2020-11-25T11:15:43.1273667+00:00</CreatedAt>
      <CreatedBy>8</CreatedBy>
      <CreatedByName>sample string 10</CreatedByName>
      <ProjectId>2</ProjectId>
      <TaskId>3</TaskId>
      <TaskName>sample string 9</TaskName>
    </ProjectTaskAttachmentModel>
    <ProjectTaskAttachmentModel>
      <AttachmentFileName>sample string 5</AttachmentFileName>
      <AttachmentFileSize>6</AttachmentFileSize>
      <AttachmentId>1</AttachmentId>
      <AttachmentSortOrder>7</AttachmentSortOrder>
      <AttachmentTitle>sample string 4</AttachmentTitle>
      <CreatedAt>2020-11-25T11:15:43.1273667+00:00</CreatedAt>
      <CreatedBy>8</CreatedBy>
      <CreatedByName>sample string 10</CreatedByName>
      <ProjectId>2</ProjectId>
      <TaskId>3</TaskId>
      <TaskName>sample string 9</TaskName>
    </ProjectTaskAttachmentModel>
  </ProjectTaskAttachmentList>
  <ProjectTaskCompletedSubTasks>16</ProjectTaskCompletedSubTasks>
  <ProjectTaskTagSelectionList>
    <ProjectTaskTagSelectionModel>
      <ProjectTagId>3</ProjectTagId>
      <ProjectTagOptionId>4</ProjectTagOptionId>
      <ProjectTaskTagSelectionId>1</ProjectTaskTagSelectionId>
      <TaskId>2</TaskId>
    </ProjectTaskTagSelectionModel>
    <ProjectTaskTagSelectionModel>
      <ProjectTagId>3</ProjectTagId>
      <ProjectTagOptionId>4</ProjectTagOptionId>
      <ProjectTaskTagSelectionId>1</ProjectTaskTagSelectionId>
      <TaskId>2</TaskId>
    </ProjectTaskTagSelectionModel>
  </ProjectTaskTagSelectionList>
  <ProjectTaskTimeLogTotalMinutes>17</ProjectTaskTimeLogTotalMinutes>
  <ProjectTaskTotalSubTasks>15</ProjectTaskTotalSubTasks>
  <TaskAssignedTo>11</TaskAssignedTo>
  <TaskCompletionPercentage>9</TaskCompletionPercentage>
  <TaskDescription>sample string 5</TaskDescription>
  <TaskDueDate>2020-11-25T11:15:43.1273667+00:00</TaskDueDate>
  <TaskEstimatedMinutes>10</TaskEstimatedMinutes>
  <TaskId>1</TaskId>
  <TaskName>sample string 4</TaskName>
  <TaskParentId>12</TaskParentId>
  <TaskPriorityId>7</TaskPriorityId>
  <TaskSortOrder>13</TaskSortOrder>
  <TaskStartDate>2020-11-25T11:15:43.1273667+00:00</TaskStartDate>
  <TaskStatusId>6</TaskStatusId>
  <TaskTypeId>8</TaskTypeId>
</ProjectTaskModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.