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": "418b2c8d-a35c-4039-b15c-838928b48ca9",
"ParentTaskId": "f46f037c-aac2-459e-9604-566cdd4d14b3",
"Integration": {
"IntegrationId": "d88927f6-49f6-4adb-ac0b-848fa9857f5f",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"a70da754-d0ca-418b-ba0c-fdcf8b89bbb7": 2.0,
"2b1151d3-595f-43d5-8ed3-b70b0fae448f": 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": "de0b0331-d53e-4281-96ff-0fd8183fa746",
"Name": "sample string 1",
"Created": "2026-05-23T07:59:57.5869436+00:00",
"Modified": "2026-05-23T07:59:57.5869436+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"36e73bbe-e912-4412-b389-840594ff76fe",
"76721477-679d-4554-9ef9-1263dff28c1e"
],
"NonLaborAssignments": [
{
"Id": "f4171565-274c-415b-a413-0268e3cd2188",
"ResourceId": "c9356d09-7f91-4052-a19a-652c1a747e72",
"Quantity": 3.0
},
{
"Id": "f4171565-274c-415b-a413-0268e3cd2188",
"ResourceId": "c9356d09-7f91-4052-a19a-652c1a747e72",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "6f3b3919-67c4-40d1-b021-fc91217fe425",
"Type": 0,
"ResourceId": "15860e07-b57e-4380-ae3e-80f04cd7ea4b",
"Units": 3.0
},
{
"Id": "6f3b3919-67c4-40d1-b021-fc91217fe425",
"Type": 0,
"ResourceId": "15860e07-b57e-4380-ae3e-80f04cd7ea4b",
"Units": 3.0
}
],
"ParentId": "352c76d6-8d78-40c8-a1df-c046486829be",
"WorkTypeParentId": "5398c6cc-87e6-497c-9cf4-248355af7d70",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "8e1461f9-c3db-46e2-a165-be7caa5e79c5",
"UPN": "1e5f7411-530f-4a65-a171-9b9272cc3f14",
"PostDate": "2026-05-23T07:59:57.5869436+00:00",
"Comment": "sample string 4",
"CC": [
"ff247c81-b24a-4464-85af-7453a8445beb",
"448f8d73-f7a1-44ff-9f19-35577417b459"
],
"Users": [
"fd40ffce-d3ad-4fea-80ba-dbe32452ac95",
"c36cdf2c-3925-445b-8f43-8ad9a36906b7"
]
},
{
"Id": "8e1461f9-c3db-46e2-a165-be7caa5e79c5",
"UPN": "1e5f7411-530f-4a65-a171-9b9272cc3f14",
"PostDate": "2026-05-23T07:59:57.5869436+00:00",
"Comment": "sample string 4",
"CC": [
"ff247c81-b24a-4464-85af-7453a8445beb",
"448f8d73-f7a1-44ff-9f19-35577417b459"
],
"Users": [
"fd40ffce-d3ad-4fea-80ba-dbe32452ac95",
"c36cdf2c-3925-445b-8f43-8ad9a36906b7"
]
}
],
"StartDate": "2026-05-23T07:59:57.5869436+00:00",
"DueDate": "2026-05-23T07:59:57.5869436+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"1575ea24-5fec-4356-be96-800ca25f99b6": "405f1c15-5a33-4f5b-ac79-88a7f7102986",
"a8fdcdfb-dc07-4662-9cb6-96eba6ac352a": "69d970f2-0268-4843-8bae-06006feeaed6"
},
"HasUpdates": true,
"Modified": "2026-05-23T07:59:57.5869436+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-05-23T07:59:57.5869436+00:00"
},
"LastComment": "2026-05-23T07:59:57.5869436+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "51d6e16a-8750-463c-85c1-eff6321c4fac",
"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": "184f8a22-6ee1-431b-8fa0-49061b4bd4cd",
"id": "7aed82be-c2e4-4feb-be9d-1c09554aba04",
"ConfigId": "55f66e86-c876-453f-8ddc-6d384dcaa5bc"
}