POST api/workplan/{id}/tasks
Add Task
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Work Plan Id |
globally unique identifier |
Required |
Body Parameters
TasksRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| Fields | Dictionary of string [key] and Object [value] |
None. |
|
| WorkTypeId | globally unique identifier |
None. |
|
| ParentTaskId | globally unique identifier |
None. |
|
| Integration | TaskIntegrationInfo |
None. |
|
| Assignments | Dictionary of globally unique identifier [key] and decimal number [value] |
None. |
|
| ProcessAssignments | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"WorkTypeId": "8add06bb-8a5c-4f77-bc27-51ef5db0894b",
"ParentTaskId": "8c4eada1-8be8-481d-beff-f9f2e72f2dbb",
"Integration": {
"IntegrationId": "75af3bd0-ede3-4bda-a2d7-dbbf31ca10f6",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"bec7e337-7d86-4e74-9721-5c05a945f836": 2.0,
"41188e45-2aa4-437f-8388-5031238709aa": 4.0
},
"ProcessAssignments": true
}
Response Information
Resource Description
WorkPlanTask| Name | Description | Type | Additional information |
|---|---|---|---|
| WorkTypeId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Created | date |
None. |
|
| Modified | date |
None. |
|
| Author | string |
None. |
|
| Editor | string |
None. |
|
| AssignedTo | Collection of globally unique identifier |
None. |
|
| NonLaborAssignments | Collection of TaskNonLaborAssignment |
None. |
|
| Assignments | Collection of TaskAssignment |
None. |
|
| ParentId | globally unique identifier |
None. |
|
| WorkTypeParentId | globally unique identifier |
None. |
|
| WorkTypeIndex | integer |
None. |
|
| Fields | Dictionary of string [key] and Object [value] |
None. |
|
| Index | integer |
None. |
|
| Complete | boolean |
None. |
|
| Comments | Collection of TaskComment |
None. |
|
| StartDate | date |
None. |
|
| DueDate | date |
None. |
|
| TaskScheduleType | TaskType |
None. |
|
| StatusUpdate | StatusUpdateClass |
None. |
|
| LastComment | date |
None. |
|
| IsScheduled | boolean |
None. |
|
| Integration | TaskIntegrationInfo |
None. |
|
| LinkedFileIds | Collection of string |
None. |
|
| LinkedLinkIds | Collection of string |
None. |
|
| WorkPlanId | globally unique identifier |
None. |
|
| id | globally unique identifier |
None. |
|
| ConfigId | globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
{
"WorkTypeId": "01d5be19-4209-4bd1-a961-911213886df8",
"Name": "sample string 1",
"Created": "2026-07-31T08:54:32.9598298+00:00",
"Modified": "2026-07-31T08:54:32.9598298+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"90cdafa0-4c98-4d25-8cf2-f5408a2f0446",
"9b19dbc3-a80f-45ff-a4cc-44d4533b8b9a"
],
"NonLaborAssignments": [
{
"Id": "cfcc0f11-0d50-42dd-836d-2a1aafb24445",
"ResourceId": "bf4beeee-d84b-4129-80a5-60ed5aa0cd95",
"Quantity": 3.0
},
{
"Id": "cfcc0f11-0d50-42dd-836d-2a1aafb24445",
"ResourceId": "bf4beeee-d84b-4129-80a5-60ed5aa0cd95",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "35d8dceb-855d-4b37-8d08-12f3e1ff1ea6",
"Type": 0,
"ResourceId": "ac3a3b60-a550-4cac-a084-76d0ed8df43e",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "35d8dceb-855d-4b37-8d08-12f3e1ff1ea6",
"Type": 0,
"ResourceId": "ac3a3b60-a550-4cac-a084-76d0ed8df43e",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "26f150cd-e7ad-455a-b88d-61e438f4b5b4",
"WorkTypeParentId": "94f0cb1c-1749-41be-ae34-99cc520dec82",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "23b6bff8-ee4e-4132-9587-062e50062669",
"UPN": "af7c8104-b583-441f-b5a7-d547e3b5026e",
"PostDate": "2026-07-31T08:54:32.9598298+00:00",
"Comment": "sample string 4",
"CC": [
"5868de39-b2d5-4965-a521-f50d77585347",
"123f1ce2-5644-401f-851f-ff2cf4584cb0"
],
"Users": [
"f568b190-b066-4cd6-811f-4c26699675a4",
"47c4049e-aa9d-4de1-b473-f981ad8784ae"
]
},
{
"Id": "23b6bff8-ee4e-4132-9587-062e50062669",
"UPN": "af7c8104-b583-441f-b5a7-d547e3b5026e",
"PostDate": "2026-07-31T08:54:32.9598298+00:00",
"Comment": "sample string 4",
"CC": [
"5868de39-b2d5-4965-a521-f50d77585347",
"123f1ce2-5644-401f-851f-ff2cf4584cb0"
],
"Users": [
"f568b190-b066-4cd6-811f-4c26699675a4",
"47c4049e-aa9d-4de1-b473-f981ad8784ae"
]
}
],
"StartDate": "2026-07-31T08:54:32.9598298+00:00",
"DueDate": "2026-07-31T08:54:32.9598298+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"2180056d-e97a-4801-9408-83e94a067fb0": "e2ac6caf-0d3c-49be-9ac4-3cfc037fbe57",
"3a89a878-42ad-4256-9bb2-58bf9a1734df": "0a1512a4-e69e-404d-a19e-0a93b7ead844"
},
"HasUpdates": true,
"Modified": "2026-07-31T08:54:32.9598298+00:00",
"Editor": "sample string 3",
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"CalcFields": {
"sample string 1": {},
"sample string 3": {}
},
"State": 0,
"ApproveRejectBy": "sample string 4",
"ApproveRejectDate": "2026-07-31T08:54:32.9598298+00:00"
},
"LastComment": "2026-07-31T08:54:32.9598298+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "9e992129-2f22-4a71-b50c-7b8aa0ea93a5",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"LinkedFileIds": [
"sample string 1",
"sample string 2"
],
"LinkedLinkIds": [
"sample string 1",
"sample string 2"
],
"WorkPlanId": "df42d237-5108-406c-840d-3b15fdea9e3e",
"id": "4804b9e8-1179-468d-9278-5dff9a8228c7",
"ConfigId": "fa0fbe83-bcf4-4d09-87c5-a087bcc22945"
}