POST api/Task/GroupUpdate

Batch update multiple tasks based on task ids.

Request Information

URI Parameters

None.

Body Parameters

TaskGroupUpdateBinder
NameDescriptionTypeAdditional information
ProjectId

integer

None.

TaskIds

Collection of integer

None.

FieldValues

Collection of FieldValueBinder

None.

Request Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<TaskGroupUpdateBinder 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>
  <TaskIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </TaskIds>
</TaskGroupUpdateBinder>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Batch update multiple tasks based on task ids.

API_Data_IEnumerableOfTaskUpdateResult
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

Collection of TaskUpdateResult

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  },
  "Data": [
    {
      "Id": 1,
      "StoryDisplayId": "sample string 2",
      "IfClosed": 3,
      "Warning": "sample string 4",
      "Success": true,
      "Reason": "sample string 6"
    },
    {
      "Id": 1,
      "StoryDisplayId": "sample string 2",
      "IfClosed": 3,
      "Warning": "sample string 4",
      "Success": true,
      "Reason": "sample string 6"
    }
  ]
}

application/xml, text/xml

Sample:
<API_Data_ArrayOfTaskUpdateResult 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:TaskUpdateResult>
      <d2p1:Reason>sample string 6</d2p1:Reason>
      <d2p1:Success>true</d2p1:Success>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IfClosed>3</d2p1:IfClosed>
      <d2p1:StoryDisplayId>sample string 2</d2p1:StoryDisplayId>
      <d2p1:Warning>sample string 4</d2p1:Warning>
    </d2p1:TaskUpdateResult>
    <d2p1:TaskUpdateResult>
      <d2p1:Reason>sample string 6</d2p1:Reason>
      <d2p1:Success>true</d2p1:Success>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IfClosed>3</d2p1:IfClosed>
      <d2p1:StoryDisplayId>sample string 2</d2p1:StoryDisplayId>
      <d2p1:Warning>sample string 4</d2p1:Warning>
    </d2p1:TaskUpdateResult>
  </Data>
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</API_Data_ArrayOfTaskUpdateResult>