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": "9d1b572f-3098-4daf-ad12-01a891fe214c",
"ParentTaskId": "d2dc7869-f023-4a2b-9ac0-7fb7da13199d",
"Integration": {
"IntegrationId": "79430c88-ef46-48e0-9387-7e3f9251ac11",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"8604547b-78dd-406f-9338-77636ca1250a": 2.0,
"5d6614e2-2628-4d9e-bd02-0dcc23f204b0": 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": "fbafe2fb-7094-4bdc-a95f-2e63061c91e3",
"Name": "sample string 1",
"Created": "2026-08-10T17:04:29.7800404+00:00",
"Modified": "2026-08-10T17:04:29.7800404+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"2cbb7d12-0c1d-4168-845a-cf0eed513ee3",
"bfba6251-2ebf-46eb-9ec3-dc248d0eb484"
],
"NonLaborAssignments": [
{
"Id": "f4718766-cdf6-416d-ac47-0268368b19f6",
"ResourceId": "b06d626a-8e0a-4c68-872a-3aee1638cfe9",
"Quantity": 3.0
},
{
"Id": "f4718766-cdf6-416d-ac47-0268368b19f6",
"ResourceId": "b06d626a-8e0a-4c68-872a-3aee1638cfe9",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "b5c1e38b-84fa-4e26-bceb-af453c04162e",
"Type": 0,
"ResourceId": "8ba36335-60a2-4671-b2ab-706dbbb4337d",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "b5c1e38b-84fa-4e26-bceb-af453c04162e",
"Type": 0,
"ResourceId": "8ba36335-60a2-4671-b2ab-706dbbb4337d",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "d82d092f-d852-4299-bc65-865d5c1fb23a",
"WorkTypeParentId": "b765fb54-7334-4b06-992b-68ce908265ee",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "a42a4f99-1f8a-4f5f-abc4-16ec68d8a03e",
"UPN": "9aaff57d-7d3d-444f-932c-d5e83bd3268d",
"PostDate": "2026-08-10T17:04:29.7800404+00:00",
"Comment": "sample string 4",
"CC": [
"530d846c-804c-4f44-95b5-eb9ff4fed343",
"22d17b2c-e8ab-4d05-befe-9bddc291f681"
],
"Users": [
"467f38c0-0153-48d9-92bd-056534ef6413",
"6fdbca38-7564-404d-9657-fd4a25e01323"
]
},
{
"Id": "a42a4f99-1f8a-4f5f-abc4-16ec68d8a03e",
"UPN": "9aaff57d-7d3d-444f-932c-d5e83bd3268d",
"PostDate": "2026-08-10T17:04:29.7800404+00:00",
"Comment": "sample string 4",
"CC": [
"530d846c-804c-4f44-95b5-eb9ff4fed343",
"22d17b2c-e8ab-4d05-befe-9bddc291f681"
],
"Users": [
"467f38c0-0153-48d9-92bd-056534ef6413",
"6fdbca38-7564-404d-9657-fd4a25e01323"
]
}
],
"StartDate": "2026-08-10T17:04:29.7800404+00:00",
"DueDate": "2026-08-10T17:04:29.7800404+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"26c542f1-1421-4926-b98e-8d28901ddc6f": "01f96e97-0af2-497f-8103-d33effd45cb4",
"aa5188d1-b8b8-44cc-9c68-7dbcb386b5f7": "15996b25-fd0f-4248-b741-b6f182024604"
},
"HasUpdates": true,
"Modified": "2026-08-10T17:04:29.7800404+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-10T17:04:29.7800404+00:00"
},
"LastComment": "2026-08-10T17:04:29.7800404+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "33900821-f974-4a19-8a6b-991d28d726e9",
"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": "be0f832c-87e8-452a-98c6-25ab65000c78",
"id": "5e4e882f-11af-4d1c-8661-f8fd34dc727e",
"ConfigId": "c497eb6b-f9b6-4f2c-b6ac-2987a9daaba6"
}