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": "214cc693-13d4-4eb8-97b0-4fc9342c7826",
"ParentTaskId": "3c99e5ae-619c-4101-a1a7-787969659280",
"Integration": {
"IntegrationId": "e077467b-440b-4bbb-9498-9dea77048144",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"038805d4-3cc3-45c8-b45a-4c2c77e9a780": 2.0,
"046e7d5a-1a44-4c45-8f29-292e62ca4a13": 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": "e1ec3c42-6a02-485b-a362-23dac8cf5248",
"Name": "sample string 1",
"Created": "2026-08-23T02:20:52.6280535+00:00",
"Modified": "2026-08-23T02:20:52.6280535+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"0f0df7fa-d27d-463a-80d7-4add308ae370",
"6eb6d40a-93eb-431f-9d6d-33fa9e3a00b9"
],
"NonLaborAssignments": [
{
"Id": "c2777f71-e80b-4eb7-b8f9-30c47e797d69",
"ResourceId": "73e7c37a-5a60-4718-a8a3-810e52e86933",
"Quantity": 3.0
},
{
"Id": "c2777f71-e80b-4eb7-b8f9-30c47e797d69",
"ResourceId": "73e7c37a-5a60-4718-a8a3-810e52e86933",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "289e4606-4a6b-4e3c-a670-9fa731cbe846",
"Type": 0,
"ResourceId": "e2fa0b68-9815-4cb2-8954-a4fff67b5b69",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "289e4606-4a6b-4e3c-a670-9fa731cbe846",
"Type": 0,
"ResourceId": "e2fa0b68-9815-4cb2-8954-a4fff67b5b69",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "c41eba19-4be9-4559-8bc8-badfbff3960d",
"WorkTypeParentId": "082f62ec-2a8d-4e96-a35c-3f8f82bfdafb",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "3129923a-d93e-4eed-bb0b-8538e0e96d88",
"UPN": "8fd92fb6-3f8f-4dea-a509-345dbf990edd",
"PostDate": "2026-08-23T02:20:52.6280535+00:00",
"Comment": "sample string 4",
"CC": [
"8a4a3d7a-cfa2-4363-b6f9-eaea03704817",
"5460796d-4b45-4eb1-be9b-e25c2fb5543d"
],
"Users": [
"5fa91b07-84cd-4243-a084-bd4163859af6",
"ce38b67c-ff1b-470c-b93a-a0d33bc99032"
]
},
{
"Id": "3129923a-d93e-4eed-bb0b-8538e0e96d88",
"UPN": "8fd92fb6-3f8f-4dea-a509-345dbf990edd",
"PostDate": "2026-08-23T02:20:52.6280535+00:00",
"Comment": "sample string 4",
"CC": [
"8a4a3d7a-cfa2-4363-b6f9-eaea03704817",
"5460796d-4b45-4eb1-be9b-e25c2fb5543d"
],
"Users": [
"5fa91b07-84cd-4243-a084-bd4163859af6",
"ce38b67c-ff1b-470c-b93a-a0d33bc99032"
]
}
],
"StartDate": "2026-08-23T02:20:52.6280535+00:00",
"DueDate": "2026-08-23T02:20:52.6280535+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"eacbaf11-2a72-4172-ab2a-0f5e244660c7": "010fdda4-f6a7-4905-a7a2-35973fb3b8af",
"0158b032-e729-4b58-a189-1929386b7336": "410ed7f4-1b3d-4510-ae9e-2daafb3013e4"
},
"HasUpdates": true,
"Modified": "2026-08-23T02:20:52.6280535+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-23T02:20:52.6280535+00:00"
},
"LastComment": "2026-08-23T02:20:52.6280535+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "8022a475-a27e-4984-967d-552811c83d44",
"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": "90fadf27-7db1-45a3-8906-bad49792de06",
"id": "465f5f23-4936-4967-8ea5-2989f62cf6d3",
"ConfigId": "688e5a48-9c3c-4901-8309-bb5ea988d1e6"
}