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": "515d4ea6-b602-47f3-b2e4-d154e520b430",
"ParentTaskId": "6bf6c210-da11-4673-9709-d3a976e0c64b",
"Integration": {
"IntegrationId": "554f575b-fac7-4ec5-9167-1e94d1ac0d3f",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"0d6c654f-c856-48e9-b39a-2613b521953c": 2.0,
"c532243c-0b7e-4bb1-9436-c5b39bb13342": 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": "df4e4ff3-c5e0-4e72-87c5-cd9b635bbbe8",
"Name": "sample string 1",
"Created": "2026-08-19T22:19:21.1148953+00:00",
"Modified": "2026-08-19T22:19:21.1148953+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"0d33d1f0-e001-413d-a106-b9e63362eed9",
"ecbf67d9-ff99-4233-9e58-d8144d03eec2"
],
"NonLaborAssignments": [
{
"Id": "3e0bc63e-e7e2-4715-9d8e-ef029505a10b",
"ResourceId": "5ef1d730-6a30-43ce-b833-588fdcbf4db6",
"Quantity": 3.0
},
{
"Id": "3e0bc63e-e7e2-4715-9d8e-ef029505a10b",
"ResourceId": "5ef1d730-6a30-43ce-b833-588fdcbf4db6",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "41e8863c-ea8a-4dd4-a267-0840095859a5",
"Type": 0,
"ResourceId": "5643fc09-ada4-4eed-90c1-fc7deb63a9da",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "41e8863c-ea8a-4dd4-a267-0840095859a5",
"Type": 0,
"ResourceId": "5643fc09-ada4-4eed-90c1-fc7deb63a9da",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "a44993a0-9640-4c00-ba22-120cb6873715",
"WorkTypeParentId": "46ee13a7-7a4f-494d-a0a0-94e494e47a08",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "363f66fb-ec78-41df-8559-08923c5f9675",
"UPN": "8abcda89-d488-4b42-80ab-7aeee55cda4a",
"PostDate": "2026-08-19T22:19:21.1148953+00:00",
"Comment": "sample string 4",
"CC": [
"3bedbd7e-c673-4b9f-bb8f-edac69873116",
"1a9f5af2-c709-4aee-b929-2fed939dea9d"
],
"Users": [
"5b301cf4-63be-424a-8640-09cb64f36d58",
"9951a0a6-7a4f-4e93-8bbd-87e1d14e9fe1"
]
},
{
"Id": "363f66fb-ec78-41df-8559-08923c5f9675",
"UPN": "8abcda89-d488-4b42-80ab-7aeee55cda4a",
"PostDate": "2026-08-19T22:19:21.1148953+00:00",
"Comment": "sample string 4",
"CC": [
"3bedbd7e-c673-4b9f-bb8f-edac69873116",
"1a9f5af2-c709-4aee-b929-2fed939dea9d"
],
"Users": [
"5b301cf4-63be-424a-8640-09cb64f36d58",
"9951a0a6-7a4f-4e93-8bbd-87e1d14e9fe1"
]
}
],
"StartDate": "2026-08-19T22:19:21.1148953+00:00",
"DueDate": "2026-08-19T22:19:21.1148953+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"92e0aeb9-f5fc-4c6d-9f21-588d7660277e": "09358100-f3fb-4b08-9f22-be897a0d5145",
"73beca0b-e5aa-46d4-aae3-33769feeab39": "3af5f5fe-4738-45ea-8c3b-cd5e96a1d72d"
},
"HasUpdates": true,
"Modified": "2026-08-19T22:19:21.1148953+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-19T22:19:21.1148953+00:00"
},
"LastComment": "2026-08-19T22:19:21.1148953+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "ae6ec2a5-1684-49ee-bdfa-c42ac245a312",
"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": "1b5a36c0-bd8c-4086-be17-362e5124b634",
"id": "266ef3c6-f982-4006-a579-4c626aa128b6",
"ConfigId": "b61bedd7-e4ae-4b4d-ae77-20e9f213888f"
}