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": "8a266a7f-0fbf-471b-800e-cea552b3c3bc",
"ParentTaskId": "9623598f-4806-4813-a32b-04af6bbffd25",
"Integration": {
"IntegrationId": "69c84448-4274-4653-8226-4cbedbd530e2",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"429c861c-84f7-4914-950d-c5b2f639d52f": 2.0,
"aa08915a-f6bc-43fb-8548-f7b571aa8ad7": 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": "e206a9d0-e3b1-48ad-a375-1ac17f8fe34d",
"Name": "sample string 1",
"Created": "2026-06-05T16:20:21.0479355+00:00",
"Modified": "2026-06-05T16:20:21.0479355+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"1e42ddb9-17d2-459e-8c9c-c3566d5feb8d",
"9b6ed6c2-a292-4fab-b2a5-7bafeb6a187d"
],
"NonLaborAssignments": [
{
"Id": "17dd5e4a-ab48-4a77-993d-2e105c1c1242",
"ResourceId": "9e179732-503f-44bb-b7d5-7296bdbf0067",
"Quantity": 3.0
},
{
"Id": "17dd5e4a-ab48-4a77-993d-2e105c1c1242",
"ResourceId": "9e179732-503f-44bb-b7d5-7296bdbf0067",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "0e0f7696-691e-47f9-add1-6bb5015fc8af",
"Type": 0,
"ResourceId": "27725df4-040f-4c20-a910-49589f49c320",
"Units": 3.0
},
{
"Id": "0e0f7696-691e-47f9-add1-6bb5015fc8af",
"Type": 0,
"ResourceId": "27725df4-040f-4c20-a910-49589f49c320",
"Units": 3.0
}
],
"ParentId": "d3f126e0-8a4c-456b-9e58-ce556fe0f0fe",
"WorkTypeParentId": "68fbaf79-e0eb-4436-88b3-5e5ced13ed40",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "6ed8d4a1-e908-4af4-a5d4-36cdbb434a8f",
"UPN": "633031c1-b755-4d8f-be4d-029838547fa6",
"PostDate": "2026-06-05T16:20:21.0479355+00:00",
"Comment": "sample string 4",
"CC": [
"393545d3-5d28-4207-84f2-d05c532ea933",
"e469eef8-fc57-4b95-834a-65e9608cbc84"
],
"Users": [
"43386ec5-cce9-4b64-a41a-c259a5ed6231",
"8697c4f9-7166-4357-b3e7-649013a937de"
]
},
{
"Id": "6ed8d4a1-e908-4af4-a5d4-36cdbb434a8f",
"UPN": "633031c1-b755-4d8f-be4d-029838547fa6",
"PostDate": "2026-06-05T16:20:21.0479355+00:00",
"Comment": "sample string 4",
"CC": [
"393545d3-5d28-4207-84f2-d05c532ea933",
"e469eef8-fc57-4b95-834a-65e9608cbc84"
],
"Users": [
"43386ec5-cce9-4b64-a41a-c259a5ed6231",
"8697c4f9-7166-4357-b3e7-649013a937de"
]
}
],
"StartDate": "2026-06-05T16:20:21.0479355+00:00",
"DueDate": "2026-06-05T16:20:21.0479355+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"2501eff6-c2ea-4033-925f-e849f6857564": "87bd2d17-76bb-41db-9d06-73e8dc747993",
"914c8d5d-8d33-4c78-be02-51f717f3448e": "efedf88a-29cb-4da0-9771-8987e47a8cdd"
},
"HasUpdates": true,
"Modified": "2026-06-05T16:20:21.0479355+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-06-05T16:20:21.0479355+00:00"
},
"LastComment": "2026-06-05T16:20:21.0479355+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "4e8e22b9-90c4-45ff-a64f-b23d3c3f5ae7",
"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": "33ca926a-3343-42f2-8a73-b52d9ad8fcf1",
"id": "c459f87c-a031-4b4a-9cb2-ad58c308c42d",
"ConfigId": "e4167ca5-74c3-485f-be3d-1aa5d8d866ff"
}