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": "7aa708ff-91bb-48a8-a10d-5b5703723729",
"ParentTaskId": "fb05e758-afd4-439c-bf73-ac0790e243fb",
"Integration": {
"IntegrationId": "3676980d-7cdf-4091-922f-2017b21deadf",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"208643c4-b8a6-4891-a6ae-bd413c8cb74f": 2.0,
"b2ef80e1-e120-4277-b59a-2383daa61de4": 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. |
|
| WorkPlanId | globally unique identifier |
None. |
|
| id | globally unique identifier |
None. |
|
| ConfigId | globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
{
"WorkTypeId": "44bc9a18-857b-4296-9b19-4b8758a9e722",
"Name": "sample string 1",
"Created": "2025-12-30T03:27:52.6531545+00:00",
"Modified": "2025-12-30T03:27:52.6531545+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"96077116-c2b1-4067-b633-ea4f5fe7afd4",
"b567d682-a059-476e-ad95-a7ee318d624e"
],
"NonLaborAssignments": [
{
"Id": "63ff26d2-a558-48cc-82ce-9660c6e8ade4",
"ResourceId": "9aa1210f-7f95-4194-a0fd-d38d04be9177",
"Quantity": 3.0
},
{
"Id": "63ff26d2-a558-48cc-82ce-9660c6e8ade4",
"ResourceId": "9aa1210f-7f95-4194-a0fd-d38d04be9177",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "dab85515-f87b-47ac-b542-977f17839530",
"Type": 0,
"ResourceId": "a4c765bc-5c1d-43fc-9e90-224c6b72b651",
"Units": 3.0
},
{
"Id": "dab85515-f87b-47ac-b542-977f17839530",
"Type": 0,
"ResourceId": "a4c765bc-5c1d-43fc-9e90-224c6b72b651",
"Units": 3.0
}
],
"ParentId": "a42f03f7-ffb2-40a3-a70d-7060a166f4cf",
"WorkTypeParentId": "2e9371d7-dc6b-42c6-b69a-5981e9c65a80",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "18e76928-6e7a-4268-821f-2c26b377780c",
"UPN": "71a3387c-9718-4129-acce-07b6257a1217",
"PostDate": "2025-12-30T03:27:52.6531545+00:00",
"Comment": "sample string 4",
"CC": [
"6fa84cfd-36e6-4ed8-a748-c1365b20bf31",
"53980cdc-c2b1-4d22-bbd9-6e38251eb993"
],
"Users": [
"b552dbca-12ea-43ca-8be7-f2ff189cdaf8",
"6c6c536a-30a3-49e9-92ff-6ea357f0364a"
]
},
{
"Id": "18e76928-6e7a-4268-821f-2c26b377780c",
"UPN": "71a3387c-9718-4129-acce-07b6257a1217",
"PostDate": "2025-12-30T03:27:52.6531545+00:00",
"Comment": "sample string 4",
"CC": [
"6fa84cfd-36e6-4ed8-a748-c1365b20bf31",
"53980cdc-c2b1-4d22-bbd9-6e38251eb993"
],
"Users": [
"b552dbca-12ea-43ca-8be7-f2ff189cdaf8",
"6c6c536a-30a3-49e9-92ff-6ea357f0364a"
]
}
],
"StartDate": "2025-12-30T03:27:52.6531545+00:00",
"DueDate": "2025-12-30T03:27:52.6531545+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"e0763183-c3d6-4019-89e8-b37d710a8d4f": "f6d08ef9-8d1f-43e4-9a2b-811e9d35d44d",
"f32e1504-f8ea-4c8c-97e7-5127bd5b0600": "29cdad93-dfbf-447f-a127-05d9b55b8cc1"
},
"HasUpdates": true,
"Modified": "2025-12-30T03:27:52.6531545+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": "2025-12-30T03:27:52.6531545+00:00"
},
"LastComment": "2025-12-30T03:27:52.6531545+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "1acd94d3-2fa9-48f9-8329-38a4db02a122",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"WorkPlanId": "f6ff7283-c976-4130-90f7-ae329b005aee",
"id": "1b1b05cd-5009-4cb6-b947-16618433cb30",
"ConfigId": "9504ef5c-71be-46b7-9e03-3a28c83b41df"
}