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": "93479b52-a696-45c9-8f1d-9a25a1169db8",
"ParentTaskId": "4a65d7d0-1c4d-4dea-9f9e-179dc00c5861",
"Integration": {
"IntegrationId": "e934f6f9-bcc3-4c5b-b391-23b82ab7f836",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"a8cf2fa7-ceb1-47a3-a327-d765ebba20f6": 2.0,
"aaaf69b5-3fd3-4d1e-908a-e81830854c14": 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": "812d594e-eff2-4219-bb8f-c85a7ade1163",
"Name": "sample string 1",
"Created": "2026-04-28T00:59:16.6861128+00:00",
"Modified": "2026-04-28T00:59:16.6861128+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"fd8f462f-9743-4d8e-9e38-a3abdb9d6ba1",
"e8203b5d-cb38-4a66-aa59-e30c87bb3ad9"
],
"NonLaborAssignments": [
{
"Id": "519c9eba-b334-4bf3-94fe-4eee1c55f636",
"ResourceId": "21a006ff-ef4a-4e1b-bbad-6a6f0656856a",
"Quantity": 3.0
},
{
"Id": "519c9eba-b334-4bf3-94fe-4eee1c55f636",
"ResourceId": "21a006ff-ef4a-4e1b-bbad-6a6f0656856a",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "cd16e525-5d9f-4d43-b303-7bdbad6c144f",
"Type": 0,
"ResourceId": "40782ae5-f2b1-41a9-89a6-7c4aecc421ae",
"Units": 3.0
},
{
"Id": "cd16e525-5d9f-4d43-b303-7bdbad6c144f",
"Type": 0,
"ResourceId": "40782ae5-f2b1-41a9-89a6-7c4aecc421ae",
"Units": 3.0
}
],
"ParentId": "ebf4c4f4-5c1d-425c-b343-495b47c2dfa8",
"WorkTypeParentId": "5164ddee-3651-4c77-8241-f3e817f0e744",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "e484c1a4-c6bf-458d-8ae3-0216f5a0bc77",
"UPN": "5a1969e2-1022-4a85-bc18-75251634838b",
"PostDate": "2026-04-28T00:59:16.6861128+00:00",
"Comment": "sample string 4",
"CC": [
"6cae5e56-ce8a-4b2b-9cc8-2a29acb670c6",
"7bea12e6-b365-42b0-81ec-8059274168dc"
],
"Users": [
"3391035e-b957-4f78-b214-b9406417dba7",
"f0715f77-427e-43c3-ab94-d10491b043cd"
]
},
{
"Id": "e484c1a4-c6bf-458d-8ae3-0216f5a0bc77",
"UPN": "5a1969e2-1022-4a85-bc18-75251634838b",
"PostDate": "2026-04-28T00:59:16.6861128+00:00",
"Comment": "sample string 4",
"CC": [
"6cae5e56-ce8a-4b2b-9cc8-2a29acb670c6",
"7bea12e6-b365-42b0-81ec-8059274168dc"
],
"Users": [
"3391035e-b957-4f78-b214-b9406417dba7",
"f0715f77-427e-43c3-ab94-d10491b043cd"
]
}
],
"StartDate": "2026-04-28T00:59:16.6861128+00:00",
"DueDate": "2026-04-28T00:59:16.6861128+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"e671f717-0f19-4ca0-8942-23311cac3d2e": "593aa33a-a7d3-497e-ab77-33966d7dd900",
"fcde1b70-bf33-4ccb-9a9c-3a1a569c873d": "6bcc8502-813b-4d46-b4b8-78134d1f9625"
},
"HasUpdates": true,
"Modified": "2026-04-28T00:59:16.6861128+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-04-28T00:59:16.6861128+00:00"
},
"LastComment": "2026-04-28T00:59:16.6861128+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "4bf9e970-3423-4af5-a3d3-c2bd5bb74042",
"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": "fc26b979-cddc-4c7c-87a9-fa9ef696e669",
"id": "cc4f67ae-d8ff-4543-b2b5-1c5baa5de879",
"ConfigId": "9086a9d1-273f-4b1f-8f83-9e10af4465d3"
}