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": "18dc29c7-430c-47ae-8f1f-dcc9f68e53ed",
"ParentTaskId": "abb22c81-ce15-44ba-bcef-9aaf85e1f7ef",
"Integration": {
"IntegrationId": "39e7c374-9ce7-4c9e-8a72-87c06a289f85",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"fdcf266d-9b21-4ebd-b4d2-8960d1199121": 2.0,
"5edc766b-eb8e-4d24-adba-4ce1133ee6a9": 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": "d0e0f6ee-be54-4f05-b5a5-89f283a4d9d9",
"Name": "sample string 1",
"Created": "2026-08-03T07:57:10.4719967+00:00",
"Modified": "2026-08-03T07:57:10.4719967+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"25e314f0-bbe5-4466-9812-46026a22585b",
"deb51b75-0998-4821-b1cd-e2d3426a073f"
],
"NonLaborAssignments": [
{
"Id": "283d5af0-d4c9-4696-bb63-5c2fe70fe8bb",
"ResourceId": "011903dc-2cc5-416f-8fe5-3181e7961ec8",
"Quantity": 3.0
},
{
"Id": "283d5af0-d4c9-4696-bb63-5c2fe70fe8bb",
"ResourceId": "011903dc-2cc5-416f-8fe5-3181e7961ec8",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "bb8b24ab-a161-4f37-8b25-3cc088df6048",
"Type": 0,
"ResourceId": "7866b047-c1fa-44ff-8cee-42bda3803ddc",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "bb8b24ab-a161-4f37-8b25-3cc088df6048",
"Type": 0,
"ResourceId": "7866b047-c1fa-44ff-8cee-42bda3803ddc",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "f656c156-d40e-412f-bd6f-00d3d6defd4e",
"WorkTypeParentId": "f26516d4-9ba3-4e4a-952a-69e094d44239",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "6d62eceb-5e9f-4b77-98dd-692bdb57d82c",
"UPN": "7eb59265-7dd6-41f7-88a2-f5375839415b",
"PostDate": "2026-08-03T07:57:10.4719967+00:00",
"Comment": "sample string 4",
"CC": [
"2556441f-d06f-4de0-b2b0-2bb61b2cc2e6",
"d642b350-2120-419b-bafc-8174fe33d175"
],
"Users": [
"4e2986c6-beaa-4200-80eb-916d7a7195c6",
"11dd2725-bf46-4979-ade2-c737781c48b3"
]
},
{
"Id": "6d62eceb-5e9f-4b77-98dd-692bdb57d82c",
"UPN": "7eb59265-7dd6-41f7-88a2-f5375839415b",
"PostDate": "2026-08-03T07:57:10.4719967+00:00",
"Comment": "sample string 4",
"CC": [
"2556441f-d06f-4de0-b2b0-2bb61b2cc2e6",
"d642b350-2120-419b-bafc-8174fe33d175"
],
"Users": [
"4e2986c6-beaa-4200-80eb-916d7a7195c6",
"11dd2725-bf46-4979-ade2-c737781c48b3"
]
}
],
"StartDate": "2026-08-03T07:57:10.4719967+00:00",
"DueDate": "2026-08-03T07:57:10.4719967+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"3337413e-4636-46f3-a1e2-c6ea097cc23c": "b0d0c974-2e6a-45ff-8d1d-424d4569acfd",
"c039a386-0281-4eeb-9439-961aa7604a04": "4c06f265-3836-456c-bdd7-61d18d7e4cc1"
},
"HasUpdates": true,
"Modified": "2026-08-03T07:57:10.4719967+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-03T07:57:10.4719967+00:00"
},
"LastComment": "2026-08-03T07:57:10.4719967+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "eeda61bd-3922-4831-85be-31c9f7124967",
"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": "6f39c278-b7e8-46a7-9904-f96c93bfbe7e",
"id": "ca063960-f3cd-4f7d-8919-bd022e2c119f",
"ConfigId": "4fcfdf34-4cfd-4059-9331-9f312c254c6c"
}