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": "c9fae10a-d2d2-4d09-9903-c07142badb31",
"ParentTaskId": "6ec38de2-61b2-4568-ac8b-a5d22e76a6a2",
"Integration": {
"IntegrationId": "761e3d09-5dc0-4fb5-aee6-763d9185e771",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"54000ecf-d5c9-429c-bd0c-9b3425b32e8e": 2.0,
"45d2c371-6cee-4a42-afe9-9d9f3e1a40a5": 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": "4f8e5c1c-30cc-4626-89fc-ea5b2a4ec48e",
"Name": "sample string 1",
"Created": "2026-08-01T17:36:41.6230603+00:00",
"Modified": "2026-08-01T17:36:41.6230603+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"a99e1751-531e-49f7-937d-fc9fbfbc5a43",
"0285f6a7-0482-4255-9008-c3e9efb73ea0"
],
"NonLaborAssignments": [
{
"Id": "2b1b5c39-8fa3-4b0a-b5bf-dbb56a6f9943",
"ResourceId": "8fa3e8fb-5900-447c-ad5c-8cb2a9709b05",
"Quantity": 3.0
},
{
"Id": "2b1b5c39-8fa3-4b0a-b5bf-dbb56a6f9943",
"ResourceId": "8fa3e8fb-5900-447c-ad5c-8cb2a9709b05",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "4cbe3bc8-38b0-4307-86ed-ba817a3720f8",
"Type": 0,
"ResourceId": "ad6e2117-eaa8-4f5c-9fc8-c63d6f35de7d",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "4cbe3bc8-38b0-4307-86ed-ba817a3720f8",
"Type": 0,
"ResourceId": "ad6e2117-eaa8-4f5c-9fc8-c63d6f35de7d",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "3762a126-343b-49ae-bfd5-df90f8ebd568",
"WorkTypeParentId": "0d5e86f2-7e7f-473c-9a13-4fe8d36ccbbd",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "844a0e04-1c43-44e0-b360-154a8298ee42",
"UPN": "f0425e14-9705-4352-98f5-cfe6a8a8ed2c",
"PostDate": "2026-08-01T17:36:41.6230603+00:00",
"Comment": "sample string 4",
"CC": [
"98ca22f5-73e9-4c09-a58c-1eb4148421a6",
"9e8ea45b-5910-469d-8d19-fd8bcb5a3ba0"
],
"Users": [
"6fa44bc0-ad33-49df-9ba2-c1868b2f9aaf",
"6e3c0142-3111-43a9-981a-f046c4c797ac"
]
},
{
"Id": "844a0e04-1c43-44e0-b360-154a8298ee42",
"UPN": "f0425e14-9705-4352-98f5-cfe6a8a8ed2c",
"PostDate": "2026-08-01T17:36:41.6230603+00:00",
"Comment": "sample string 4",
"CC": [
"98ca22f5-73e9-4c09-a58c-1eb4148421a6",
"9e8ea45b-5910-469d-8d19-fd8bcb5a3ba0"
],
"Users": [
"6fa44bc0-ad33-49df-9ba2-c1868b2f9aaf",
"6e3c0142-3111-43a9-981a-f046c4c797ac"
]
}
],
"StartDate": "2026-08-01T17:36:41.6230603+00:00",
"DueDate": "2026-08-01T17:36:41.6230603+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"c0424fcb-9c74-4bcf-8afa-200b77e1a654": "16fb6efe-02cc-4fda-b583-f88124b63fde",
"fddbdeec-d5c7-4b00-8d47-de18e8f5edfd": "621fc0b0-b487-4557-87a6-eb321abfbfbb"
},
"HasUpdates": true,
"Modified": "2026-08-01T17:36:41.6230603+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-01T17:36:41.6230603+00:00"
},
"LastComment": "2026-08-01T17:36:41.6230603+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "84783f27-ba08-4531-9666-0a47fed24ed9",
"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": "58e1c603-1239-4d9e-95ed-d40a73c1a493",
"id": "9a05fbad-323d-42b6-b8f4-bf814a44e75c",
"ConfigId": "44127323-984f-4f66-af20-3c4f0d4d8060"
}