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": "b81a478c-57a1-483e-ae46-60c8c92d9e2f",
"ParentTaskId": "4f2b99df-285c-4f69-9fa0-57f14822dfb6",
"Integration": {
"IntegrationId": "2136f66b-2650-4aad-a41c-fc22e3d46c47",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"2eef921c-cf20-4523-b911-a4f6681c258d": 2.0,
"7cf1f9b2-34c5-4521-9e0d-4485425aa23e": 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": "7e24f66d-e80c-4839-9359-ab1dccf60c9a",
"Name": "sample string 1",
"Created": "2026-08-05T18:49:20.9136116+00:00",
"Modified": "2026-08-05T18:49:20.9136116+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"1e225e3f-7503-4d5c-ac9b-74d5e44e8f01",
"b1bcefa6-681e-4f6f-b1f8-58eae223e924"
],
"NonLaborAssignments": [
{
"Id": "32018076-9e70-48be-ba84-9f1f615ee340",
"ResourceId": "2b59a9ea-ecf2-4cab-bd49-00c6da160388",
"Quantity": 3.0
},
{
"Id": "32018076-9e70-48be-ba84-9f1f615ee340",
"ResourceId": "2b59a9ea-ecf2-4cab-bd49-00c6da160388",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "1841136c-f2f7-4021-80db-5511baf42068",
"Type": 0,
"ResourceId": "57bfcd76-c4a3-4bf0-9cc7-5a74c10f92c3",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "1841136c-f2f7-4021-80db-5511baf42068",
"Type": 0,
"ResourceId": "57bfcd76-c4a3-4bf0-9cc7-5a74c10f92c3",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "eb67e60d-2561-41d8-8fb9-b179b774d76e",
"WorkTypeParentId": "d251c1ba-a105-49ef-b5fd-0a27d2a94bc1",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "0e0ca182-6490-40fd-97ee-58f521dc0f43",
"UPN": "971157b1-9c69-45ab-9202-903673932446",
"PostDate": "2026-08-05T18:49:20.9136116+00:00",
"Comment": "sample string 4",
"CC": [
"98e1a955-2b89-430e-8297-d071d8980d9f",
"94e0d6ae-6fda-42d5-b334-c485274facb1"
],
"Users": [
"678e3f8a-70e9-4fc6-aa10-266b5af6467b",
"b2cb9986-907e-4a09-8afc-b00fc22f3388"
]
},
{
"Id": "0e0ca182-6490-40fd-97ee-58f521dc0f43",
"UPN": "971157b1-9c69-45ab-9202-903673932446",
"PostDate": "2026-08-05T18:49:20.9136116+00:00",
"Comment": "sample string 4",
"CC": [
"98e1a955-2b89-430e-8297-d071d8980d9f",
"94e0d6ae-6fda-42d5-b334-c485274facb1"
],
"Users": [
"678e3f8a-70e9-4fc6-aa10-266b5af6467b",
"b2cb9986-907e-4a09-8afc-b00fc22f3388"
]
}
],
"StartDate": "2026-08-05T18:49:20.9136116+00:00",
"DueDate": "2026-08-05T18:49:20.9136116+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"d138be6d-2071-44e4-8993-08915f4caa66": "1623ef2c-52d3-48d0-b1bd-2c68731f0b6f",
"191dc371-67c3-47ad-8df4-817f366299e3": "a4441cae-a30f-4287-843f-01b2e497439f"
},
"HasUpdates": true,
"Modified": "2026-08-05T18:49:20.9136116+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-05T18:49:20.9136116+00:00"
},
"LastComment": "2026-08-05T18:49:20.9136116+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "3d2a72d2-e7ad-4c05-9a5e-eb96d6d8b523",
"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": "5dc5df34-a4e1-433a-96c0-26c6bf0a747d",
"id": "a4fbdd08-4951-4ca1-8da6-ceeb87c63345",
"ConfigId": "1cf2067a-bf3f-4cfa-824b-f9b4b0e5f92b"
}