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": "92d4af0a-dd7d-4c6f-be32-f33bd462c6b5",
"ParentTaskId": "6df6039e-7aff-40df-89f0-9c7902769832",
"Integration": {
"IntegrationId": "ee9b6ddc-3036-413a-a287-e487a21a4b4a",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"49941188-8391-4a02-a95c-f36f08018ae5": 2.0,
"674a72b2-708e-4836-a351-e0b1ffe7eff1": 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": "58add304-f26a-49c8-8463-9fb082d618a0",
"Name": "sample string 1",
"Created": "2026-08-20T10:46:19.7792622+00:00",
"Modified": "2026-08-20T10:46:19.7792622+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"76bfc5c5-49d5-449d-9d8c-d65c4846592e",
"4e3f722f-45e0-497f-a778-1ddd4cd0952d"
],
"NonLaborAssignments": [
{
"Id": "8a3fe60f-e7c9-41fa-99f8-d631181fbff1",
"ResourceId": "87f3077d-7b07-46b5-b027-5d7fdf3f3632",
"Quantity": 3.0
},
{
"Id": "8a3fe60f-e7c9-41fa-99f8-d631181fbff1",
"ResourceId": "87f3077d-7b07-46b5-b027-5d7fdf3f3632",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "abd19ed6-8a24-4484-957c-d6f65314310d",
"Type": 0,
"ResourceId": "11200b65-ed97-406d-a36b-f241986dc38c",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "abd19ed6-8a24-4484-957c-d6f65314310d",
"Type": 0,
"ResourceId": "11200b65-ed97-406d-a36b-f241986dc38c",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "75f381c7-b7d2-4a6d-85e3-0711d99325d1",
"WorkTypeParentId": "6e1bced5-ada9-4c42-a3f7-6078bed5cf8d",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "b3be11d1-c8dc-45e9-a461-7a8f70ddf0f3",
"UPN": "d60882b3-ac51-4f46-bfb1-cd1cbab33eb9",
"PostDate": "2026-08-20T10:46:19.7792622+00:00",
"Comment": "sample string 4",
"CC": [
"6b12dc06-b812-4268-8300-934670980b2e",
"ca3a0218-493e-483e-a6cc-10e5d2ed9101"
],
"Users": [
"7c492cab-50af-45a0-a61d-a2cf1f6121a1",
"0a9f7b15-4ef4-4987-b9c7-31506b42b125"
]
},
{
"Id": "b3be11d1-c8dc-45e9-a461-7a8f70ddf0f3",
"UPN": "d60882b3-ac51-4f46-bfb1-cd1cbab33eb9",
"PostDate": "2026-08-20T10:46:19.7792622+00:00",
"Comment": "sample string 4",
"CC": [
"6b12dc06-b812-4268-8300-934670980b2e",
"ca3a0218-493e-483e-a6cc-10e5d2ed9101"
],
"Users": [
"7c492cab-50af-45a0-a61d-a2cf1f6121a1",
"0a9f7b15-4ef4-4987-b9c7-31506b42b125"
]
}
],
"StartDate": "2026-08-20T10:46:19.7792622+00:00",
"DueDate": "2026-08-20T10:46:19.7792622+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"3073f719-0ea1-43e2-aeed-aa940430919d": "36b1475e-0bce-43b3-b15d-15f5be2b0b88",
"06e9c099-1163-4333-b300-d508c98f44eb": "40ebe05d-ecb1-410c-b201-0a30ad561835"
},
"HasUpdates": true,
"Modified": "2026-08-20T10:46:19.7792622+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-20T10:46:19.7792622+00:00"
},
"LastComment": "2026-08-20T10:46:19.7792622+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "f3e02305-874e-450d-a313-9e4ca67b4dba",
"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": "fed97277-3551-46f7-b5a9-a6e9f2dfefbd",
"id": "c0efa10c-451b-4282-8d1c-f9b1ca1b49ef",
"ConfigId": "b5325c31-fa74-4464-8ab4-3d09d02349e9"
}