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": "337ae689-4fd8-4310-bdbc-3939e5f4a51a",
"ParentTaskId": "537dfba9-a7ec-46f6-9bd4-c9af87adf487",
"Integration": {
"IntegrationId": "fe1b8988-7fd0-49ce-9ef2-d5ef6749ad67",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"f50fa5a1-8dcd-4a9a-bd5d-2005c912e131": 2.0,
"58629dd3-ed90-463a-bda0-9df81a70e563": 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": "11218d62-b66e-427e-bdf3-d7802265455d",
"Name": "sample string 1",
"Created": "2026-06-02T11:52:59.9945931+00:00",
"Modified": "2026-06-02T11:52:59.9945931+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"e837c061-9c7f-4195-80e6-1c389b9233dc",
"99c39b30-951b-4b17-90df-3a8cd1ed0779"
],
"NonLaborAssignments": [
{
"Id": "2f31ecb8-01be-4e58-8165-aa776ab33b45",
"ResourceId": "f609e85f-c0aa-4bf0-aafe-535bdee156c0",
"Quantity": 3.0
},
{
"Id": "2f31ecb8-01be-4e58-8165-aa776ab33b45",
"ResourceId": "f609e85f-c0aa-4bf0-aafe-535bdee156c0",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "ec8cb622-e5de-4b77-a86e-6e4cda1498b1",
"Type": 0,
"ResourceId": "d1ad3f4e-4c8c-4303-b6e5-f0e985a629a7",
"Units": 3.0
},
{
"Id": "ec8cb622-e5de-4b77-a86e-6e4cda1498b1",
"Type": 0,
"ResourceId": "d1ad3f4e-4c8c-4303-b6e5-f0e985a629a7",
"Units": 3.0
}
],
"ParentId": "b36233c1-ff95-4ad0-b2f3-dab8ac185e84",
"WorkTypeParentId": "3d88bd27-1606-4816-8aa3-a5084b0bcd72",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "c8d6ff66-8b34-4e55-a314-05b15991eb92",
"UPN": "f4fa63a0-f7a8-4993-8240-702886f6cce6",
"PostDate": "2026-06-02T11:52:59.9945931+00:00",
"Comment": "sample string 4",
"CC": [
"9d3c8b37-e312-46fa-b2de-bd8ed4e697e3",
"43c22cb7-e021-489f-953b-72971867ebd7"
],
"Users": [
"54997028-f751-42e1-b61a-ee4852a25b3f",
"d334141c-9e49-4880-935f-e843b4503295"
]
},
{
"Id": "c8d6ff66-8b34-4e55-a314-05b15991eb92",
"UPN": "f4fa63a0-f7a8-4993-8240-702886f6cce6",
"PostDate": "2026-06-02T11:52:59.9945931+00:00",
"Comment": "sample string 4",
"CC": [
"9d3c8b37-e312-46fa-b2de-bd8ed4e697e3",
"43c22cb7-e021-489f-953b-72971867ebd7"
],
"Users": [
"54997028-f751-42e1-b61a-ee4852a25b3f",
"d334141c-9e49-4880-935f-e843b4503295"
]
}
],
"StartDate": "2026-06-02T11:52:59.9945931+00:00",
"DueDate": "2026-06-02T11:52:59.9945931+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"6afc68c6-83ac-468f-9cf9-fe369ab02513": "991618d1-20d0-4a4a-8230-2349041ef03c",
"68a540c6-4a17-4492-b08a-c5d97c826d1e": "805695f2-63da-4b0c-a5e8-a85796867a7f"
},
"HasUpdates": true,
"Modified": "2026-06-02T11:52:59.9945931+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-06-02T11:52:59.9945931+00:00"
},
"LastComment": "2026-06-02T11:52:59.9945931+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "6274be16-f43d-4fa7-b35a-7f7332d6ce94",
"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": "38dbd6be-0a65-43c3-b9cd-0355ad0561e8",
"id": "32deef44-dead-4b22-9362-56b2ff37709c",
"ConfigId": "819e3409-5c3f-4bac-a5b0-d8a71ae0bec4"
}