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": "60e25e00-cbe8-429f-95cc-e5d7fef94d40",
"ParentTaskId": "e24d80c4-e8a7-4bd3-9926-096ebe35790f",
"Integration": {
"IntegrationId": "7f7d15e9-9a1a-4ae1-84b5-12605fcf1166",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"59a8b351-eb84-41a9-ba40-894e8b231a04": 2.0,
"38bd41c5-c1e6-4cb2-ab8a-9310197612d1": 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": "2132d9f5-4ea3-4fa9-8fb2-af4107a7ead8",
"Name": "sample string 1",
"Created": "2026-07-18T05:35:41.5037038+00:00",
"Modified": "2026-07-18T05:35:41.5037038+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"8b134936-704d-4d97-bc92-641fe6d58bd9",
"e0546f62-a37f-42a1-ad11-0efe761cb9a0"
],
"NonLaborAssignments": [
{
"Id": "3cb15734-f668-47aa-af1b-9e43ecb59a80",
"ResourceId": "7f7d29f1-3328-4f03-b74e-c965ec75095c",
"Quantity": 3.0
},
{
"Id": "3cb15734-f668-47aa-af1b-9e43ecb59a80",
"ResourceId": "7f7d29f1-3328-4f03-b74e-c965ec75095c",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "4319eee2-cb67-4176-b4a5-f400ef01e7f1",
"Type": 0,
"ResourceId": "f56b40fc-b589-42dd-8bff-3049da91484d",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "4319eee2-cb67-4176-b4a5-f400ef01e7f1",
"Type": 0,
"ResourceId": "f56b40fc-b589-42dd-8bff-3049da91484d",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "f3ea8c96-8cbb-47f1-b9cb-6a0545b7545a",
"WorkTypeParentId": "dafce880-599c-4d8c-953e-7d14170ad2a6",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "82b211f7-e573-4e45-8f82-38b4bcbafee8",
"UPN": "e0121cb6-ab11-42cf-8fcb-97599b5ac2d2",
"PostDate": "2026-07-18T05:35:41.5037038+00:00",
"Comment": "sample string 4",
"CC": [
"748eb263-c78c-4310-823b-49d1522111bc",
"66e103a0-79c0-41f9-b837-3f34451bd0d1"
],
"Users": [
"ceda048d-684a-454d-a15a-8cee16f6e4da",
"fae2201f-31e1-499b-9892-a1e8188a792d"
]
},
{
"Id": "82b211f7-e573-4e45-8f82-38b4bcbafee8",
"UPN": "e0121cb6-ab11-42cf-8fcb-97599b5ac2d2",
"PostDate": "2026-07-18T05:35:41.5037038+00:00",
"Comment": "sample string 4",
"CC": [
"748eb263-c78c-4310-823b-49d1522111bc",
"66e103a0-79c0-41f9-b837-3f34451bd0d1"
],
"Users": [
"ceda048d-684a-454d-a15a-8cee16f6e4da",
"fae2201f-31e1-499b-9892-a1e8188a792d"
]
}
],
"StartDate": "2026-07-18T05:35:41.5037038+00:00",
"DueDate": "2026-07-18T05:35:41.5037038+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"dd686489-b5e6-48f4-92c7-1838d7436f37": "ec8bdbd0-a3b2-4b21-a992-c2ee41c3abf8",
"9605ac1b-01f1-4ea6-94d2-a77917d932d8": "a0a88d04-f6d0-4ce1-a965-a1d08da21e67"
},
"HasUpdates": true,
"Modified": "2026-07-18T05:35:41.5037038+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-18T05:35:41.5037038+00:00"
},
"LastComment": "2026-07-18T05:35:41.5037038+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "5badc32b-e286-42ef-82f7-89bbb24dd417",
"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": "ee883743-20d8-4ab2-be8d-49a105ea6a9f",
"id": "9d714c52-12be-4d5a-b94f-637d5f4364ff",
"ConfigId": "191640a1-78fc-4e34-b9b2-ffcf965f33d6"
}