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": "473b373d-5ff7-4d4b-9827-d82134a7dda0",
"ParentTaskId": "ef4b21fc-a384-49c7-ab5f-403cff167bdc",
"Integration": {
"IntegrationId": "dfa467ea-ab09-42b8-807c-45fcccd391a1",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"0cee59bf-0488-4db9-9f13-7a3664c3b7a0": 2.0,
"f72c76e2-9878-4ae4-8a06-7520f3b0f748": 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": "b14e87bf-3187-42f0-a3f7-634855ec260b",
"Name": "sample string 1",
"Created": "2026-04-19T06:34:20.0245227+00:00",
"Modified": "2026-04-19T06:34:20.0245227+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"8fa98f97-e0b5-46ba-8abc-c6a9c4839cd3",
"864640c3-548a-41c3-94af-d9c0f4817df2"
],
"NonLaborAssignments": [
{
"Id": "66fc6eda-f17b-48a1-b2cb-5898d5612fca",
"ResourceId": "e6d7bc0e-bc0f-44e6-9f1e-6888fc13d23c",
"Quantity": 3.0
},
{
"Id": "66fc6eda-f17b-48a1-b2cb-5898d5612fca",
"ResourceId": "e6d7bc0e-bc0f-44e6-9f1e-6888fc13d23c",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "23912a4f-9867-4269-a37c-ca485e916fb3",
"Type": 0,
"ResourceId": "bf2186c1-c78a-4648-a0cf-1ea00575db09",
"Units": 3.0
},
{
"Id": "23912a4f-9867-4269-a37c-ca485e916fb3",
"Type": 0,
"ResourceId": "bf2186c1-c78a-4648-a0cf-1ea00575db09",
"Units": 3.0
}
],
"ParentId": "dd44288d-9338-407c-805a-47153e0eed7f",
"WorkTypeParentId": "3e3f6723-3885-42b9-9d49-156831180d07",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "7c53b255-d5ff-409a-9a9e-b20a006aec39",
"UPN": "9d34f173-d89e-4d7b-8bb6-8a65e37e567d",
"PostDate": "2026-04-19T06:34:20.0245227+00:00",
"Comment": "sample string 4",
"CC": [
"a6503534-e926-4a75-a27f-9b86a4066a09",
"3df21d4c-8c30-46f4-bb58-d3fcd31f1195"
],
"Users": [
"d93660d5-7b36-4f7a-b9db-2f486e3979d9",
"f5cec831-498c-441f-b0d5-11d8bcb505b4"
]
},
{
"Id": "7c53b255-d5ff-409a-9a9e-b20a006aec39",
"UPN": "9d34f173-d89e-4d7b-8bb6-8a65e37e567d",
"PostDate": "2026-04-19T06:34:20.0245227+00:00",
"Comment": "sample string 4",
"CC": [
"a6503534-e926-4a75-a27f-9b86a4066a09",
"3df21d4c-8c30-46f4-bb58-d3fcd31f1195"
],
"Users": [
"d93660d5-7b36-4f7a-b9db-2f486e3979d9",
"f5cec831-498c-441f-b0d5-11d8bcb505b4"
]
}
],
"StartDate": "2026-04-19T06:34:20.0245227+00:00",
"DueDate": "2026-04-19T06:34:20.0245227+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"98cb7db6-3ac9-49dc-85f4-356f4c2394c3": "14cbcf34-f7e5-48a3-9f48-daf5dce6ae92",
"5b4bf150-cc9f-47f1-9ce2-7943ddc14bd5": "7c02747e-7964-4f20-a8b6-58b31f7ae58e"
},
"HasUpdates": true,
"Modified": "2026-04-19T06:34:20.0245227+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-19T06:34:20.0245227+00:00"
},
"LastComment": "2026-04-19T06:34:20.0245227+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "1ab3cc53-ccec-4829-afff-3797b31ec043",
"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": "9abe2a11-0d9b-4134-aacd-7d50a0dda8c9",
"id": "5f478f0e-8300-42bc-8f49-650f8d6fe5c3",
"ConfigId": "a1322f52-8df6-4700-b952-686006def9c2"
}