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": "0229be2b-ab79-48d4-ae9a-8042d9eabfd8",
"ParentTaskId": "330f0855-4916-4dae-83b9-88209b1a5229",
"Integration": {
"IntegrationId": "bee629e4-d7a7-44c7-b4fa-05861e375d0d",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"b9aa4493-ed5a-41fe-962a-fd0d66215e69": 2.0,
"44295165-ca87-42b6-bbae-fdd53f9ab531": 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": "f771bcae-2aca-41bc-9977-7fcfdaaed4bd",
"Name": "sample string 1",
"Created": "2026-06-03T10:10:57.9244736+00:00",
"Modified": "2026-06-03T10:10:57.9244736+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"dc424be7-4017-4138-841c-88a3d8679f11",
"d2e749ec-ad57-4109-b556-38a959f8e910"
],
"NonLaborAssignments": [
{
"Id": "c7fa6e02-d5d5-4ce1-ad4b-a0f153000a44",
"ResourceId": "b266dffd-cfe6-449c-88c7-4228b3a1409f",
"Quantity": 3.0
},
{
"Id": "c7fa6e02-d5d5-4ce1-ad4b-a0f153000a44",
"ResourceId": "b266dffd-cfe6-449c-88c7-4228b3a1409f",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "0da066d3-6144-4e70-8b8b-4f47bb7946ff",
"Type": 0,
"ResourceId": "b4082896-7d66-4ef5-96d2-8e98f469e729",
"Units": 3.0
},
{
"Id": "0da066d3-6144-4e70-8b8b-4f47bb7946ff",
"Type": 0,
"ResourceId": "b4082896-7d66-4ef5-96d2-8e98f469e729",
"Units": 3.0
}
],
"ParentId": "edfe9072-112d-4b8f-bbf5-9cbeaac580c8",
"WorkTypeParentId": "06d4e1cb-c1dc-4ed0-9a88-3fe4c44470ea",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "1ac1cd70-c2a8-4cb5-97af-329196834542",
"UPN": "5107ed5e-1421-44e6-984a-f000e33aaec9",
"PostDate": "2026-06-03T10:10:57.9244736+00:00",
"Comment": "sample string 4",
"CC": [
"e221a907-f03a-4f66-a7fa-8edb361a6bc7",
"166332eb-84fe-4862-9a53-27b1766dd521"
],
"Users": [
"1177b6e1-20a9-4f44-a5bb-ffaa0f2e1603",
"0aef7ff6-b05f-4c54-af7e-8f1dbc51cb8f"
]
},
{
"Id": "1ac1cd70-c2a8-4cb5-97af-329196834542",
"UPN": "5107ed5e-1421-44e6-984a-f000e33aaec9",
"PostDate": "2026-06-03T10:10:57.9244736+00:00",
"Comment": "sample string 4",
"CC": [
"e221a907-f03a-4f66-a7fa-8edb361a6bc7",
"166332eb-84fe-4862-9a53-27b1766dd521"
],
"Users": [
"1177b6e1-20a9-4f44-a5bb-ffaa0f2e1603",
"0aef7ff6-b05f-4c54-af7e-8f1dbc51cb8f"
]
}
],
"StartDate": "2026-06-03T10:10:57.9244736+00:00",
"DueDate": "2026-06-03T10:10:57.9244736+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"2c5b7745-d6eb-4378-91b0-ca629407ba5c": "5eb07373-b3e9-4128-8782-44946a7256f7",
"c190a6e3-d209-47d4-9fe3-cab199744e83": "bf7c6825-5ff5-42bc-a318-326b960a42fc"
},
"HasUpdates": true,
"Modified": "2026-06-03T10:10:57.9244736+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-06-03T10:10:57.9244736+00:00"
},
"LastComment": "2026-06-03T10:10:57.9244736+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "c5f9ea09-805b-4e98-aa36-24f6c1dbf7c8",
"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": "ba8cfe6c-fdb8-46ec-9e45-93619788e2a0",
"id": "ca9de78b-cf7d-40d4-a7b9-bafaa9dc7eb6",
"ConfigId": "a3890829-0367-4dd4-a940-a931f2ea782f"
}