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": "f6723234-eba4-441f-8e3f-5d0817b233d8",
"ParentTaskId": "0aa189a7-9dcb-4ed3-b537-72b1071fcd9b",
"Integration": {
"IntegrationId": "1c7b6e78-c107-4244-8d8c-25b9b493e24d",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"87b009b5-d759-4596-bac1-57d435c57378": 2.0,
"90a0f09b-cfff-4e0d-a516-ba543c7e5cbb": 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": "b887558f-7bda-4e0e-a675-72baf61b635d",
"Name": "sample string 1",
"Created": "2025-11-19T05:13:50.6177889+00:00",
"Modified": "2025-11-19T05:13:50.6177889+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"d4162452-9369-45e8-9a34-8577b299c6f4",
"fc74f306-0c71-426f-8183-8d2e48b87c5e"
],
"NonLaborAssignments": [
{
"Id": "7979f9d2-467e-42b3-98e5-fb90ac8321d4",
"ResourceId": "8b20421e-615f-437e-8888-e01604e776b8",
"Quantity": 3.0
},
{
"Id": "7979f9d2-467e-42b3-98e5-fb90ac8321d4",
"ResourceId": "8b20421e-615f-437e-8888-e01604e776b8",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "7f31c5c8-31a0-4225-b378-4e91dbc8515f",
"Type": 0,
"ResourceId": "089fb998-8957-4797-8f14-e6719eb06627",
"Units": 3.0
},
{
"Id": "7f31c5c8-31a0-4225-b378-4e91dbc8515f",
"Type": 0,
"ResourceId": "089fb998-8957-4797-8f14-e6719eb06627",
"Units": 3.0
}
],
"ParentId": "04dddafe-8939-49eb-bcbb-ae65be24127d",
"WorkTypeParentId": "27672612-05f5-4cf9-aedd-36e2462ceed1",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "f32e628e-9aca-4eae-a4f3-91512e749971",
"UPN": "a87ed244-e118-4de5-9e8c-a7ce108b41e9",
"PostDate": "2025-11-19T05:13:50.6177889+00:00",
"Comment": "sample string 4",
"CC": [
"b4da3c17-75af-4837-ac7e-a89c5c8cf2d1",
"a3e98021-6edf-408f-a40b-2ab2435a4a4a"
],
"Users": [
"0f98578a-4d9f-4fa7-aaf3-147601e2093f",
"b9012c40-051e-4a40-b572-d13f184ffc13"
]
},
{
"Id": "f32e628e-9aca-4eae-a4f3-91512e749971",
"UPN": "a87ed244-e118-4de5-9e8c-a7ce108b41e9",
"PostDate": "2025-11-19T05:13:50.6177889+00:00",
"Comment": "sample string 4",
"CC": [
"b4da3c17-75af-4837-ac7e-a89c5c8cf2d1",
"a3e98021-6edf-408f-a40b-2ab2435a4a4a"
],
"Users": [
"0f98578a-4d9f-4fa7-aaf3-147601e2093f",
"b9012c40-051e-4a40-b572-d13f184ffc13"
]
}
],
"StartDate": "2025-11-19T05:13:50.6177889+00:00",
"DueDate": "2025-11-19T05:13:50.6177889+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"49bc6c4a-d63f-464b-a097-6cb22d759038": "db288c15-cf80-4f7e-b871-c87eb863b8d7",
"379f4e11-6cd8-4b12-b257-b5a89e04d467": "d9ef3dea-d06e-40ce-b0c5-d47ec86b2082"
},
"HasUpdates": true,
"Modified": "2025-11-19T05:13:50.6177889+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": "2025-11-19T05:13:50.6177889+00:00"
},
"LastComment": "2025-11-19T05:13:50.6177889+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "f0ab1484-9ae0-4c40-bc25-49c91c758239",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"WorkPlanId": "665ea5cb-9f05-48c7-bd2d-8fb9f8144b30",
"id": "4550aa7a-aa5b-46fe-b6d2-f57bdfd9999e",
"ConfigId": "7f7b0c1d-9fce-4fd3-addb-325ee14811a6"
}