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": "7eeef508-7bf3-48ea-91de-c7512e3b5cc2",
"ParentTaskId": "6ccd1a27-a38a-40f3-a09f-2f7fbe84caea",
"Integration": {
"IntegrationId": "0e2c1ce2-4787-4d76-b535-dea11bbb54f2",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"a74fe09a-abcb-47cc-827b-3bcd701e745b": 2.0,
"08979efa-088e-436a-926e-75e30f9b53fd": 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": "de6e5757-28b8-4354-95db-0ea6d4e4b1f5",
"Name": "sample string 1",
"Created": "2026-08-06T20:59:19.6539415+00:00",
"Modified": "2026-08-06T20:59:19.6539415+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"b9f99b0b-3a94-48f6-9744-19a6b55cd9e0",
"fe1ce612-9ca0-4cbf-8795-6e893e487de8"
],
"NonLaborAssignments": [
{
"Id": "bcb336fb-997e-4180-b6f9-bbb8c77abc3e",
"ResourceId": "915ac81d-3682-4b2c-8648-ddb7390eef4c",
"Quantity": 3.0
},
{
"Id": "bcb336fb-997e-4180-b6f9-bbb8c77abc3e",
"ResourceId": "915ac81d-3682-4b2c-8648-ddb7390eef4c",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "18b18e9d-0135-422c-9c4e-bc5ef4710037",
"Type": 0,
"ResourceId": "d3a8c27a-9276-4389-a09e-7cd82e77a9dd",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "18b18e9d-0135-422c-9c4e-bc5ef4710037",
"Type": 0,
"ResourceId": "d3a8c27a-9276-4389-a09e-7cd82e77a9dd",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "ea5ee662-eac9-4003-8b0e-949a7444c60e",
"WorkTypeParentId": "2681ed2f-f601-4f37-9ca5-ad2934e0bd44",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "77cfb9a9-eea3-4c57-8c40-5357dbf0c0cb",
"UPN": "a95f420f-b90f-446c-84bf-6b3704ce0201",
"PostDate": "2026-08-06T20:59:19.6539415+00:00",
"Comment": "sample string 4",
"CC": [
"ede1c6cf-e07f-410c-bd7f-8b78c5bd6257",
"6b658a4f-8335-41db-a9a7-998fdb30a005"
],
"Users": [
"ee33ced0-9ccf-4a00-80a6-af276018b27f",
"d0843e32-a018-4f19-9e2b-421ff9245313"
]
},
{
"Id": "77cfb9a9-eea3-4c57-8c40-5357dbf0c0cb",
"UPN": "a95f420f-b90f-446c-84bf-6b3704ce0201",
"PostDate": "2026-08-06T20:59:19.6539415+00:00",
"Comment": "sample string 4",
"CC": [
"ede1c6cf-e07f-410c-bd7f-8b78c5bd6257",
"6b658a4f-8335-41db-a9a7-998fdb30a005"
],
"Users": [
"ee33ced0-9ccf-4a00-80a6-af276018b27f",
"d0843e32-a018-4f19-9e2b-421ff9245313"
]
}
],
"StartDate": "2026-08-06T20:59:19.6539415+00:00",
"DueDate": "2026-08-06T20:59:19.6539415+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"2d157991-50ba-43b0-9a62-d1538bafea15": "34e2a5fc-759e-4ad2-85dd-3af133687260",
"b2385bbe-edf1-4b5b-885d-5036f0ab36f9": "12ffa13f-019f-4842-a052-e776fc8f45cd"
},
"HasUpdates": true,
"Modified": "2026-08-06T20:59:19.6539415+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-06T20:59:19.6539415+00:00"
},
"LastComment": "2026-08-06T20:59:19.6539415+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "e8f5e378-88df-4635-8d53-73aeb0d0d1f3",
"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": "7a88a311-15c0-4479-82ca-361080653a03",
"id": "6ea1ba56-b975-4f6f-8a25-30d25a8ca20c",
"ConfigId": "7c48b176-9852-4b19-8730-bfbeb47d9567"
}