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": "86439f9f-535e-45f4-a027-c28027d172e4",
"ParentTaskId": "a4c33abe-8108-454f-9e2e-2f03c601801b",
"Integration": {
"IntegrationId": "c451c1bd-b2a5-400b-83ed-ad475f4b09e5",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"c18975db-6f6b-44a8-9ae3-c6b4572e9457": 2.0,
"a256e051-b308-4907-8f43-1ef8ed8c0ea6": 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": "9232cfa6-7c07-42f4-bea3-e2017f0a7e1e",
"Name": "sample string 1",
"Created": "2026-08-09T11:37:13.808932+00:00",
"Modified": "2026-08-09T11:37:13.808932+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"c8c47ad7-79a4-46ab-be78-f1c9b1ec840d",
"4a9d55a3-1de1-4326-ad50-f4b4a6825c6f"
],
"NonLaborAssignments": [
{
"Id": "f64430be-de06-401c-bcf2-a9f851d13da2",
"ResourceId": "d253fdb7-3f7c-4981-8d25-415f9c0008cd",
"Quantity": 3.0
},
{
"Id": "f64430be-de06-401c-bcf2-a9f851d13da2",
"ResourceId": "d253fdb7-3f7c-4981-8d25-415f9c0008cd",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "52594b10-d6e2-48dc-aa7e-3cda06e3c267",
"Type": 0,
"ResourceId": "148d18ff-43d1-4d58-b2c9-532503d07ec3",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "52594b10-d6e2-48dc-aa7e-3cda06e3c267",
"Type": 0,
"ResourceId": "148d18ff-43d1-4d58-b2c9-532503d07ec3",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "aae950cf-3135-403c-be44-7e1ac5ecdf60",
"WorkTypeParentId": "ceb91e51-ee95-493f-8789-38cf37e6f0e2",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "8b42cc7d-df3f-4b13-8897-57039fb9c9ef",
"UPN": "491bafdd-21fa-4211-89b8-c6c375d806b9",
"PostDate": "2026-08-09T11:37:13.808932+00:00",
"Comment": "sample string 4",
"CC": [
"b2b5054d-7645-47f8-9162-c6d27a3948f2",
"0d4e8204-b85f-46a4-a768-4708d79f8365"
],
"Users": [
"4c02aca1-a104-49f1-8d75-30d4dfeb163c",
"9fe87c37-2cf8-4ccf-b66a-96de12741321"
]
},
{
"Id": "8b42cc7d-df3f-4b13-8897-57039fb9c9ef",
"UPN": "491bafdd-21fa-4211-89b8-c6c375d806b9",
"PostDate": "2026-08-09T11:37:13.808932+00:00",
"Comment": "sample string 4",
"CC": [
"b2b5054d-7645-47f8-9162-c6d27a3948f2",
"0d4e8204-b85f-46a4-a768-4708d79f8365"
],
"Users": [
"4c02aca1-a104-49f1-8d75-30d4dfeb163c",
"9fe87c37-2cf8-4ccf-b66a-96de12741321"
]
}
],
"StartDate": "2026-08-09T11:37:13.8245418+00:00",
"DueDate": "2026-08-09T11:37:13.8245418+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"5ab96dd3-c06b-4e73-8506-1e0b5bd4e42e": "0af08cad-c228-4dd5-acff-49b922121b7f",
"d4329ba6-108e-47f0-ae2d-8c53b17aaec8": "ab5dbe10-d4e7-42ce-833c-6859847c3477"
},
"HasUpdates": true,
"Modified": "2026-08-09T11:37:13.8245418+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-09T11:37:13.8245418+00:00"
},
"LastComment": "2026-08-09T11:37:13.8245418+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "4d09054d-8c51-443d-ab08-61a5dc7c0077",
"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": "600f2add-85b4-4c40-845a-198190386ceb",
"id": "efad3102-240f-4dbd-959d-6125f4ef6164",
"ConfigId": "2c03b37b-75f3-4494-93d1-2abac8fd1148"
}