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": "297e7b9a-9e62-4433-b3f2-eb8b0f57d471",
"ParentTaskId": "b244af66-6624-4ce6-9687-4dc8741d01ee",
"Integration": {
"IntegrationId": "38e0f865-5b10-4619-8003-7d38e14e8384",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"1c36bfe9-900f-45e1-80db-be89173bb8c6": 2.0,
"353e355a-0d2d-4bf2-8a4f-a17098f72cfe": 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": "bbcf1315-cda1-400f-9fd1-96ad077c9a44",
"Name": "sample string 1",
"Created": "2026-04-09T04:21:29.8609898+00:00",
"Modified": "2026-04-09T04:21:29.8609898+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"a998867a-a09f-47a6-b4be-b495b9e5c504",
"0107c681-2e19-4fa5-90fa-3387b5a47829"
],
"NonLaborAssignments": [
{
"Id": "dee98d75-0de0-4f4b-b784-d3195b8ae577",
"ResourceId": "aed0732b-eadc-42ba-8903-0eba13541d23",
"Quantity": 3.0
},
{
"Id": "dee98d75-0de0-4f4b-b784-d3195b8ae577",
"ResourceId": "aed0732b-eadc-42ba-8903-0eba13541d23",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "0eb9662b-cc83-4c99-b465-7ae9683079a7",
"Type": 0,
"ResourceId": "56d4af57-0c8e-42bc-97ce-3b310dfd481b",
"Units": 3.0
},
{
"Id": "0eb9662b-cc83-4c99-b465-7ae9683079a7",
"Type": 0,
"ResourceId": "56d4af57-0c8e-42bc-97ce-3b310dfd481b",
"Units": 3.0
}
],
"ParentId": "8ee5f6b5-26de-4643-86fd-957e7a37058b",
"WorkTypeParentId": "6d73c383-c54e-4f8d-acb0-f104159eec20",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "4adb11ab-66ab-488b-8842-efe03b2684df",
"UPN": "ba35e0fa-e464-4d96-ab3a-81b01973b9cb",
"PostDate": "2026-04-09T04:21:29.8609898+00:00",
"Comment": "sample string 4",
"CC": [
"9eef114b-b513-44fa-8769-f70682a3cede",
"c9aa2142-5511-4c6d-86ee-d9ec94a90cb5"
],
"Users": [
"c4368630-abcd-4654-9f56-2828ec77cd34",
"dd0ce06a-a77c-442f-b0b8-14d3acbb6b20"
]
},
{
"Id": "4adb11ab-66ab-488b-8842-efe03b2684df",
"UPN": "ba35e0fa-e464-4d96-ab3a-81b01973b9cb",
"PostDate": "2026-04-09T04:21:29.8609898+00:00",
"Comment": "sample string 4",
"CC": [
"9eef114b-b513-44fa-8769-f70682a3cede",
"c9aa2142-5511-4c6d-86ee-d9ec94a90cb5"
],
"Users": [
"c4368630-abcd-4654-9f56-2828ec77cd34",
"dd0ce06a-a77c-442f-b0b8-14d3acbb6b20"
]
}
],
"StartDate": "2026-04-09T04:21:29.8609898+00:00",
"DueDate": "2026-04-09T04:21:29.8609898+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"033b4f0b-7e16-4cff-82a8-d9a2433615a7": "721dd477-2e26-498d-9a87-fdca6191418a",
"8e342f05-901c-4a6d-addb-84018d5a98b0": "03c18aa3-c84e-4d16-9c70-e6b39317ec2b"
},
"HasUpdates": true,
"Modified": "2026-04-09T04:21:29.8609898+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-04-09T04:21:29.8609898+00:00"
},
"LastComment": "2026-04-09T04:21:29.8609898+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "3bf38636-3fa7-4cf4-a106-9ac807ab3b56",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"WorkPlanId": "463d9057-cc4a-4dd9-8298-2f04ef5a0c2d",
"id": "d50e7cff-455f-4526-975a-c241754b2aa1",
"ConfigId": "c0f55275-cca6-4fab-ab32-8861fea9791a"
}