POST api/Task/SaveOrUpdateTask

Used for saving or updating the task detail

Request Information

URI Parameters

None.

Body Parameters

Task object which contains the task detail to save or update

Task
NameDescriptionTypeAdditional information
TaskId

TaskId, primary key of the task table

integer

None.

Name

Name of the task

string

None.

Code

Short code of the task

string

None.

Units

Units of the task

string

None.

IsActive

Flag to indicate whether the task is active or not

boolean

None.

Rate

Rate of the task per unit

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "taskId": 1,
  "name": "sample string 2",
  "code": "sample string 3",
  "units": "sample string 4",
  "isActive": true,
  "rate": 6.0
}

text/html

Sample:
{"taskId":1,"name":"sample string 2","code":"sample string 3","units":"sample string 4","isActive":true,"rate":6.0}

application/xml, text/xml

Sample:
<Task xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CapApi.Models">
  <Code>sample string 3</Code>
  <IsActive>true</IsActive>
  <Name>sample string 2</Name>
  <Rate>6</Rate>
  <TaskId>1</TaskId>
  <Units>sample string 4</Units>
</Task>

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.