POST api/TaskManagement/AddTask
Request Information
URI Parameters
None.
Body Parameters
AddTaskModalName | Description | Type | Additional information |
---|---|---|---|
taskIDS | integer |
None. |
|
userid | integer |
None. |
|
companyid | integer |
None. |
|
Taskname | string |
None. |
|
SectionId | integer |
None. |
|
TypeId | integer |
None. |
|
Userids | Collection of integer |
None. |
|
Startdate | date |
None. |
|
Duedate | date |
None. |
|
Dependant | Collection of integer |
None. |
|
Priority | integer |
None. |
|
Status | integer |
None. |
|
Description | string |
None. |
|
SubTaskName | Collection of string |
None. |
|
SubStartdate | Collection of date |
None. |
|
SubPriority | Collection of integer |
None. |
|
SubStatus | Collection of integer |
None. |
|
SubDescription | Collection of string |
None. |
|
FieldId | integer |
None. |
|
ProjectId | integer |
None. |
|
ForwardUser | integer |
None. |
|
expdue | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "taskIDS": 1, "userid": 1, "companyid": 1, "Taskname": "sample string 1", "SectionId": 1, "TypeId": 1, "Userids": [ 1, 2 ], "Startdate": "2025-01-10T21:59:36.1756689+04:00", "Duedate": "2025-01-10T21:59:36.1756689+04:00", "Dependant": [ 1, 1 ], "Priority": 4, "Status": 5, "Description": "sample string 6", "SubTaskName": [ "sample string 1", "sample string 2" ], "SubStartdate": [ "2025-01-10T21:59:36.1756689+04:00", "2025-01-10T21:59:36.1756689+04:00" ], "SubPriority": [ 1, 1 ], "SubStatus": [ 1, 1 ], "SubDescription": [ "sample string 1", "sample string 2" ], "FieldId": 1, "ProjectId": 1, "ForwardUser": 1, "expdue": "sample string 7" }
application/xml, text/xml
Sample:
<AddTaskModal xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TaskManagementServices.Controllers"> <Dependant xmlns:d2p1="http://schemas.datacontract.org/2004/07/System"> <d2p1:int>1</d2p1:int> <d2p1:int>1</d2p1:int> </Dependant> <Description>sample string 6</Description> <Duedate>2025-01-10T21:59:36.1756689+04:00</Duedate> <FieldId>1</FieldId> <ForwardUser>1</ForwardUser> <Priority>4</Priority> <ProjectId>1</ProjectId> <SectionId>1</SectionId> <Startdate>2025-01-10T21:59:36.1756689+04:00</Startdate> <Status>5</Status> <SubDescription xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </SubDescription> <SubPriority xmlns:d2p1="http://schemas.datacontract.org/2004/07/System"> <d2p1:int>1</d2p1:int> <d2p1:int>1</d2p1:int> </SubPriority> <SubStartdate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System"> <d2p1:dateTime>2025-01-10T21:59:36.1756689+04:00</d2p1:dateTime> <d2p1:dateTime>2025-01-10T21:59:36.1756689+04:00</d2p1:dateTime> </SubStartdate> <SubStatus xmlns:d2p1="http://schemas.datacontract.org/2004/07/System"> <d2p1:int>1</d2p1:int> <d2p1:int>1</d2p1:int> </SubStatus> <SubTaskName xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </SubTaskName> <Taskname>sample string 1</Taskname> <TypeId>1</TypeId> <Userids xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </Userids> <companyid>1</companyid> <expdue>sample string 7</expdue> <taskIDS>1</taskIDS> <userid>1</userid> </AddTaskModal>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |