POST v1/Tasks/create Deprecated

Create a new task. This endpoint is deprecated. Please use v2/tasks instead.

Request Information

URI Parameters

None.

Body Parameters

TaskCreateParams
NameDescriptionTypeAdditional 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

Sample:
{
  "taskName": "sample string 1",
  "taskTypeID": 2,
  "priorityID": 3,
  "dueDate": "2022-07-01T16:15:26.2869983-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

Sample:
<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>2022-07-01T16:15:26.2869983-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:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.