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": "7b4ed980-a2bf-4f35-ae13-746e126027f8",
"ParentTaskId": "fedc6aca-7a29-46b6-84ee-4b44f15fd1a6",
"Integration": {
"IntegrationId": "2a6da233-dc1d-491c-ab63-f9897a05baa6",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"7276f0e4-9873-4352-8d62-0c82712dd8ad": 2.0,
"6ebf2e6d-a961-4f41-89d7-13a93785422d": 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": "33fea849-9794-4d5b-ac9c-d09c9ca8fa56",
"Name": "sample string 1",
"Created": "2026-08-12T04:49:38.4251876+00:00",
"Modified": "2026-08-12T04:49:38.4251876+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"74d25fa0-8838-4619-b644-eadceb19b1fb",
"a66d5933-16fa-42bf-bc45-a51ebaf2b687"
],
"NonLaborAssignments": [
{
"Id": "b19b69c2-1ca6-412f-a9a8-67f86d69ad13",
"ResourceId": "9c08c790-75a3-4e0f-8e45-1b4f1344c1a0",
"Quantity": 3.0
},
{
"Id": "b19b69c2-1ca6-412f-a9a8-67f86d69ad13",
"ResourceId": "9c08c790-75a3-4e0f-8e45-1b4f1344c1a0",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "fd6a09f7-42ac-4662-aa64-b50de76eeb88",
"Type": 0,
"ResourceId": "5a6ea5ea-215c-4322-9d8b-761a46b1113b",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "fd6a09f7-42ac-4662-aa64-b50de76eeb88",
"Type": 0,
"ResourceId": "5a6ea5ea-215c-4322-9d8b-761a46b1113b",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "54e47e35-aa75-4e3c-8c3c-c0908b973215",
"WorkTypeParentId": "493e0693-0d58-4fa8-ad6d-f21c75a26d46",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "3b4ed7cc-827e-45e3-9998-fe4d95bebe70",
"UPN": "4611d786-ffc4-4725-9f75-6ba7b1578dc9",
"PostDate": "2026-08-12T04:49:38.4251876+00:00",
"Comment": "sample string 4",
"CC": [
"b6c8e0c5-4875-438b-aade-9a360722e651",
"25f5e1fd-131e-4156-adfb-b62b07f1c7bc"
],
"Users": [
"7ee00293-c7ac-44f9-bde9-026136b74d23",
"c1d1574a-42a0-4eb6-9d2f-d101a3eda161"
]
},
{
"Id": "3b4ed7cc-827e-45e3-9998-fe4d95bebe70",
"UPN": "4611d786-ffc4-4725-9f75-6ba7b1578dc9",
"PostDate": "2026-08-12T04:49:38.4251876+00:00",
"Comment": "sample string 4",
"CC": [
"b6c8e0c5-4875-438b-aade-9a360722e651",
"25f5e1fd-131e-4156-adfb-b62b07f1c7bc"
],
"Users": [
"7ee00293-c7ac-44f9-bde9-026136b74d23",
"c1d1574a-42a0-4eb6-9d2f-d101a3eda161"
]
}
],
"StartDate": "2026-08-12T04:49:38.4251876+00:00",
"DueDate": "2026-08-12T04:49:38.4251876+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"159b44ce-f150-4d94-8d0c-e83e6a47acc0": "c26f81c1-b42b-464e-9a23-9a7d9d0c5a40",
"2082ac84-865e-4f66-8ee3-4eee72aa000a": "06c9b007-f5a3-4c78-b0a3-c3ccab6d6965"
},
"HasUpdates": true,
"Modified": "2026-08-12T04:49:38.4251876+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-12T04:49:38.4251876+00:00"
},
"LastComment": "2026-08-12T04:49:38.4251876+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "55f1f4f7-8003-43c5-a222-31c472a1e109",
"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": "3e7d4f94-c8a0-466e-9d17-9125dc167cb5",
"id": "4dba3c67-8d20-4a6f-803c-e7a807510a10",
"ConfigId": "31804213-64d3-4716-9a96-fffd5051dff9"
}