POST api/v1/Task/updateIsCompleted
Cập nhật trạng thái hoàn thành Task
Request Information
URI Parameters
None.
Body Parameters
UpdateTaskCompleteBindModelName | Description | Type | Additional information |
---|---|---|---|
TaskId | integer |
Required |
|
IsComplete | boolean |
Required |
Request Formats
application/json, text/json
Sample:
{ "TaskId": 1, "IsComplete": true }
application/xml, text/xml
Sample:
<UpdateTaskCompleteBindModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models"> <IsComplete>true</IsComplete> <TaskId>1</TaskId> </UpdateTaskCompleteBindModel>
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>