POST api/Task/Create

Create a task.

Request Information

URI Parameters

None.

Body Parameters

Task info.

TaskCreateBinder
NameDescriptionTypeAdditional information
ProjectId

integer

None.

TemplateId

integer

None.

FieldValues

Collection of FieldValueBinder

None.

Request Formats

application/json, text/json

Sample:
{
  "ProjectId": 1,
  "TemplateId": 1,
  "FieldValues": [
    {
      "FieldId": 1,
      "Option": 1,
      "FieldValue": {}
    },
    {
      "FieldId": 1,
      "Option": 1,
      "FieldValue": {}
    }
  ]
}

application/xml, text/xml

Sample:
<TaskCreateBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding">
  <FieldValues>
    <FieldValueBinder>
      <FieldId>1</FieldId>
      <FieldValue />
      <Option>1</Option>
    </FieldValueBinder>
    <FieldValueBinder>
      <FieldId>1</FieldId>
      <FieldValue />
      <Option>1</Option>
    </FieldValueBinder>
  </FieldValues>
  <ProjectId>1</ProjectId>
  <TemplateId>1</TemplateId>
</TaskCreateBinder>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Create a task.

API_Data_Int32
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  },
  "Data": 2
}

application/xml, text/xml

Sample:
<API_Data_int xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
  <Data>2</Data>
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</API_Data_int>