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": "5c852367-abe6-4f30-a343-164acd8e3a34",
"ParentTaskId": "81f8a746-c5d5-45dd-b7b4-f327219d5f80",
"Integration": {
"IntegrationId": "139a6444-0dfc-42b3-8368-006a98cfdd45",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"b5bc689d-2e27-4b2b-8a82-0a7bd446da2d": 2.0,
"d44c5d82-1057-41f0-ba52-95f7191f1d0d": 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": "ce220c27-ecb6-4d61-b40f-297452407b40",
"Name": "sample string 1",
"Created": "2026-07-21T05:14:53.9311475+00:00",
"Modified": "2026-07-21T05:14:53.9311475+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"89e2a1c4-6055-43f7-80c0-d0cb2f4b30bc",
"d475796c-c49d-414a-81c2-03a7feeeaa91"
],
"NonLaborAssignments": [
{
"Id": "60bf1b7d-a360-48f4-8a0e-07b3002bd5cb",
"ResourceId": "f79de259-106f-4ef7-9bec-db21a93b72b6",
"Quantity": 3.0
},
{
"Id": "60bf1b7d-a360-48f4-8a0e-07b3002bd5cb",
"ResourceId": "f79de259-106f-4ef7-9bec-db21a93b72b6",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "dedab640-06b7-41ac-bca5-531c150ffb57",
"Type": 0,
"ResourceId": "6ba06991-596c-4d93-821e-3cf8dfb795c9",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "dedab640-06b7-41ac-bca5-531c150ffb57",
"Type": 0,
"ResourceId": "6ba06991-596c-4d93-821e-3cf8dfb795c9",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "a501f54b-968c-4f58-be62-20fbbc539112",
"WorkTypeParentId": "1bf8a622-89bf-47b8-b513-0118503fa253",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "7cf85899-1cf4-4342-af43-56df53b68acd",
"UPN": "1f5637df-cf75-47d6-95a9-ef62ee6e8f62",
"PostDate": "2026-07-21T05:14:53.9311475+00:00",
"Comment": "sample string 4",
"CC": [
"650474a1-9c88-4d47-bfb4-fe70d0da8559",
"959c6d1c-3745-4b6d-af10-451d4aea68e7"
],
"Users": [
"7edbef94-7fb8-4307-ab56-d40904455758",
"0a91fe95-919b-4a2e-9d52-00c506b092bb"
]
},
{
"Id": "7cf85899-1cf4-4342-af43-56df53b68acd",
"UPN": "1f5637df-cf75-47d6-95a9-ef62ee6e8f62",
"PostDate": "2026-07-21T05:14:53.9311475+00:00",
"Comment": "sample string 4",
"CC": [
"650474a1-9c88-4d47-bfb4-fe70d0da8559",
"959c6d1c-3745-4b6d-af10-451d4aea68e7"
],
"Users": [
"7edbef94-7fb8-4307-ab56-d40904455758",
"0a91fe95-919b-4a2e-9d52-00c506b092bb"
]
}
],
"StartDate": "2026-07-21T05:14:53.9311475+00:00",
"DueDate": "2026-07-21T05:14:53.9311475+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"9966cb77-e81b-41c0-b1bb-e3475d9b0d7f": "04a483ba-94f8-4197-b69e-32c96b980035",
"9f7ef21c-c107-4e24-b912-7156ae84154f": "7b606bc6-ae4a-472e-bd33-2db1aed0e60c"
},
"HasUpdates": true,
"Modified": "2026-07-21T05:14:53.9311475+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-21T05:14:53.9311475+00:00"
},
"LastComment": "2026-07-21T05:14:53.9311475+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "6397597e-19ca-499d-8a53-f99c60094807",
"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": "76ed6602-9723-4b7a-8070-f2cb978b6e3d",
"id": "9345bc29-5761-49ce-816c-0baed09a5ff9",
"ConfigId": "8ea91076-7cc4-4fd0-a514-1fab146f348e"
}