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": "feb002fc-bc73-45a3-adec-37050dd09414",
"ParentTaskId": "955ff54b-c84a-4ca8-99d4-d115b913f906",
"Integration": {
"IntegrationId": "79ac1f58-bd24-4722-9ac4-be0e082316af",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"2f91874c-fdd9-4f93-aa16-e4f083c21cf7": 2.0,
"9829fc98-acac-4f39-9084-1f4a0ddfb46c": 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": "d22963a4-e07c-466a-9bf9-8c3869149d4d",
"Name": "sample string 1",
"Created": "2026-08-22T13:46:03.0468197+00:00",
"Modified": "2026-08-22T13:46:03.0468197+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"6ebcd368-96d4-40c9-8f0f-004b725672b4",
"4c1ba4a2-6a62-4dae-b5e2-7c068410b1bb"
],
"NonLaborAssignments": [
{
"Id": "9350d18d-02e8-4457-a13c-e04981543bd9",
"ResourceId": "e2a5c31d-d350-4b80-8d4b-7681276b0da5",
"Quantity": 3.0
},
{
"Id": "9350d18d-02e8-4457-a13c-e04981543bd9",
"ResourceId": "e2a5c31d-d350-4b80-8d4b-7681276b0da5",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "5c5284c2-87e1-4989-a8fc-574bc3ee54a2",
"Type": 0,
"ResourceId": "a917d437-db7c-4ea6-ad3f-b1d67413f9b2",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "5c5284c2-87e1-4989-a8fc-574bc3ee54a2",
"Type": 0,
"ResourceId": "a917d437-db7c-4ea6-ad3f-b1d67413f9b2",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "f91ff17c-5906-4f5d-864e-7ccbfa49acb9",
"WorkTypeParentId": "4e319f07-3294-43df-8d15-22312ca743c5",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "4b7ec496-1f66-488b-be29-34c790bebcb7",
"UPN": "c73a06ff-f25f-401f-84d6-396d3ca156b5",
"PostDate": "2026-08-22T13:46:03.0468197+00:00",
"Comment": "sample string 4",
"CC": [
"6018f575-ef8d-4324-9611-6734bd06d791",
"b9d9396c-6112-4830-bd08-f58c84465031"
],
"Users": [
"8b64fcfb-c3b4-4714-82c9-38af67dd8351",
"e3e8a908-27dd-4e20-9268-80d9d0de1552"
]
},
{
"Id": "4b7ec496-1f66-488b-be29-34c790bebcb7",
"UPN": "c73a06ff-f25f-401f-84d6-396d3ca156b5",
"PostDate": "2026-08-22T13:46:03.0468197+00:00",
"Comment": "sample string 4",
"CC": [
"6018f575-ef8d-4324-9611-6734bd06d791",
"b9d9396c-6112-4830-bd08-f58c84465031"
],
"Users": [
"8b64fcfb-c3b4-4714-82c9-38af67dd8351",
"e3e8a908-27dd-4e20-9268-80d9d0de1552"
]
}
],
"StartDate": "2026-08-22T13:46:03.0468197+00:00",
"DueDate": "2026-08-22T13:46:03.0468197+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"e26e511d-41fe-4369-abb7-8184b5401142": "ecf9d58d-a129-4515-8bea-3354b3d36845",
"2a9d15c0-c85e-464f-bf69-404eb61193a3": "7051b4f6-aba4-41f1-ab30-41ca1a2a1a60"
},
"HasUpdates": true,
"Modified": "2026-08-22T13:46:03.0468197+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-22T13:46:03.0468197+00:00"
},
"LastComment": "2026-08-22T13:46:03.0468197+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "9af1948c-7b88-4017-9004-bd10c7760564",
"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": "5eb2a692-a42e-4f43-bcfc-dcb0edc8e8c0",
"id": "0dada64d-71ef-4a4a-a2dc-6dc70f12e072",
"ConfigId": "591763c4-5256-49f2-915d-ca7768819e9a"
}