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": "dc268656-653d-449e-939b-8e98bfb82609",
"ParentTaskId": "b4029047-3407-4bdd-ab24-fe70bbed56a9",
"Integration": {
"IntegrationId": "29006de6-e200-486a-b602-ba7f6a97a92b",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"e7033673-0cb9-4dfa-96cd-8427eec0e891": 2.0,
"3bb19452-4aa6-42cd-9b8c-c77bf4ff778c": 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": "fcba1921-db86-4c5f-8820-51fa48281b3d",
"Name": "sample string 1",
"Created": "2026-08-27T09:56:34.5445851+00:00",
"Modified": "2026-08-27T09:56:34.5445851+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"9c83413e-ebe5-4b0a-a011-5ceeddfbbcbe",
"5eb9b7ef-2a83-412b-92ff-c7a326072b9e"
],
"NonLaborAssignments": [
{
"Id": "27f91b67-78fa-4a40-ad5d-a3bc7fd4d66d",
"ResourceId": "36bb9d78-6892-4bd6-a2d3-f0fad836eea1",
"Quantity": 3.0
},
{
"Id": "27f91b67-78fa-4a40-ad5d-a3bc7fd4d66d",
"ResourceId": "36bb9d78-6892-4bd6-a2d3-f0fad836eea1",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "ce44154d-1881-4d0e-9462-ee4f8ddf316d",
"Type": 0,
"ResourceId": "2bc43c5b-55a8-4684-a6d5-8b473925cd6d",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "ce44154d-1881-4d0e-9462-ee4f8ddf316d",
"Type": 0,
"ResourceId": "2bc43c5b-55a8-4684-a6d5-8b473925cd6d",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "ea019ef0-c263-470a-9ee2-1638394c6550",
"WorkTypeParentId": "f467a6d3-5ad6-4502-90f3-638a0041e891",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "2fa95486-19c2-475a-9756-339b61359233",
"UPN": "c4af9036-ef86-4711-97cc-a87989f6f80f",
"PostDate": "2026-08-27T09:56:34.5445851+00:00",
"Comment": "sample string 4",
"CC": [
"6302d6b8-402e-4c50-850a-ab58d9e537e5",
"a78a3acd-38c4-4fee-a7bd-c1e16de5b302"
],
"Users": [
"2b3aa234-6c8d-4ba4-8ab9-9a9a061540f0",
"f8af6f76-305c-4d81-90ab-f63f8d2f6e40"
]
},
{
"Id": "2fa95486-19c2-475a-9756-339b61359233",
"UPN": "c4af9036-ef86-4711-97cc-a87989f6f80f",
"PostDate": "2026-08-27T09:56:34.5445851+00:00",
"Comment": "sample string 4",
"CC": [
"6302d6b8-402e-4c50-850a-ab58d9e537e5",
"a78a3acd-38c4-4fee-a7bd-c1e16de5b302"
],
"Users": [
"2b3aa234-6c8d-4ba4-8ab9-9a9a061540f0",
"f8af6f76-305c-4d81-90ab-f63f8d2f6e40"
]
}
],
"StartDate": "2026-08-27T09:56:34.5445851+00:00",
"DueDate": "2026-08-27T09:56:34.5445851+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"88fecbb6-bfda-4728-9790-bff96ae805b9": "8902ba82-7746-401e-8342-a36ed4b388b6",
"9a138d21-871f-4413-bd61-b7b58c975fc3": "d8bee215-106b-485b-aa7c-5e9117286d6e"
},
"HasUpdates": true,
"Modified": "2026-08-27T09:56:34.5445851+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-27T09:56:34.5445851+00:00"
},
"LastComment": "2026-08-27T09:56:34.5445851+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "963a073f-adce-49b9-a6e1-5810ce33d900",
"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": "d27d4f5b-22a1-45b5-8613-ef8dc8367cb6",
"id": "6f7999ea-9c9d-40a1-bb4b-70f13f457e0c",
"ConfigId": "cf6e9999-5e38-457b-bfb5-f385dae3557c"
}