POST api/Task/CreateTask?entityListID={entityListID}&entityID={entityID}
Creates a task.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
entityListID |
The identifier of the entity list. |
string |
Required |
entityID |
The identifier of the entity. |
integer |
Required |
Body Parameters
The task to be created.
WorkPoint365.WebAPI.Model.TaskBEName | Description | Type | Additional information |
---|---|---|---|
TaskListID |
Gets or sets the task list ID. |
string |
None. |
Id |
Gets or sets the id. |
string |
None. |
ActualWork |
Gets or sets actual work. |
integer |
None. |
AssignedTo |
Gets or sets assigned to. |
string |
None. |
BillingInformation |
Gets or sets billing information. |
string |
None. |
Body |
Gets or sets the body. |
string |
None. |
Companies |
Gets or sets companies. |
string |
None. |
ContactNames |
Gets or sets contact names. |
Collection of string |
None. |
DateCompleted |
Gets or sets date completed. |
date |
None. |
DueDate |
Gets or sets the due date. |
date |
None. |
Mileage |
Gets or sets the mileage. |
string |
None. |
PercentageComplete |
Gets or sets percentage complete. |
integer |
None. |
Priority |
Gets or sets the priority. |
WorkPoint365.WebAPI.Model.TaskBE+PriorityEnum |
None. |
StartDate |
Gets or sets the start date. |
date |
None. |
Status |
Gets or sets the status. |
WorkPoint365.WebAPI.Model.TaskBE+State |
None. |
Title |
Gets or sets the title. |
string |
None. |
TotalWork |
Gets or sets total work. |
integer |
None. |
Request Formats
application/json, text/json
{ "TaskListID": "sample string 1", "Id": "sample string 2", "ActualWork": 1, "AssignedTo": "sample string 3", "BillingInformation": "sample string 4", "Body": "sample string 5", "Companies": "sample string 6", "ContactNames": [ "sample string 1", "sample string 2" ], "DateCompleted": "2024-12-27T19:46:39.2168085+00:00", "DueDate": "2024-12-27T19:46:39.2168085+00:00", "Mileage": "sample string 8", "PercentageComplete": 9, "Priority": 0, "StartDate": "2024-12-27T19:46:39.2168085+00:00", "Status": 0, "Title": "sample string 11", "TotalWork": 1 }
application/xml, text/xml
<TaskBE xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WorkPoint365.WebAPI.Model"> <ActualWork>1</ActualWork> <AssignedTo>sample string 3</AssignedTo> <BillingInformation>sample string 4</BillingInformation> <Body>sample string 5</Body> <Companies>sample string 6</Companies> <ContactNames xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </ContactNames> <DateCompleted>2024-12-27T19:46:39.2168085+00:00</DateCompleted> <DueDate>2024-12-27T19:46:39.2168085+00:00</DueDate> <Id>sample string 2</Id> <Mileage>sample string 8</Mileage> <PercentageComplete>9</PercentageComplete> <Priority>High</Priority> <StartDate>2024-12-27T19:46:39.2168085+00:00</StartDate> <Status>NotStarted</Status> <TaskListID>sample string 1</TaskListID> <Title>sample string 11</Title> <TotalWork>1</TotalWork> </TaskBE>
Response Information
Resource Description
The identifier for the created task.
System.Web.Http.IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample not available.