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": "40bffd49-49e0-4524-be42-662c04a762ec",
"ParentTaskId": "8a822cae-bd8c-431e-83f9-52c5c78ab5e0",
"Integration": {
"IntegrationId": "7b154d1c-44f2-4094-813b-bcc55ca3b6b1",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"8f5042b9-bab4-4fa6-84e4-01e23007e98d": 2.0,
"5a976afc-0d4e-4ff9-a50c-6b043bba54ae": 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. |
|
| WorkPlanId | globally unique identifier |
None. |
|
| id | globally unique identifier |
None. |
|
| ConfigId | globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
{
"WorkTypeId": "1654e266-ad28-4b00-b24b-d811c2df6692",
"Name": "sample string 1",
"Created": "2025-11-12T03:42:23.7229093+00:00",
"Modified": "2025-11-12T03:42:23.7229093+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"9f31fa44-a8ad-4f34-9234-80a5efcfe9dd",
"f0719b22-c095-4399-8b15-1a31d3e101a0"
],
"NonLaborAssignments": [
{
"Id": "5a9231c3-7c3e-4430-8d12-6031f3e85183",
"ResourceId": "a0d3f35c-e6a2-4207-8021-348c46905045",
"Quantity": 3.0
},
{
"Id": "5a9231c3-7c3e-4430-8d12-6031f3e85183",
"ResourceId": "a0d3f35c-e6a2-4207-8021-348c46905045",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "84fdf5c2-9881-41ab-9697-6e12f6258eda",
"Type": 0,
"ResourceId": "529a686e-29fb-4e55-b846-b5f855846bb4",
"Units": 3.0
},
{
"Id": "84fdf5c2-9881-41ab-9697-6e12f6258eda",
"Type": 0,
"ResourceId": "529a686e-29fb-4e55-b846-b5f855846bb4",
"Units": 3.0
}
],
"ParentId": "b2f027be-acb4-43ad-b04a-2305da47b826",
"WorkTypeParentId": "0ee2c49d-dd6d-41a6-99a8-c69bb4f7f849",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "786a4d01-5f36-4a08-b295-6955e9b071e0",
"UPN": "52fb1988-e567-427b-ac14-bb4e50b55246",
"PostDate": "2025-11-12T03:42:23.7229093+00:00",
"Comment": "sample string 4",
"CC": [
"e1266835-9057-489c-bf02-7c657074206d",
"1bf96d56-7a64-4c4c-972c-0bcfd40cda3b"
],
"Users": [
"45f27077-a296-48ec-a1cc-565ed812cc96",
"e2dcbe05-29d5-467e-9b9a-9c0608304d51"
]
},
{
"Id": "786a4d01-5f36-4a08-b295-6955e9b071e0",
"UPN": "52fb1988-e567-427b-ac14-bb4e50b55246",
"PostDate": "2025-11-12T03:42:23.7229093+00:00",
"Comment": "sample string 4",
"CC": [
"e1266835-9057-489c-bf02-7c657074206d",
"1bf96d56-7a64-4c4c-972c-0bcfd40cda3b"
],
"Users": [
"45f27077-a296-48ec-a1cc-565ed812cc96",
"e2dcbe05-29d5-467e-9b9a-9c0608304d51"
]
}
],
"StartDate": "2025-11-12T03:42:23.7229093+00:00",
"DueDate": "2025-11-12T03:42:23.7229093+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"583584bb-35f3-4ec9-b164-f1f2cfb0aff3": "967c5182-3559-403c-b964-dbc44d744eff",
"41a2eaf1-c6ea-4fc1-bb43-6307c1a9d340": "fcfcc8cb-c43a-4928-8edd-288878087ede"
},
"HasUpdates": true,
"Modified": "2025-11-12T03:42:23.7229093+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": "2025-11-12T03:42:23.7229093+00:00"
},
"LastComment": "2025-11-12T03:42:23.7229093+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "2577d4f5-b8e8-48fb-a67a-18f938a8492d",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"WorkPlanId": "3e691351-2f8d-4d1d-b0b9-f78e0a3b9153",
"id": "3d7d57e6-ae98-455f-be00-c88b59499e18",
"ConfigId": "6cddb7ed-3ef3-4630-84b3-fb3fba1ed8c5"
}