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": "34da66bd-da82-442a-bc63-3f94cdf7e207",
"ParentTaskId": "58f88eae-1e6c-47bb-97ff-4350d7c99ef1",
"Integration": {
"IntegrationId": "0e0a0f2c-d1e4-497f-8c9e-d5daefa38d7d",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"b81544cb-d6c5-443f-a195-9dc7c6e8e0dd": 2.0,
"427215d0-dfbd-499b-9ed2-ceb79b51be8f": 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": "bdc988a7-3482-49ca-b25a-2a5947b6f8e2",
"Name": "sample string 1",
"Created": "2026-07-04T00:47:48.9899792+00:00",
"Modified": "2026-07-04T00:47:48.9899792+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"97315669-c00f-485b-bd46-89ae059dbe64",
"24383ffa-0256-4a67-a8ec-9e382176cfdd"
],
"NonLaborAssignments": [
{
"Id": "a38f773c-15fe-4cbc-a7a8-d3e0ee21ca8e",
"ResourceId": "bbed7a39-1907-4268-94c1-c4d89bff5d3f",
"Quantity": 3.0
},
{
"Id": "a38f773c-15fe-4cbc-a7a8-d3e0ee21ca8e",
"ResourceId": "bbed7a39-1907-4268-94c1-c4d89bff5d3f",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "ffeecaa5-39f6-4661-8ac3-cb02e9f67b66",
"Type": 0,
"ResourceId": "12599fc0-6a7a-4c63-a99a-9271756a0472",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "ffeecaa5-39f6-4661-8ac3-cb02e9f67b66",
"Type": 0,
"ResourceId": "12599fc0-6a7a-4c63-a99a-9271756a0472",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "a4de1c7a-c188-4a29-8d04-803687dd46b5",
"WorkTypeParentId": "a9abfa68-cd6f-4892-a6f3-7a4ae2210498",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "1518a5b2-448b-474b-a847-b40cc0a0dfce",
"UPN": "85fc0220-64d4-4fc8-9cb9-ee8a5b5ec21e",
"PostDate": "2026-07-04T00:47:48.9899792+00:00",
"Comment": "sample string 4",
"CC": [
"c712a2d8-cb6a-4786-8584-93524eb407c0",
"e315c82f-fef1-493b-9a78-cd7547a8e387"
],
"Users": [
"569eda16-8644-459a-8343-b8c84ac12df1",
"a6c77b0b-a745-4cd8-bfe5-3653a52f7938"
]
},
{
"Id": "1518a5b2-448b-474b-a847-b40cc0a0dfce",
"UPN": "85fc0220-64d4-4fc8-9cb9-ee8a5b5ec21e",
"PostDate": "2026-07-04T00:47:48.9899792+00:00",
"Comment": "sample string 4",
"CC": [
"c712a2d8-cb6a-4786-8584-93524eb407c0",
"e315c82f-fef1-493b-9a78-cd7547a8e387"
],
"Users": [
"569eda16-8644-459a-8343-b8c84ac12df1",
"a6c77b0b-a745-4cd8-bfe5-3653a52f7938"
]
}
],
"StartDate": "2026-07-04T00:47:48.9899792+00:00",
"DueDate": "2026-07-04T00:47:48.9899792+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"82b20e2b-3b97-4f3b-ad69-95eae01a80b8": "cb39f897-4d96-4cb3-bafd-37f280156a9a",
"052ebe19-df7c-479a-be71-19e9e05731f0": "01135632-71ff-480c-8020-ece4baa5490e"
},
"HasUpdates": true,
"Modified": "2026-07-04T00:47:48.9899792+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-04T00:47:48.9899792+00:00"
},
"LastComment": "2026-07-04T00:47:48.9899792+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "0e594f0b-5e9d-4edd-b8ce-7850f8660138",
"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": "fa126820-f4ef-43f3-9a60-9a0095e6a928",
"id": "a4e1d018-a99b-4aa1-94fe-b72f0175227b",
"ConfigId": "c874a39c-c175-4890-8142-004dc3fa2018"
}