POST api/v1/Task/createV2
Tạo Tasks
Request Information
URI Parameters
None.
Body Parameters
CreateTaskIsAllMemberBindModelName | Description | Type | Additional information |
---|---|---|---|
ProjectId | integer |
Required |
|
IsAllMember | boolean |
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:
{ "ProjectId": 1, "IsAllMember": true, "SectionId": 3, "ParentTaskId": 1, "TaskName": "sample string 4", "Description": "sample string 5", "AssignedId": 1, "StartDate": "sample string 6", "DueDate": "sample string 7", "IsComplete": true }
application/xml, text/xml
Sample:
<CreateTaskIsAllMemberBindModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models"> <AssignedId>1</AssignedId> <Description>sample string 5</Description> <DueDate>sample string 7</DueDate> <IsComplete>true</IsComplete> <ParentTaskId>1</ParentTaskId> <SectionId>3</SectionId> <StartDate>sample string 6</StartDate> <TaskName>sample string 4</TaskName> <IsAllMember>true</IsAllMember> <ProjectId>1</ProjectId> </CreateTaskIsAllMemberBindModel>
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>