POST api/v1/Task/create
Tạo Tasks
Request Information
URI Parameters
None.
Body Parameters
CreateTaskBindModelName | Description | Type | Additional information |
---|---|---|---|
ProjectId | integer |
Required |
|
FollowerIds | Collection of 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:
{ "ProjectId": 1, "FollowerIds": [ 1, 2 ], "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:
<CreateTaskBindModel 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> <FollowerIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:long>1</d2p1:long> <d2p1:long>2</d2p1:long> </FollowerIds> <ProjectId>1</ProjectId> </CreateTaskBindModel>
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>