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": "92abfa38-67b0-42d0-81d9-1beb2b736b65",
"ParentTaskId": "1d4e3076-4928-4e7e-9148-e1ae27d40705",
"Integration": {
"IntegrationId": "37761aa7-8be5-433b-a111-bd49c019104d",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"8c14ccbc-3a76-4e0f-8141-cf3f8d800e54": 2.0,
"ac0d349a-ad12-430b-80e7-5091e99b5e1d": 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": "886383e0-fe75-42d2-9e58-03dd77699c98",
"Name": "sample string 1",
"Created": "2026-07-04T10:00:13.8061757+00:00",
"Modified": "2026-07-04T10:00:13.8061757+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"0e0d9b7c-4a27-40e4-81cf-07adef838fa3",
"8996567c-1d63-4f1b-9ff1-ba7cc30be02c"
],
"NonLaborAssignments": [
{
"Id": "e1051a82-70a8-44e1-a27b-dbcd978f9dfb",
"ResourceId": "56ff6bc5-3788-4b24-97ac-68ff2286683e",
"Quantity": 3.0
},
{
"Id": "e1051a82-70a8-44e1-a27b-dbcd978f9dfb",
"ResourceId": "56ff6bc5-3788-4b24-97ac-68ff2286683e",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "222fca31-38b9-404e-941b-50f243a2b2ec",
"Type": 0,
"ResourceId": "a3d5331a-7af6-4d3f-b487-13e983ab7fac",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "222fca31-38b9-404e-941b-50f243a2b2ec",
"Type": 0,
"ResourceId": "a3d5331a-7af6-4d3f-b487-13e983ab7fac",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "f534c920-e708-4e50-81da-01d511ce26e2",
"WorkTypeParentId": "54c52e1a-ab49-400b-9676-63c8ee51b4f6",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "1fcb01ed-b56f-4b4e-8a22-fa2df95a7daf",
"UPN": "bcae3226-98fa-47b0-b7b5-7f32cccbc7a4",
"PostDate": "2026-07-04T10:00:13.8061757+00:00",
"Comment": "sample string 4",
"CC": [
"3ac7ebc0-cb4d-4c25-bc41-e7334c9276ca",
"be282351-bcd0-43f7-9f43-1c18cc0b9bc8"
],
"Users": [
"b84089bb-aa9c-4a24-b55d-916eeb3f69aa",
"af894bb1-6e84-4ccf-a932-b414864c0223"
]
},
{
"Id": "1fcb01ed-b56f-4b4e-8a22-fa2df95a7daf",
"UPN": "bcae3226-98fa-47b0-b7b5-7f32cccbc7a4",
"PostDate": "2026-07-04T10:00:13.8061757+00:00",
"Comment": "sample string 4",
"CC": [
"3ac7ebc0-cb4d-4c25-bc41-e7334c9276ca",
"be282351-bcd0-43f7-9f43-1c18cc0b9bc8"
],
"Users": [
"b84089bb-aa9c-4a24-b55d-916eeb3f69aa",
"af894bb1-6e84-4ccf-a932-b414864c0223"
]
}
],
"StartDate": "2026-07-04T10:00:13.8061757+00:00",
"DueDate": "2026-07-04T10:00:13.8061757+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"eda60522-c94b-46fd-baf3-6e331ec8f02e": "fef1765e-267f-4afe-bf26-a19a948bc347",
"0601a047-e037-4d85-bad3-89cd6a4b505d": "f1d4164d-a012-45c4-bd46-72139a09cb2a"
},
"HasUpdates": true,
"Modified": "2026-07-04T10:00:13.8061757+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-04T10:00:13.8061757+00:00"
},
"LastComment": "2026-07-04T10:00:13.8061757+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "e266a408-360c-4b4e-a88a-b44239c1eb3e",
"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": "e24df4f8-52bc-4fc9-8f04-2e3d36b60274",
"id": "a7e72a84-6039-4b69-821e-012995e6b64d",
"ConfigId": "706aafdc-aa65-4ee8-a2c5-c6d50a13a8f3"
}