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": "66c6c823-6767-40f6-9129-3eb6b2ce6eb2",
"ParentTaskId": "0c5aa3c5-5f84-44f8-8fe1-539c5ab2d85d",
"Integration": {
"IntegrationId": "3f4a37ee-4bd0-4fc5-88d9-5ea06bfcacc9",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"70a4ef8f-404f-4b76-90d2-b1af86ef21e4": 2.0,
"f7de5da1-4c19-44fb-a838-37c3b9a4bacb": 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": "9552b53b-bbc8-4a42-82a9-36e3aa4e0b7b",
"Name": "sample string 1",
"Created": "2026-08-15T00:22:48.6364723+00:00",
"Modified": "2026-08-15T00:22:48.6364723+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"39b73b56-31cf-41cd-a5b7-80e10da09007",
"8e837f92-9c75-43c9-854d-4b931a9d5c43"
],
"NonLaborAssignments": [
{
"Id": "16bc586e-c1b6-4caa-9881-46249295fc21",
"ResourceId": "ba89bc97-da71-4867-b0b8-503cb7a0821c",
"Quantity": 3.0
},
{
"Id": "16bc586e-c1b6-4caa-9881-46249295fc21",
"ResourceId": "ba89bc97-da71-4867-b0b8-503cb7a0821c",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "30e3c829-ab8a-4c26-b3d9-d8f8a28a52e8",
"Type": 0,
"ResourceId": "5ba27ba3-dbe2-418f-bc60-25b9a9b78420",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "30e3c829-ab8a-4c26-b3d9-d8f8a28a52e8",
"Type": 0,
"ResourceId": "5ba27ba3-dbe2-418f-bc60-25b9a9b78420",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "3d682c19-a7e0-43e8-9d6d-60ebd42fa669",
"WorkTypeParentId": "3e7ed6d1-61d4-4e95-8415-f7758748c897",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "330b3ac8-84da-4eb1-8108-437f017ab133",
"UPN": "7133c2e6-801b-4372-9441-f1ca7fd42ca4",
"PostDate": "2026-08-15T00:22:48.6364723+00:00",
"Comment": "sample string 4",
"CC": [
"d53c0c40-f935-480f-89c8-94d2a4f3623a",
"0f181867-5e3b-4788-809c-f474505378e2"
],
"Users": [
"73683fe4-3a4c-4dd4-a60e-36ca7870fce3",
"3337a498-93da-41fc-985d-78e7494dbd8e"
]
},
{
"Id": "330b3ac8-84da-4eb1-8108-437f017ab133",
"UPN": "7133c2e6-801b-4372-9441-f1ca7fd42ca4",
"PostDate": "2026-08-15T00:22:48.6364723+00:00",
"Comment": "sample string 4",
"CC": [
"d53c0c40-f935-480f-89c8-94d2a4f3623a",
"0f181867-5e3b-4788-809c-f474505378e2"
],
"Users": [
"73683fe4-3a4c-4dd4-a60e-36ca7870fce3",
"3337a498-93da-41fc-985d-78e7494dbd8e"
]
}
],
"StartDate": "2026-08-15T00:22:48.6364723+00:00",
"DueDate": "2026-08-15T00:22:48.6364723+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"b915b6b1-42cb-46f3-abbb-9074dc9973d1": "af91219f-e90c-43b2-a342-fb7c5eebe41f",
"e3b42e80-9a7a-4011-9348-69312e3c7a67": "2dee3c18-2319-481a-af74-096e8e951f1d"
},
"HasUpdates": true,
"Modified": "2026-08-15T00:22:48.6364723+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-15T00:22:48.6364723+00:00"
},
"LastComment": "2026-08-15T00:22:48.6364723+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "da294d36-8017-498c-9167-12c1e6a81eb4",
"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": "1337f814-6d06-4731-a85c-750f5b558de6",
"id": "d0d2a44b-486f-4d95-96d0-3ebd870b3db1",
"ConfigId": "8feb6b43-91d4-4a29-b662-249cbe6b4c2c"
}