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": "075395fa-7ecd-488a-bdc7-8126884ae222",
"ParentTaskId": "c087e69e-f26a-42ba-8a38-b2876f13318a",
"Integration": {
"IntegrationId": "dfa1cc44-34dd-42f5-bfb5-a01064dcf740",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"9d1b5d91-65db-485b-a9b3-694ed1298e87": 2.0,
"014aeb95-8f94-496b-b4a8-730961e30b8d": 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": "b20d87c1-e4c6-4ab0-b3ea-e3540249aeb1",
"Name": "sample string 1",
"Created": "2026-08-06T07:36:27.3433294+00:00",
"Modified": "2026-08-06T07:36:27.3433294+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"693ff587-d4dc-48ea-89ee-38fa811e0953",
"a06e1818-8540-4f1c-a892-f41f22de832f"
],
"NonLaborAssignments": [
{
"Id": "138b8076-75fc-49cc-8fac-14553af3f5d6",
"ResourceId": "a8c8890b-be55-4aee-871c-8dc419c59348",
"Quantity": 3.0
},
{
"Id": "138b8076-75fc-49cc-8fac-14553af3f5d6",
"ResourceId": "a8c8890b-be55-4aee-871c-8dc419c59348",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "1d86a95e-55eb-41e2-b12c-4317cb482bd8",
"Type": 0,
"ResourceId": "230be67f-8b8c-4153-9cf7-6e9b43549f03",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "1d86a95e-55eb-41e2-b12c-4317cb482bd8",
"Type": 0,
"ResourceId": "230be67f-8b8c-4153-9cf7-6e9b43549f03",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "8d360ee2-a5ae-4719-82e0-3e343d140fd3",
"WorkTypeParentId": "40279fcd-b8bb-4f35-822c-c4233359e480",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "18119439-dcb9-4b4c-a5eb-d23d5afd5e05",
"UPN": "0246d6c4-f88c-46e9-a9c8-d954f17ce78c",
"PostDate": "2026-08-06T07:36:27.3433294+00:00",
"Comment": "sample string 4",
"CC": [
"01d9e9a1-ec97-40ae-891b-c5e9ca6abfe6",
"c666b44e-6267-4b85-8ec4-74730148d180"
],
"Users": [
"6c4f7fdb-fe16-4b7e-a341-4e19d24753b6",
"c612cc0e-ce09-4253-96d6-02172d865019"
]
},
{
"Id": "18119439-dcb9-4b4c-a5eb-d23d5afd5e05",
"UPN": "0246d6c4-f88c-46e9-a9c8-d954f17ce78c",
"PostDate": "2026-08-06T07:36:27.3433294+00:00",
"Comment": "sample string 4",
"CC": [
"01d9e9a1-ec97-40ae-891b-c5e9ca6abfe6",
"c666b44e-6267-4b85-8ec4-74730148d180"
],
"Users": [
"6c4f7fdb-fe16-4b7e-a341-4e19d24753b6",
"c612cc0e-ce09-4253-96d6-02172d865019"
]
}
],
"StartDate": "2026-08-06T07:36:27.3433294+00:00",
"DueDate": "2026-08-06T07:36:27.3433294+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"9d7a92bb-3187-4c5b-8634-88e7fcbe3219": "3741610a-6549-4169-b9fc-a2657a04ca7b",
"35fad03a-3f53-4739-8c89-e27478777109": "e0eb432d-9add-4656-9f1f-a9d6c757657d"
},
"HasUpdates": true,
"Modified": "2026-08-06T07:36:27.3433294+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-06T07:36:27.3433294+00:00"
},
"LastComment": "2026-08-06T07:36:27.3433294+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "6d83b071-7c85-436a-9a5a-dfe1da20797b",
"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": "4d3b4520-0c48-47c7-a514-7978d9a03e56",
"id": "6ce06368-53f7-44ae-9356-8241b7b546ce",
"ConfigId": "ce5f4b27-e394-44c5-a743-f77b97bf89ce"
}