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": "57b40ce9-9d00-4bb5-b3e8-4420a37b7df1",
"ParentTaskId": "68b34568-4b92-4c28-b525-6d9819aaf853",
"Integration": {
"IntegrationId": "dec6f109-01d2-4606-95d5-d2f8632965a2",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"ebb50d43-07b1-4f50-abc7-4424533d58c6": 2.0,
"320c309a-ea91-44cc-9a5d-5cd2dead65bb": 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": "e1d3a141-961a-4d9c-ae79-08ad6dcbaca8",
"Name": "sample string 1",
"Created": "2026-08-04T17:48:14.3111316+00:00",
"Modified": "2026-08-04T17:48:14.3111316+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"6fa53902-02ce-4e46-b14e-cdfdfc080842",
"a79ab49d-191e-42d5-bc13-60ae6ba32873"
],
"NonLaborAssignments": [
{
"Id": "81e115c0-3ac8-4383-9e8b-3e3b4d5365f7",
"ResourceId": "520c3597-59d8-4c3b-b1ee-b38c9f3e89b5",
"Quantity": 3.0
},
{
"Id": "81e115c0-3ac8-4383-9e8b-3e3b4d5365f7",
"ResourceId": "520c3597-59d8-4c3b-b1ee-b38c9f3e89b5",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "a58d3095-8090-4319-b7dc-6fab9846bb82",
"Type": 0,
"ResourceId": "49617e9d-9fb0-4fe5-b7b8-9346f7de359c",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "a58d3095-8090-4319-b7dc-6fab9846bb82",
"Type": 0,
"ResourceId": "49617e9d-9fb0-4fe5-b7b8-9346f7de359c",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "cb18ffa6-0597-4f76-a171-608756580cf1",
"WorkTypeParentId": "08dcd90a-db49-4a8e-ad4e-b5449900e918",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "f70c8f25-4f67-44db-a877-e01fdfd74b4d",
"UPN": "94b3ba1e-3301-4e36-ada3-184cfc901dd2",
"PostDate": "2026-08-04T17:48:14.3111316+00:00",
"Comment": "sample string 4",
"CC": [
"98dcd07f-7a17-4853-819a-494b48750ab5",
"aa7f0d8b-182f-41e2-ac17-440510e208c9"
],
"Users": [
"60d86d12-708e-4845-9523-600358802689",
"4326b08f-da88-4277-8569-0a78d5619a33"
]
},
{
"Id": "f70c8f25-4f67-44db-a877-e01fdfd74b4d",
"UPN": "94b3ba1e-3301-4e36-ada3-184cfc901dd2",
"PostDate": "2026-08-04T17:48:14.3111316+00:00",
"Comment": "sample string 4",
"CC": [
"98dcd07f-7a17-4853-819a-494b48750ab5",
"aa7f0d8b-182f-41e2-ac17-440510e208c9"
],
"Users": [
"60d86d12-708e-4845-9523-600358802689",
"4326b08f-da88-4277-8569-0a78d5619a33"
]
}
],
"StartDate": "2026-08-04T17:48:14.3111316+00:00",
"DueDate": "2026-08-04T17:48:14.3111316+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"fe547490-6103-48b0-b20a-4cb168f95329": "15208400-98f2-4237-9438-73e7043c64ae",
"42483c95-e6d6-453a-97df-f3b6f538fa78": "5c28f92d-97e0-4373-848b-ba13e6e31966"
},
"HasUpdates": true,
"Modified": "2026-08-04T17:48:14.3111316+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-04T17:48:14.3111316+00:00"
},
"LastComment": "2026-08-04T17:48:14.3111316+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "f3b855df-39c6-4e6b-97cf-6928ad41f80d",
"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": "9ded2ebd-e3df-45a1-b85b-3e446bccfa99",
"id": "e654b737-800a-4914-bd94-edf19b8bbbe4",
"ConfigId": "51650719-e765-4e15-a969-f68b6e59d22e"
}