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": "972e8375-9e4b-4fca-8b85-d57d6c976b2a",
"ParentTaskId": "1d3e77ac-abb2-44d7-803d-7a1a89033ea7",
"Integration": {
"IntegrationId": "ab3456ff-6398-419e-af48-e934aea0cd60",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"1d3c18da-58da-4d85-b8fd-f43506f8f814": 2.0,
"b422e072-4c3b-4720-9a98-389aceb8aac4": 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": "22559794-23ae-4023-8fe3-e83fc84a9177",
"Name": "sample string 1",
"Created": "2026-08-07T08:45:21.18456+00:00",
"Modified": "2026-08-07T08:45:21.18456+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"1fa78fbf-b66b-4a68-a630-e1f86477ba82",
"7db8a740-909d-41f5-99ad-473db180bf64"
],
"NonLaborAssignments": [
{
"Id": "9d4a8bb4-5f09-4d58-9fed-3c98b8cd2344",
"ResourceId": "24e8d843-9bdf-40fc-abf5-b3187d0c97c5",
"Quantity": 3.0
},
{
"Id": "9d4a8bb4-5f09-4d58-9fed-3c98b8cd2344",
"ResourceId": "24e8d843-9bdf-40fc-abf5-b3187d0c97c5",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "87d53d17-e7ad-4fc8-836b-638a7fc79ae0",
"Type": 0,
"ResourceId": "c842d316-dbe4-4e6e-a5ab-284a2f4f8a88",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "87d53d17-e7ad-4fc8-836b-638a7fc79ae0",
"Type": 0,
"ResourceId": "c842d316-dbe4-4e6e-a5ab-284a2f4f8a88",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "1692effa-fce9-4e01-8c20-99a4ff7a2c3c",
"WorkTypeParentId": "61236ba4-a0f0-40fc-94bf-2c24fe18cc8d",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "e095023f-47e7-4465-a52f-8e12fc3475ff",
"UPN": "46f12c27-5d4b-4f81-ac89-24f0a4082c47",
"PostDate": "2026-08-07T08:45:21.18456+00:00",
"Comment": "sample string 4",
"CC": [
"a00b2ed6-5b25-446c-b86f-c3ca7a125aff",
"d116e901-2386-43de-95d8-5968caf3c610"
],
"Users": [
"f088dd3b-9754-4fa6-991f-13727d43ea24",
"26a7f7f3-3567-4d87-94a4-4fa65890a907"
]
},
{
"Id": "e095023f-47e7-4465-a52f-8e12fc3475ff",
"UPN": "46f12c27-5d4b-4f81-ac89-24f0a4082c47",
"PostDate": "2026-08-07T08:45:21.18456+00:00",
"Comment": "sample string 4",
"CC": [
"a00b2ed6-5b25-446c-b86f-c3ca7a125aff",
"d116e901-2386-43de-95d8-5968caf3c610"
],
"Users": [
"f088dd3b-9754-4fa6-991f-13727d43ea24",
"26a7f7f3-3567-4d87-94a4-4fa65890a907"
]
}
],
"StartDate": "2026-08-07T08:45:21.18456+00:00",
"DueDate": "2026-08-07T08:45:21.18456+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"09e2203f-fa13-4f63-b231-6b9732bcf48d": "21430e19-189d-4ff1-bf85-490bbd92941f",
"7ddea1f2-144b-4bb8-aaa5-19533341e980": "4a434b0a-ea7c-4221-92d1-43e1543e78af"
},
"HasUpdates": true,
"Modified": "2026-08-07T08:45:21.18456+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-08-07T08:45:21.18456+00:00"
},
"LastComment": "2026-08-07T08:45:21.18456+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "80bb7d6c-2526-483a-bae9-d13790fcb7c2",
"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": "e39609ef-c19c-4768-b482-4d36464cc9c0",
"id": "8b45ffda-27a0-4779-9536-43d23432157b",
"ConfigId": "cad4fe58-8fc9-4fff-bb2e-1bc734aa39f2"
}