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": "143a4cff-3c57-4774-9fac-4c44a2c9ff2a",
"ParentTaskId": "3b1fea70-9bed-4668-8eba-7fed49769ea3",
"Integration": {
"IntegrationId": "9e87324c-a73b-4c59-abe1-8310587db0c3",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"5f82a49f-0f17-4b8c-b886-6f8e99097ea0": 2.0,
"691af017-7b2d-4815-aa21-1efb458474b0": 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": "046f77eb-c6b1-4718-b249-3094367a7f49",
"Name": "sample string 1",
"Created": "2026-07-02T01:14:13.6828988+00:00",
"Modified": "2026-07-02T01:14:13.6828988+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"5416a425-be8d-4e40-a049-37c100bdec64",
"778781c1-9cff-4b3a-bfbe-c5b2661e002c"
],
"NonLaborAssignments": [
{
"Id": "7b982799-808b-445c-bbdd-5f838b046577",
"ResourceId": "c577f304-860d-4baa-ad14-81f501a97ba4",
"Quantity": 3.0
},
{
"Id": "7b982799-808b-445c-bbdd-5f838b046577",
"ResourceId": "c577f304-860d-4baa-ad14-81f501a97ba4",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "ce8deae5-76b4-4600-9325-8f4ab6be6e15",
"Type": 0,
"ResourceId": "53387660-de53-4d6c-a491-618cdbe78747",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "ce8deae5-76b4-4600-9325-8f4ab6be6e15",
"Type": 0,
"ResourceId": "53387660-de53-4d6c-a491-618cdbe78747",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "625dbc3f-7fd6-46b6-9acf-38d47db9d8de",
"WorkTypeParentId": "03949829-cc1d-4f71-ad27-d5c1d177664b",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "cd9e0a24-0f4b-4cbb-a0eb-b83a076bed1a",
"UPN": "b8429f78-0caa-45b6-bdc0-f9658a6c7357",
"PostDate": "2026-07-02T01:14:13.6828988+00:00",
"Comment": "sample string 4",
"CC": [
"41fe92aa-01b2-47b8-b6a7-28cab7adf3b8",
"ed634bd5-aacd-48cc-b5ed-8a3f2eb94656"
],
"Users": [
"89b9c483-e201-4da4-9b60-4be2fd8d5fac",
"f29c3333-89f8-4328-8201-16296dbe8988"
]
},
{
"Id": "cd9e0a24-0f4b-4cbb-a0eb-b83a076bed1a",
"UPN": "b8429f78-0caa-45b6-bdc0-f9658a6c7357",
"PostDate": "2026-07-02T01:14:13.6828988+00:00",
"Comment": "sample string 4",
"CC": [
"41fe92aa-01b2-47b8-b6a7-28cab7adf3b8",
"ed634bd5-aacd-48cc-b5ed-8a3f2eb94656"
],
"Users": [
"89b9c483-e201-4da4-9b60-4be2fd8d5fac",
"f29c3333-89f8-4328-8201-16296dbe8988"
]
}
],
"StartDate": "2026-07-02T01:14:13.6828988+00:00",
"DueDate": "2026-07-02T01:14:13.6828988+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"85eee529-95d4-4812-9628-aa6d75bed7fc": "2795c3e9-9391-429f-b29b-46a8572dadc7",
"33c7236a-61b0-4a39-9728-4caf9a0150da": "1c0a387c-8452-4220-bb96-6f5240618f6b"
},
"HasUpdates": true,
"Modified": "2026-07-02T01:14:13.6828988+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-07-02T01:14:13.6828988+00:00"
},
"LastComment": "2026-07-02T01:14:13.6828988+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "c74b7e86-7508-490d-9965-4ac8279c2952",
"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": "b7f384e6-7778-4914-854e-a5afcb1c6adf",
"id": "ae52b30c-993c-4524-b781-e439b7c5f305",
"ConfigId": "3fd127ce-3610-4956-ab22-ef3632002ff4"
}