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": "37f6f767-df0b-4832-804d-3b0f9f9fde3f",
"ParentTaskId": "9d10197b-ced0-422a-b4ad-dda00e97ec11",
"Integration": {
"IntegrationId": "4aa8da9f-2ce4-4e0d-91a7-2812cdef8571",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"2ea31b39-659d-4b0b-ae6c-7f7451add4c8": 2.0,
"633756ab-1381-449c-ace9-8071656293ca": 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": "c498aaea-7902-4845-85d5-7ff4c9bd8377",
"Name": "sample string 1",
"Created": "2026-08-07T11:36:09.2472395+00:00",
"Modified": "2026-08-07T11:36:09.2472395+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"bcc9dfbe-4ea6-4eaf-8d52-5cfdc8561469",
"22dc875d-c494-47bb-a0ed-94ace226867d"
],
"NonLaborAssignments": [
{
"Id": "fc1b7a7a-f9bf-4a6b-8e72-47710ee31b7d",
"ResourceId": "33e3422f-e467-4d4b-9b64-0ea13e517cda",
"Quantity": 3.0
},
{
"Id": "fc1b7a7a-f9bf-4a6b-8e72-47710ee31b7d",
"ResourceId": "33e3422f-e467-4d4b-9b64-0ea13e517cda",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "f378a5f5-1e29-4605-9145-eb2768392c9b",
"Type": 0,
"ResourceId": "50042021-05fd-4261-9d03-d295b83ed714",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "f378a5f5-1e29-4605-9145-eb2768392c9b",
"Type": 0,
"ResourceId": "50042021-05fd-4261-9d03-d295b83ed714",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "79878abe-69f3-4f68-ac84-b609e4eb501e",
"WorkTypeParentId": "1987319a-ef1b-47b0-9267-2792fc329c65",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "066c0a5b-c24d-41c0-987b-b49d5e1ea3db",
"UPN": "4172c58f-8dc6-4462-b77c-f47273279065",
"PostDate": "2026-08-07T11:36:09.2472395+00:00",
"Comment": "sample string 4",
"CC": [
"606adfd8-505f-4b35-8a3f-03fbbefcd873",
"15e680e2-e7b1-4d94-a804-ef6f7ff9343a"
],
"Users": [
"c0a76308-f271-45d4-850c-b719fa1267c8",
"15a4da75-7e20-4ada-aa5a-396a12818cd3"
]
},
{
"Id": "066c0a5b-c24d-41c0-987b-b49d5e1ea3db",
"UPN": "4172c58f-8dc6-4462-b77c-f47273279065",
"PostDate": "2026-08-07T11:36:09.2472395+00:00",
"Comment": "sample string 4",
"CC": [
"606adfd8-505f-4b35-8a3f-03fbbefcd873",
"15e680e2-e7b1-4d94-a804-ef6f7ff9343a"
],
"Users": [
"c0a76308-f271-45d4-850c-b719fa1267c8",
"15a4da75-7e20-4ada-aa5a-396a12818cd3"
]
}
],
"StartDate": "2026-08-07T11:36:09.2472395+00:00",
"DueDate": "2026-08-07T11:36:09.2472395+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"1e34a7af-8e4b-4455-830f-28b9eec9d621": "b3daff59-70f3-48c0-a7a4-41b7b12b6545",
"164623f4-ae14-41e8-8a02-8530582b67ef": "b2fd3610-140c-4374-b641-b27e83ca3de4"
},
"HasUpdates": true,
"Modified": "2026-08-07T11:36:09.2472395+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-07T11:36:09.2472395+00:00"
},
"LastComment": "2026-08-07T11:36:09.2472395+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "ec4f722a-239b-4a11-a5a4-9c08b3531b8e",
"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": "990fe0ba-7e70-4cfc-93e1-3e8ec6a95335",
"id": "d76483b1-9c27-4df6-81f0-b0cba90f2c23",
"ConfigId": "f8d4ade4-255f-4b1a-8a83-1d12ffc2259b"
}