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": "c638c474-6e0b-4c89-9df2-b458569f423e",
"ParentTaskId": "78c94c3a-612d-4a80-a22c-21ff84b46179",
"Integration": {
"IntegrationId": "5d8f1420-f062-4fa8-be53-fc747bfafc01",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"25fca65e-3c93-4bed-a0cf-b530ea0c6b68": 2.0,
"2da97f60-7fb7-464f-8040-8ce6293c878e": 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": "d7f55d77-41af-45bf-adc4-ca209104414f",
"Name": "sample string 1",
"Created": "2026-07-30T13:03:11.5608037+00:00",
"Modified": "2026-07-30T13:03:11.5608037+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"91b9fd78-131f-4c50-98ef-2adb5c34a40b",
"129e225c-0daf-468f-af62-0a632c647698"
],
"NonLaborAssignments": [
{
"Id": "89f6e128-c62e-4153-b3a8-bcad90d9d19f",
"ResourceId": "a0cd7262-bd79-4f51-ac40-e9b1d1df8ba9",
"Quantity": 3.0
},
{
"Id": "89f6e128-c62e-4153-b3a8-bcad90d9d19f",
"ResourceId": "a0cd7262-bd79-4f51-ac40-e9b1d1df8ba9",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "14c0f8aa-865c-48c4-9392-8c560a469bf8",
"Type": 0,
"ResourceId": "9a1b3c63-625f-4e8f-b9a0-8e84f3654382",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "14c0f8aa-865c-48c4-9392-8c560a469bf8",
"Type": 0,
"ResourceId": "9a1b3c63-625f-4e8f-b9a0-8e84f3654382",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "431d46d2-2773-49dd-806c-b5ae5bb8e252",
"WorkTypeParentId": "e57c69e0-a0b1-4534-8f60-3571a0add619",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "097fa183-a20d-4442-9877-57f867281613",
"UPN": "3aa6286d-ebf3-412a-9f96-70eebb4574f5",
"PostDate": "2026-07-30T13:03:11.5608037+00:00",
"Comment": "sample string 4",
"CC": [
"c4fdbbf7-7737-4ce8-b5ef-fbb8cf3b2f20",
"c521fdb9-dfbe-4dd7-ae08-00503ad22e41"
],
"Users": [
"5cf3ef06-5b4f-4c97-a1ed-44ce6169a2d0",
"87d38c49-e970-4c82-a41e-6f981b2eedfc"
]
},
{
"Id": "097fa183-a20d-4442-9877-57f867281613",
"UPN": "3aa6286d-ebf3-412a-9f96-70eebb4574f5",
"PostDate": "2026-07-30T13:03:11.5608037+00:00",
"Comment": "sample string 4",
"CC": [
"c4fdbbf7-7737-4ce8-b5ef-fbb8cf3b2f20",
"c521fdb9-dfbe-4dd7-ae08-00503ad22e41"
],
"Users": [
"5cf3ef06-5b4f-4c97-a1ed-44ce6169a2d0",
"87d38c49-e970-4c82-a41e-6f981b2eedfc"
]
}
],
"StartDate": "2026-07-30T13:03:11.5608037+00:00",
"DueDate": "2026-07-30T13:03:11.5608037+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"b6fa2450-1cfc-4bdd-8f48-cdbc5a5b2195": "30ebbdca-9a86-4044-b502-c58b389ffd3f",
"210418f6-4e2c-4c3d-a78d-2fabb50b3eda": "f5e4c47f-d1ce-490e-8419-c641db8dad5c"
},
"HasUpdates": true,
"Modified": "2026-07-30T13:03:11.5608037+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-07-30T13:03:11.5608037+00:00"
},
"LastComment": "2026-07-30T13:03:11.5608037+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "775e4fa9-0055-4955-8433-15e159f6cf10",
"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": "ef84df39-5710-4e0e-832d-0af47455c83f",
"id": "98655f04-9ac4-41b7-9d70-b67fc01ebe99",
"ConfigId": "5948595f-da5c-4a38-bf00-e30d7ed8c18a"
}