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": "4f40d700-2044-48af-8513-c6405dc6caa8",
"ParentTaskId": "baa2f2da-1657-40c2-ac3c-bb13bb2c908a",
"Integration": {
"IntegrationId": "564da392-41ac-44cf-8f25-dc4593f1d9f1",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"c121bbad-34c2-4497-8512-81df993c2959": 2.0,
"4f9fe829-9a67-4a8f-aea5-d953baa7dfe3": 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": "38587bde-a06c-4990-a7cc-4e4365f5ee72",
"Name": "sample string 1",
"Created": "2026-04-29T02:24:16.0959063+00:00",
"Modified": "2026-04-29T02:24:16.0959063+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"976b8eea-88d5-484f-bceb-fd0f9d9e556f",
"e7f6d13e-0d3b-45a1-86c6-01df6a691b18"
],
"NonLaborAssignments": [
{
"Id": "27340db0-a15d-4035-9c04-6df7609cb7ed",
"ResourceId": "5b558680-c238-4b5b-bce6-8318ca10528c",
"Quantity": 3.0
},
{
"Id": "27340db0-a15d-4035-9c04-6df7609cb7ed",
"ResourceId": "5b558680-c238-4b5b-bce6-8318ca10528c",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "92ce21ed-9f50-445e-acc2-5ae7994a3229",
"Type": 0,
"ResourceId": "5ae93519-4591-4030-85e9-987926ea9bab",
"Units": 3.0
},
{
"Id": "92ce21ed-9f50-445e-acc2-5ae7994a3229",
"Type": 0,
"ResourceId": "5ae93519-4591-4030-85e9-987926ea9bab",
"Units": 3.0
}
],
"ParentId": "b54ca4dd-795a-498f-b097-1c59556b89bc",
"WorkTypeParentId": "840f2503-b900-40a7-a31a-3cdcd89b27c0",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "df666366-0131-4d0b-9c68-72d6f845032f",
"UPN": "afd00ad4-eeeb-40d1-8eea-5ba80e201115",
"PostDate": "2026-04-29T02:24:16.0959063+00:00",
"Comment": "sample string 4",
"CC": [
"8f7826cd-68fd-4ca4-90f6-7b9850dac9b0",
"b4913852-d115-47f3-a37c-5fb83fb0af7d"
],
"Users": [
"5c8e635d-989f-471a-b88e-a2c65ac4d4ac",
"2bb93c4a-af5a-4fba-8e9d-e642cace0064"
]
},
{
"Id": "df666366-0131-4d0b-9c68-72d6f845032f",
"UPN": "afd00ad4-eeeb-40d1-8eea-5ba80e201115",
"PostDate": "2026-04-29T02:24:16.0959063+00:00",
"Comment": "sample string 4",
"CC": [
"8f7826cd-68fd-4ca4-90f6-7b9850dac9b0",
"b4913852-d115-47f3-a37c-5fb83fb0af7d"
],
"Users": [
"5c8e635d-989f-471a-b88e-a2c65ac4d4ac",
"2bb93c4a-af5a-4fba-8e9d-e642cace0064"
]
}
],
"StartDate": "2026-04-29T02:24:16.0959063+00:00",
"DueDate": "2026-04-29T02:24:16.0959063+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"20ab440d-a9fd-4ac7-b111-923d3b0d792d": "df0c93be-8371-479c-b302-b1a9d82d5463",
"1d7c00f3-c85f-4fec-88ba-9b749ef6a830": "0f597aa1-7de6-4557-a413-bc67e9a52314"
},
"HasUpdates": true,
"Modified": "2026-04-29T02:24:16.0959063+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-04-29T02:24:16.0959063+00:00"
},
"LastComment": "2026-04-29T02:24:16.0959063+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "3dd4f2a2-7fe8-4e0c-80e1-34f94e87b12b",
"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": "09b91fec-c8f7-45d5-ad5f-70affc94479a",
"id": "2f92bb38-ac20-49d5-8cfc-221904f147b8",
"ConfigId": "493fa790-eb9b-4d4b-89ae-aa0a7a555b96"
}