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": "8244f4b4-d814-4a05-8dc9-34bbeb1a2b0a",
"ParentTaskId": "48a9cd5a-316f-4f70-836e-c4e08fdebe88",
"Integration": {
"IntegrationId": "904183b9-a709-43cb-b64d-f56cbe65bb07",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"904bf933-fd5e-45a0-a1a2-9c052a521675": 2.0,
"8627572e-92b6-4086-a5b0-f2a77740088b": 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": "96859afd-95c8-4baf-84ad-07af4e3a1d6a",
"Name": "sample string 1",
"Created": "2026-05-13T04:10:55.6970104+00:00",
"Modified": "2026-05-13T04:10:55.6970104+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"27d9b000-5362-4c8a-b70b-74b4c4290409",
"cac2ff22-ca8f-4bf5-81c5-016ae876a835"
],
"NonLaborAssignments": [
{
"Id": "12e049dc-1eaf-436f-a48a-74efc1986d0f",
"ResourceId": "f62864fc-d81b-4c21-8be9-2791d48eb2e3",
"Quantity": 3.0
},
{
"Id": "12e049dc-1eaf-436f-a48a-74efc1986d0f",
"ResourceId": "f62864fc-d81b-4c21-8be9-2791d48eb2e3",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "91c8e029-c206-47ef-8807-a988601e50e1",
"Type": 0,
"ResourceId": "a1d6389d-d623-4c12-8e5b-87c9d32ecce0",
"Units": 3.0
},
{
"Id": "91c8e029-c206-47ef-8807-a988601e50e1",
"Type": 0,
"ResourceId": "a1d6389d-d623-4c12-8e5b-87c9d32ecce0",
"Units": 3.0
}
],
"ParentId": "0d34180f-4574-40cf-991b-f09a89b39d29",
"WorkTypeParentId": "3837866c-44e0-4e0f-aaa3-1cf9322904b9",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "0e3004c5-2260-4592-abbb-c4341efaf71d",
"UPN": "7ff559ce-dc52-44e3-9d16-c9cfedcb148e",
"PostDate": "2026-05-13T04:10:55.6970104+00:00",
"Comment": "sample string 4",
"CC": [
"3675e7b8-b7b4-4016-a3b8-e286733e5ca0",
"1fc75cd7-921a-441c-922b-f5eafb60b4c0"
],
"Users": [
"e55bf6c2-671b-47ff-92c3-7c8cf1379251",
"afd5270f-4de7-46e2-bb2f-71204f232b4d"
]
},
{
"Id": "0e3004c5-2260-4592-abbb-c4341efaf71d",
"UPN": "7ff559ce-dc52-44e3-9d16-c9cfedcb148e",
"PostDate": "2026-05-13T04:10:55.6970104+00:00",
"Comment": "sample string 4",
"CC": [
"3675e7b8-b7b4-4016-a3b8-e286733e5ca0",
"1fc75cd7-921a-441c-922b-f5eafb60b4c0"
],
"Users": [
"e55bf6c2-671b-47ff-92c3-7c8cf1379251",
"afd5270f-4de7-46e2-bb2f-71204f232b4d"
]
}
],
"StartDate": "2026-05-13T04:10:55.6970104+00:00",
"DueDate": "2026-05-13T04:10:55.6970104+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"aa04dd63-9dde-4244-92f5-dfde6df6e87e": "2ec43293-8568-4062-92fe-9bcc6e54aac9",
"700cfd00-362f-4ab6-999b-cbc26f3bda5d": "66838144-1c91-45a7-9219-0ca70d140bf5"
},
"HasUpdates": true,
"Modified": "2026-05-13T04:10:55.6970104+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-05-13T04:10:55.6970104+00:00"
},
"LastComment": "2026-05-13T04:10:55.6970104+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "4ff75e29-0fd5-48c3-a81e-6564d415300d",
"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": "b35feb0b-6a9f-4d50-9877-9008ca8e3418",
"id": "6f3cd885-3aa0-4946-8952-c2e76db9448d",
"ConfigId": "2cd341ed-5080-4931-9bcf-350b601e4607"
}