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": "504ffdba-992f-4fcb-ba17-a1a137825cf5",
"ParentTaskId": "6227b96b-a082-44ec-972d-4db68e7833c7",
"Integration": {
"IntegrationId": "b8ad14af-186f-41af-bc9f-fe3a2ade5d36",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"f4bb1be3-13d8-40df-95e3-e820d0b347c6": 2.0,
"dcb1767c-1cd6-4aa0-a664-6093eff808b2": 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": "2f3e9b17-9c27-4c95-a499-ce7a769e7ca3",
"Name": "sample string 1",
"Created": "2026-09-06T01:23:07.7667759+00:00",
"Modified": "2026-09-06T01:23:07.7667759+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"977ead76-0fd4-41a9-b8da-4f8d87b41e8b",
"3a18644a-fb54-4c8b-85ac-cccb07e82ded"
],
"NonLaborAssignments": [
{
"Id": "2b8233b0-ccc2-49b8-9109-c75459c8b02f",
"ResourceId": "1868a372-a36a-43cd-b37f-969a0c51e930",
"Quantity": 3.0
},
{
"Id": "2b8233b0-ccc2-49b8-9109-c75459c8b02f",
"ResourceId": "1868a372-a36a-43cd-b37f-969a0c51e930",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "4ab04c94-7b8b-45f6-8e85-ea2ff84a0f83",
"Type": 0,
"ResourceId": "8aa0a4ae-d0ff-47e5-a9ca-3b2df5419736",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0,
"WorkCurve": "sample string 6",
"Segments": [
{
"Id": "e7a36e25-7568-492d-aa91-b5754686f058",
"Start": "2026-09-06T01:23:07.7667759+00:00",
"Due": "2026-09-06T01:23:07.7667759+00:00",
"Units": 1.0,
"Effort": 1.0,
"Quantity": 1.0,
"Cost": 1.0
},
{
"Id": "e7a36e25-7568-492d-aa91-b5754686f058",
"Start": "2026-09-06T01:23:07.7667759+00:00",
"Due": "2026-09-06T01:23:07.7667759+00:00",
"Units": 1.0,
"Effort": 1.0,
"Quantity": 1.0,
"Cost": 1.0
}
]
},
{
"Id": "4ab04c94-7b8b-45f6-8e85-ea2ff84a0f83",
"Type": 0,
"ResourceId": "8aa0a4ae-d0ff-47e5-a9ca-3b2df5419736",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0,
"WorkCurve": "sample string 6",
"Segments": [
{
"Id": "e7a36e25-7568-492d-aa91-b5754686f058",
"Start": "2026-09-06T01:23:07.7667759+00:00",
"Due": "2026-09-06T01:23:07.7667759+00:00",
"Units": 1.0,
"Effort": 1.0,
"Quantity": 1.0,
"Cost": 1.0
},
{
"Id": "e7a36e25-7568-492d-aa91-b5754686f058",
"Start": "2026-09-06T01:23:07.7667759+00:00",
"Due": "2026-09-06T01:23:07.7667759+00:00",
"Units": 1.0,
"Effort": 1.0,
"Quantity": 1.0,
"Cost": 1.0
}
]
}
],
"ParentId": "9b243a7e-0f97-4e8d-a905-bee105fba409",
"WorkTypeParentId": "0461a0ec-5832-4d89-9991-4c52cc104033",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "a454bdb5-4822-4f07-9188-b2126427f8d1",
"UPN": "9305d9ab-b26a-464c-9751-5db12a720ac6",
"PostDate": "2026-09-06T01:23:07.7667759+00:00",
"Comment": "sample string 4",
"CC": [
"c2fe97e5-4f15-43f9-90f6-fe6e38d8b9c5",
"bde0576e-5e34-4a19-b64f-ac5a9507dc64"
],
"Users": [
"6bd1bc18-7dd1-45f5-86f8-1d0019244b9e",
"c111fc7d-6e43-4d86-824e-290324f30e32"
]
},
{
"Id": "a454bdb5-4822-4f07-9188-b2126427f8d1",
"UPN": "9305d9ab-b26a-464c-9751-5db12a720ac6",
"PostDate": "2026-09-06T01:23:07.7667759+00:00",
"Comment": "sample string 4",
"CC": [
"c2fe97e5-4f15-43f9-90f6-fe6e38d8b9c5",
"bde0576e-5e34-4a19-b64f-ac5a9507dc64"
],
"Users": [
"6bd1bc18-7dd1-45f5-86f8-1d0019244b9e",
"c111fc7d-6e43-4d86-824e-290324f30e32"
]
}
],
"StartDate": "2026-09-06T01:23:07.7667759+00:00",
"DueDate": "2026-09-06T01:23:07.7667759+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"ec3e3f42-1daf-4ee4-8b09-4ca4a9a78f02": "fe9fdd93-d628-4586-aa58-b8140c12c2a4",
"237e37f5-4e82-4436-ae10-b1a01c581e45": "902af7d7-f15e-4cbe-90c0-c6ba0ce39014"
},
"HasUpdates": true,
"Modified": "2026-09-06T01:23:07.7667759+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-09-06T01:23:07.7667759+00:00"
},
"LastComment": "2026-09-06T01:23:07.7667759+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "f445535e-22b5-4ac1-92d9-885a6b4224e7",
"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": "a99549b6-4ca7-4625-872a-0bb5d9470e3c",
"id": "06d8fef5-1138-4881-945a-5df521408cab",
"ConfigId": "317c0ba9-82b0-46e3-8ca4-e3f64e34accd"
}