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": "5352293a-244b-483a-9d54-4eb81abdcba6",
"ParentTaskId": "e0977027-ceea-4714-9ae1-9922e1dec3ea",
"Integration": {
"IntegrationId": "12fcb377-dd38-4886-a8d8-1bd805cfc2bf",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"59894080-c29a-4ce9-9aac-2d53e62a6cd7": 2.0,
"d002df11-d8f1-4e63-b628-36306ea9aa7a": 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": "1b6bfd95-eacf-4cd0-857c-91b6c9b92efe",
"Name": "sample string 1",
"Created": "2026-08-20T23:30:35.0361134+00:00",
"Modified": "2026-08-20T23:30:35.0361134+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"6c932a89-5ec6-4984-bfd4-372dc2721302",
"11dfae5a-c46a-4533-aacd-b22791534006"
],
"NonLaborAssignments": [
{
"Id": "d4571a49-8a75-4932-aacf-e122b22a9636",
"ResourceId": "ee506329-eadc-40c1-87b0-8d064ef62e6b",
"Quantity": 3.0
},
{
"Id": "d4571a49-8a75-4932-aacf-e122b22a9636",
"ResourceId": "ee506329-eadc-40c1-87b0-8d064ef62e6b",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "07f3fa97-effc-4e7f-9243-bae6dcc27684",
"Type": 0,
"ResourceId": "9f435254-5c0a-49b2-a9d8-7b149df69bd0",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "07f3fa97-effc-4e7f-9243-bae6dcc27684",
"Type": 0,
"ResourceId": "9f435254-5c0a-49b2-a9d8-7b149df69bd0",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "1af2e1d2-d638-4c7f-81f2-18fe6c50c43c",
"WorkTypeParentId": "09f7ee60-3696-499a-a1b0-4c6cad554129",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "2b74e5d5-37e1-4369-9cc9-87e0b515dc67",
"UPN": "3d2e22ca-9b73-4fdf-9d1f-25b17e6bc5a2",
"PostDate": "2026-08-20T23:30:35.0361134+00:00",
"Comment": "sample string 4",
"CC": [
"c1938ed5-c942-41cf-a35c-c48632bdf0d4",
"6f224935-7f08-4050-b529-184a95638c63"
],
"Users": [
"c22517af-f378-4954-93f6-7b1bf5959d28",
"de6b04ce-797c-452d-ad09-533089ff8ac6"
]
},
{
"Id": "2b74e5d5-37e1-4369-9cc9-87e0b515dc67",
"UPN": "3d2e22ca-9b73-4fdf-9d1f-25b17e6bc5a2",
"PostDate": "2026-08-20T23:30:35.0361134+00:00",
"Comment": "sample string 4",
"CC": [
"c1938ed5-c942-41cf-a35c-c48632bdf0d4",
"6f224935-7f08-4050-b529-184a95638c63"
],
"Users": [
"c22517af-f378-4954-93f6-7b1bf5959d28",
"de6b04ce-797c-452d-ad09-533089ff8ac6"
]
}
],
"StartDate": "2026-08-20T23:30:35.0361134+00:00",
"DueDate": "2026-08-20T23:30:35.0361134+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"35d116b1-5b5a-40f8-a9a0-52e6c53a5530": "1a9b3722-bb10-4221-a99c-e4648f04164a",
"f06798d7-6b71-410a-8d4e-cd3f7c967003": "3cda7e3b-7cd6-4ece-a735-ef0a539cb701"
},
"HasUpdates": true,
"Modified": "2026-08-20T23:30:35.0361134+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-20T23:30:35.0361134+00:00"
},
"LastComment": "2026-08-20T23:30:35.0361134+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "bd5b9737-a53c-4cee-9a85-afbc213f4bb1",
"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": "3dc0fe65-f37b-430a-a8f6-3561c6929f8c",
"id": "2fec1c07-8c2e-4a47-9d3d-cc1e9c13634e",
"ConfigId": "3f61fb51-8c0a-4a5d-9290-c730feb8081b"
}