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": "ffc87be9-d53c-44a8-80cd-950051a565e7",
"ParentTaskId": "07283da2-0ea6-404c-8325-7341c03d58b5",
"Integration": {
"IntegrationId": "8e4537ea-b7f0-47ca-a1fb-8b4733f26acd",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"30fd6be7-ce9e-42cf-93d6-7af0594cb21d": 2.0,
"4f17f696-3d3e-4bb3-962b-747bfd779155": 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": "671cfa1a-cf44-458d-b8e7-6fc2ed4ff780",
"Name": "sample string 1",
"Created": "2026-08-08T11:15:23.7960933+00:00",
"Modified": "2026-08-08T11:15:23.7960933+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"a170d0b6-6657-4c4a-bf35-ee4b80ad3e72",
"a6fd1ff4-922b-486b-abbf-53f25aa510c8"
],
"NonLaborAssignments": [
{
"Id": "63c87efb-fef5-4dc9-9d23-5b798adfcb3f",
"ResourceId": "4fd02800-7fa2-4921-935b-6c4410a60a84",
"Quantity": 3.0
},
{
"Id": "63c87efb-fef5-4dc9-9d23-5b798adfcb3f",
"ResourceId": "4fd02800-7fa2-4921-935b-6c4410a60a84",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "f71229ca-6c55-4fee-92ae-d80a59fbaa31",
"Type": 0,
"ResourceId": "7c5f9d32-9d46-4000-b816-d5f9c1855191",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "f71229ca-6c55-4fee-92ae-d80a59fbaa31",
"Type": 0,
"ResourceId": "7c5f9d32-9d46-4000-b816-d5f9c1855191",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "6abce7bf-c526-49d8-b7c3-d8cfa3002828",
"WorkTypeParentId": "4e51de4d-9ff7-45e7-a447-096c55f89855",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "40dd0b80-def5-4d42-9adb-90163f803d8d",
"UPN": "9ecef7d5-2c63-4278-9e7f-3f79014aaaf2",
"PostDate": "2026-08-08T11:15:23.7960933+00:00",
"Comment": "sample string 4",
"CC": [
"1ea19e9b-e7a9-4200-bdef-bc7c876e6768",
"adca602d-3292-4710-a418-acec0ab1d14c"
],
"Users": [
"5d78c011-4725-4f50-8691-ed2020d6b487",
"519cdcf2-c32b-49c9-91da-b2543b83484b"
]
},
{
"Id": "40dd0b80-def5-4d42-9adb-90163f803d8d",
"UPN": "9ecef7d5-2c63-4278-9e7f-3f79014aaaf2",
"PostDate": "2026-08-08T11:15:23.7960933+00:00",
"Comment": "sample string 4",
"CC": [
"1ea19e9b-e7a9-4200-bdef-bc7c876e6768",
"adca602d-3292-4710-a418-acec0ab1d14c"
],
"Users": [
"5d78c011-4725-4f50-8691-ed2020d6b487",
"519cdcf2-c32b-49c9-91da-b2543b83484b"
]
}
],
"StartDate": "2026-08-08T11:15:23.7960933+00:00",
"DueDate": "2026-08-08T11:15:23.7960933+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"4dfb425a-e67f-4612-a8be-b153aa1499f7": "e856c806-9d0e-4d17-be25-1c619c7608f0",
"6303d9c3-a031-444e-9b37-eb6a4e236df6": "2a86a3a2-458f-494a-966f-d09a9d144fb7"
},
"HasUpdates": true,
"Modified": "2026-08-08T11:15:23.7960933+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-08T11:15:23.7960933+00:00"
},
"LastComment": "2026-08-08T11:15:23.7960933+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "d3f39a4b-833c-4b65-a3cd-ec16c5bfd2be",
"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": "bb7a542b-afa4-4546-85a8-6cad04e101d7",
"id": "8a734c09-68f8-48c0-b05a-d8b34e6a9bc0",
"ConfigId": "783908c8-3a1d-4575-969d-2041e54eab28"
}