POST api/tasks/{projectid}?phase={phase}

Add a New Task

Request Information

URI Parameters

NameDescriptionTypeAdditional information
projectid

the unique id of the project for this task.

integer

Required

phase

The phase\milestone number to add this task to. If 0 it will be added to root of the project.

integer

Default value is 0

Body Parameters

Task Information

SDTaskObject
NameDescriptionTypeAdditional information
name

Name\Title of the task

string

None.

description

Description of the Task

string

None.

status

Status of the Task

string

None.

startDate

Start date for the task

date

None.

endDate

End date for the task, used to calcualte due date

date

None.

assignedUsers

List of User ID's that this task is assigned to

Collection of integer

None.

assignedGroups

List of Group ID's that this task is assigned to

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "name": "sample string 1",
  "description": "sample string 2",
  "status": "sample string 3",
  "startDate": "2024-09-08T03:05:45.762942+00:00",
  "endDate": "2024-09-08T03:05:45.762942+00:00",
  "assignedUsers": [
    1,
    2
  ],
  "assignedGroups": [
    1,
    2
  ]
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SDTaskObject'.

Response Information

Resource Description

None.