POST v1/Tasks/create
Create a new task.
Request Information
URI Parameters
None.
Body Parameters
TaskCreateParamsName | Description | Type | Additional information |
---|---|---|---|
TaskName | string |
Required |
|
TaskTypeID | integer |
None. |
|
PriorityID | integer |
None. |
|
DueDate | date |
None. |
|
RequestedByObjectID |
RequestedByObjectID property will be deprecated in the future. RequestedByObjectID will be derived from RequestedByEmail property. |
integer |
None. |
RequestedByKeyID |
RequestedByKeyID property will be deprecated in the future. RequestedByKeyID will be derived from RequestedByEmail property |
integer |
None. |
AccountID | integer |
None. |
|
OrderID | integer |
None. |
|
ProjectID | integer |
None. |
|
MilestoneID | integer |
None. |
|
TaskDesc | string |
None. |
|
AssignedToObjectID |
Assigned to ObjectID - For Employees: ObjectID = 4, For Teams: ObjectID = 12, For Pools: ObjectID = 30, For Contacts: ObjectID = 20 |
integer |
None. |
AssignedToKeyID | integer |
None. |
|
AssignToUserByDefault |
AssignToUserByDefault property will be deprecated in the future. If AssignedToObjectID and AssignedToKeyID values are not provided, then the task will be assigned as per default setup at task type configuration, or to the user creating the task if no defaults are set up for the task type. |
boolean |
None. |
DeriveRequestedByUsingEmailFrom | boolean |
None. |
|
RequestedByEmail | string |
None. |
|
StatusID |
48 - Open, 50 - Done, 68 - On Hold, 41 - Canceled, Defaults to 48 - Open if not supplied |
SuiteStatus |
None. |
Request Formats
application/json, text/json
{ "taskName": "sample string 1", "taskTypeID": 2, "priorityID": 3, "dueDate": "2024-04-25T01:44:08.0953768-04:00", "requestedByObjectID": 4, "requestedByKeyID": 5, "accountID": 6, "orderID": 7, "projectID": 8, "milestoneID": 9, "taskDesc": "sample string 10", "assignedToObjectID": 11, "assignedToKeyID": 12, "assignToUserByDefault": true, "deriveRequestedByUsingEmailFrom": true, "requestedByEmail": "sample string 15", "statusID": 1 }
application/xml, text/xml
<TaskCreateParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BAPI.Models.Tasks"> <AccountID>6</AccountID> <AssignToUserByDefault>true</AssignToUserByDefault> <AssignedToKeyID>12</AssignedToKeyID> <AssignedToObjectID>11</AssignedToObjectID> <DeriveRequestedByUsingEmailFrom>true</DeriveRequestedByUsingEmailFrom> <DueDate>2024-04-25T01:44:08.0953768-04:00</DueDate> <MilestoneID>9</MilestoneID> <OrderID>7</OrderID> <PriorityID>3</PriorityID> <ProjectID>8</ProjectID> <RequestedByEmail>sample string 15</RequestedByEmail> <RequestedByKeyID>5</RequestedByKeyID> <RequestedByObjectID>4</RequestedByObjectID> <StatusID>AccountPending</StatusID> <TaskDesc>sample string 10</TaskDesc> <TaskName>sample string 1</TaskName> <TaskTypeID>2</TaskTypeID> </TaskCreateParams>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample not available.