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": "f698e17f-736f-4da8-92f2-91d21f25c268",
"ParentTaskId": "edcf1701-4042-428d-9da4-58f103199498",
"Integration": {
"IntegrationId": "bd1b6fe1-3220-4f37-833d-a89c903b844f",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"0c3c76fc-ac86-46bf-bc32-d789864dc7c2": 2.0,
"f6a2c6f1-0f17-4e6e-894e-00d4f77291db": 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": "06ee0025-44dd-4794-aa74-15141891e97c",
"Name": "sample string 1",
"Created": "2026-07-28T09:24:28.1168821+00:00",
"Modified": "2026-07-28T09:24:28.1168821+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"38a25598-f7e8-49b7-bb38-d84ea3fbb474",
"6528bc47-c854-48d4-b41a-91cac152220f"
],
"NonLaborAssignments": [
{
"Id": "dff236ae-aa8d-4851-913f-4e2f7cf85dd1",
"ResourceId": "32a9408f-d5db-4d34-adaa-2a512a8ca12d",
"Quantity": 3.0
},
{
"Id": "dff236ae-aa8d-4851-913f-4e2f7cf85dd1",
"ResourceId": "32a9408f-d5db-4d34-adaa-2a512a8ca12d",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "887e07d1-9114-498b-9160-5d02e0fa12ca",
"Type": 0,
"ResourceId": "60a2183c-9654-4238-bcf4-130c7b5f9538",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "887e07d1-9114-498b-9160-5d02e0fa12ca",
"Type": 0,
"ResourceId": "60a2183c-9654-4238-bcf4-130c7b5f9538",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "80fc84c9-d4c2-441d-bea2-ebc793f15e75",
"WorkTypeParentId": "bda1466a-3270-42e5-af9b-d2e3392dd573",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "a3a85a53-8a25-4ab3-8987-dadce3630f3e",
"UPN": "051da0ff-8e0b-4432-81d4-335f73caca0e",
"PostDate": "2026-07-28T09:24:28.1168821+00:00",
"Comment": "sample string 4",
"CC": [
"1fbe0417-b551-4ecf-b386-95d5fb9aff32",
"30a914ff-062a-4426-945f-f48b2da8fe8a"
],
"Users": [
"a49c5a26-b5f1-47af-8181-fb32d92d18c1",
"14ecf790-ad82-4b3b-bd9b-424f93b23971"
]
},
{
"Id": "a3a85a53-8a25-4ab3-8987-dadce3630f3e",
"UPN": "051da0ff-8e0b-4432-81d4-335f73caca0e",
"PostDate": "2026-07-28T09:24:28.1168821+00:00",
"Comment": "sample string 4",
"CC": [
"1fbe0417-b551-4ecf-b386-95d5fb9aff32",
"30a914ff-062a-4426-945f-f48b2da8fe8a"
],
"Users": [
"a49c5a26-b5f1-47af-8181-fb32d92d18c1",
"14ecf790-ad82-4b3b-bd9b-424f93b23971"
]
}
],
"StartDate": "2026-07-28T09:24:28.1168821+00:00",
"DueDate": "2026-07-28T09:24:28.1168821+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"d90736ed-0058-4de2-94bb-4cc292374dc9": "16b83bb1-7518-486d-94d8-a3c6ff776d43",
"b7b1b495-58ff-4f59-aedb-cdfd8afab6ec": "d7b5d0ed-928b-496c-9707-531d49d5b779"
},
"HasUpdates": true,
"Modified": "2026-07-28T09:24:28.1168821+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-28T09:24:28.1168821+00:00"
},
"LastComment": "2026-07-28T09:24:28.1168821+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "252be7e2-8ee7-41e8-9583-ec06152906c6",
"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": "7449ddb4-37f6-4e3c-843c-c3dd73172ae6",
"id": "5895d52f-f4d8-4849-a300-04a487b378c8",
"ConfigId": "e11081a2-61bc-41ca-9f24-5003cf71f013"
}