POST api/v1/Task/update
Cập nhật task
Request Information
URI Parameters
None.
Body Parameters
UpdateTaskBindModelName | Description | Type | Additional information |
---|---|---|---|
TaskId | integer |
Required |
|
SectionId | integer |
Required |
|
ParentTaskId | integer |
None. |
|
TaskName | string |
Required |
|
Description | string |
None. |
|
AssignedId | integer |
None. |
|
StartDate |
Format: dd/MM/dd. Không có thì truyền chuỗi rỗng |
string |
None. |
DueDate |
Format: dd/MM/dd. Không có thì truyền chuỗi rỗng |
string |
None. |
IsComplete | boolean |
Required |
Request Formats
application/json, text/json
Sample:
{ "TaskId": 1, "SectionId": 2, "ParentTaskId": 1, "TaskName": "sample string 3", "Description": "sample string 4", "AssignedId": 1, "StartDate": "sample string 5", "DueDate": "sample string 6", "IsComplete": true }
application/xml, text/xml
Sample:
<UpdateTaskBindModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models"> <AssignedId>1</AssignedId> <Description>sample string 4</Description> <DueDate>sample string 6</DueDate> <IsComplete>true</IsComplete> <ParentTaskId>1</ParentTaskId> <SectionId>2</SectionId> <StartDate>sample string 5</StartDate> <TaskName>sample string 3</TaskName> <TaskId>1</TaskId> </UpdateTaskBindModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ReturnResultName | Description | Type | Additional information |
---|---|---|---|
ErrorCode | integer |
None. |
|
ErrorMessage | string |
None. |
|
Data | Object |
None. |
Response Formats
application/json, text/json
Sample:
{ "ErrorCode": 1, "ErrorMessage": "sample string 2", "Data": {} }
application/xml, text/xml
Sample:
<ReturnResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeamworkClassLibrary"> <Data /> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 2</ErrorMessage> </ReturnResult>