PUT v1/Tasks/{id}

Update Task

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Task Id

integer

Required

Body Parameters

Updated task info

TaskInboundDTO
NameDescriptionTypeAdditional information
Id

Task Id

integer

None.

ModifiedUserId

Modified User Id

integer

None.

ModifiedDate

Modified Date

date

None.

FromUserId

From User Id

integer

None.

CreationDate

Creation Date

date

None.

AssignedUserId

Assigned User Id

integer

None.

ReferenceType

Reference Type

TaskReferenceTypeEnum

None.

ReferenceKey

Reference Key

string

String length: inclusive between 0 and 254

Subject

Subject

string

String length: inclusive between 0 and 254

DueDate

Due Date

date

None.

CompletionDate

Completion Date

date

None.

Status

Status

TaskStatusEnum

None.

Priority

Priority

TaskPriorityEnum

None.

Annotation

Annotation

string

String length: inclusive between 0 and 500

Expand

Comma separated list of expansions to include in results

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ModifiedUserId": 1,
  "ModifiedDate": "2024-03-29T03:55:05.9013884-10:00",
  "FromUserId": 2,
  "CreationDate": "2024-03-29T03:55:05.9013884-10:00",
  "AssignedUserId": 3,
  "ReferenceType": "Unknown",
  "ReferenceKey": "sample string 4",
  "Subject": "sample string 5",
  "DueDate": "2024-03-29T03:55:05.9013884-10:00",
  "CompletionDate": "2024-03-29T03:55:05.9013884-10:00",
  "Status": "Unknown",
  "Priority": "Unknown",
  "Annotation": "sample string 7",
  "Expand": ""
}

application/xml, text/xml

Sample:
<TaskInboundDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GCApi.Models.Inbound">
  <Expand></Expand>
  <Expansions xmlns:d2p1="http://schemas.datacontract.org/2004/07/GCApi.Enums" />
  <Id>1</Id>
  <Annotation>sample string 7</Annotation>
  <AssignedUserId>3</AssignedUserId>
  <CompletionDate>2024-03-29T03:55:05.9013884-10:00</CompletionDate>
  <CreationDate>2024-03-29T03:55:05.9013884-10:00</CreationDate>
  <DueDate>2024-03-29T03:55:05.9013884-10:00</DueDate>
  <FromUserId>2</FromUserId>
  <ModifiedDate>2024-03-29T03:55:05.9013884-10:00</ModifiedDate>
  <ModifiedUserId>1</ModifiedUserId>
  <Priority>Unknown</Priority>
  <ReferenceKey>sample string 4</ReferenceKey>
  <ReferenceType>Unknown</ReferenceType>
  <Status>Unknown</Status>
  <Subject>sample string 5</Subject>
</TaskInboundDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Http Status Code 200 when success, 404 if not found or 500 with error details

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.