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": "8cdb6e31-e17d-4bb6-8b21-db115562a500",
"ParentTaskId": "fe5a8aa7-a447-43d4-bf44-477a7b5ac5dc",
"Integration": {
"IntegrationId": "eea7f9f2-e788-4fb7-b48a-0deafff03f2a",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"57c4b32e-501d-4376-98d9-a9ca7da41f22": 2.0,
"8ffb6c72-e654-4d52-b086-6bcd410c2912": 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": "d53843d0-fbd9-4cd3-b798-44ae043ff70f",
"Name": "sample string 1",
"Created": "2026-08-01T09:19:29.7977355+00:00",
"Modified": "2026-08-01T09:19:29.7977355+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"421a3571-d9e8-4620-b962-430cdeaf0a87",
"94486968-3b4d-4bf4-81a8-81470464fcf1"
],
"NonLaborAssignments": [
{
"Id": "c5de8299-01fe-40e5-a3a5-c79bb381e406",
"ResourceId": "6a5f8cbb-90ca-434d-9cc5-e2b56dd3fabb",
"Quantity": 3.0
},
{
"Id": "c5de8299-01fe-40e5-a3a5-c79bb381e406",
"ResourceId": "6a5f8cbb-90ca-434d-9cc5-e2b56dd3fabb",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "1a86fb75-19ba-4a81-80a0-b2a1fffce19e",
"Type": 0,
"ResourceId": "1e16385c-179b-4680-bc86-e9d70609dcc6",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "1a86fb75-19ba-4a81-80a0-b2a1fffce19e",
"Type": 0,
"ResourceId": "1e16385c-179b-4680-bc86-e9d70609dcc6",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "b4eb1e45-384a-4588-9a99-c7c7ed6760f7",
"WorkTypeParentId": "af55698b-c60a-4063-b268-2d20c75f7aa8",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "2ce9cdd7-7a50-4133-9509-6530d7e7acb9",
"UPN": "9af969ec-fa28-4d4d-b34b-5a52cb95eda3",
"PostDate": "2026-08-01T09:19:29.7977355+00:00",
"Comment": "sample string 4",
"CC": [
"39b0dace-f932-432e-b343-3ea56643653c",
"390b9c8c-0fed-4c10-b8b9-bcfc3232a3b7"
],
"Users": [
"94ef8d7c-13f3-4583-b65c-74075b656cbc",
"ffb2162a-bc14-4a29-b9e1-c1ddad389fe7"
]
},
{
"Id": "2ce9cdd7-7a50-4133-9509-6530d7e7acb9",
"UPN": "9af969ec-fa28-4d4d-b34b-5a52cb95eda3",
"PostDate": "2026-08-01T09:19:29.7977355+00:00",
"Comment": "sample string 4",
"CC": [
"39b0dace-f932-432e-b343-3ea56643653c",
"390b9c8c-0fed-4c10-b8b9-bcfc3232a3b7"
],
"Users": [
"94ef8d7c-13f3-4583-b65c-74075b656cbc",
"ffb2162a-bc14-4a29-b9e1-c1ddad389fe7"
]
}
],
"StartDate": "2026-08-01T09:19:29.7977355+00:00",
"DueDate": "2026-08-01T09:19:29.7977355+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"04bbdf56-e83d-4c29-b769-1c365512f8d9": "6dfad71f-cf8c-45f9-8378-92e687cda9b6",
"ff9f7ab9-9d5c-4632-be34-9d39bcec22c5": "526b793e-5dcf-49b7-b799-0089841cf73c"
},
"HasUpdates": true,
"Modified": "2026-08-01T09:19:29.7977355+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-01T09:19:29.7977355+00:00"
},
"LastComment": "2026-08-01T09:19:29.7977355+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "5754586f-bda0-48b8-a59e-93ef8efc1d15",
"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": "1dfa32e4-271f-4008-a987-de9c9d270d38",
"id": "a07ede48-1a22-4335-965d-4389d3f60b95",
"ConfigId": "449c50db-5de7-4ec6-91f7-d338c3142eda"
}