POST api/tasks/{projectid}?phase={phase}
Add a New Task
Request Information
URI Parameters
| Name | Description | Type | Additional 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| Name | Description | Type | Additional 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": "2025-11-06T08:38:11.3549994+00:00",
"endDate": "2025-11-06T08:38:11.3549994+00:00",
"assignedUsers": [
1,
2
],
"assignedGroups": [
1,
2
]
}
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
None.