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": "49fa0f1f-1994-4196-b0fb-d4bda1f558d1",
"ParentTaskId": "d4ad66a3-2ad1-4fb2-b75e-abe387049763",
"Integration": {
"IntegrationId": "93440efb-69b9-4f4e-a0ed-df43d5bd95cd",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"c2fb9510-f749-4ba2-9198-a2062bd73539": 2.0,
"3363fb31-cd6c-49b1-a232-36ac3e546755": 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": "14030f57-0ada-4e58-9695-36072b25ac43",
"Name": "sample string 1",
"Created": "2026-08-02T10:28:47.1788771+00:00",
"Modified": "2026-08-02T10:28:47.1788771+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"2163fb7b-cbc3-4d5b-ac2a-6a4871b9ea2a",
"a31a5317-6664-4dfa-8f00-18464231bf2f"
],
"NonLaborAssignments": [
{
"Id": "4c1ade87-6b32-45bd-a63c-ad5693b2a228",
"ResourceId": "1b6809d5-d8e3-4e4c-9ee4-ed13116d9fae",
"Quantity": 3.0
},
{
"Id": "4c1ade87-6b32-45bd-a63c-ad5693b2a228",
"ResourceId": "1b6809d5-d8e3-4e4c-9ee4-ed13116d9fae",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "9a2fa15d-6008-4503-a50a-fffe81e081e3",
"Type": 0,
"ResourceId": "1a1c8452-e98f-4fec-b1bb-002389c627dc",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "9a2fa15d-6008-4503-a50a-fffe81e081e3",
"Type": 0,
"ResourceId": "1a1c8452-e98f-4fec-b1bb-002389c627dc",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "4841b510-cd5d-43c1-b9c7-761d72af2d67",
"WorkTypeParentId": "a7bfefb1-082b-4362-b895-bbc222d506ac",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "35b97be2-71fe-4b6e-a455-5905a06daec8",
"UPN": "17249224-bcae-419e-a97f-84cd68556e93",
"PostDate": "2026-08-02T10:28:47.1788771+00:00",
"Comment": "sample string 4",
"CC": [
"a68e2729-0a3d-4dc2-bcda-78a44ec6262c",
"f2b624ec-3570-4245-9cd5-803ae7aa40d6"
],
"Users": [
"594cee98-6a7e-4ba0-b092-8b15d0472ad9",
"745f9d37-75c1-4413-9d36-1533dab0815e"
]
},
{
"Id": "35b97be2-71fe-4b6e-a455-5905a06daec8",
"UPN": "17249224-bcae-419e-a97f-84cd68556e93",
"PostDate": "2026-08-02T10:28:47.1788771+00:00",
"Comment": "sample string 4",
"CC": [
"a68e2729-0a3d-4dc2-bcda-78a44ec6262c",
"f2b624ec-3570-4245-9cd5-803ae7aa40d6"
],
"Users": [
"594cee98-6a7e-4ba0-b092-8b15d0472ad9",
"745f9d37-75c1-4413-9d36-1533dab0815e"
]
}
],
"StartDate": "2026-08-02T10:28:47.1788771+00:00",
"DueDate": "2026-08-02T10:28:47.1788771+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"1e0d46ca-f425-47a8-9b3a-62e1e02947ec": "01e3541e-32a8-4719-b08e-a552b8360263",
"8690f6a0-88de-4b10-9344-b4b971523405": "e9b854b0-fcd7-4f8b-ba76-17ae5c33f74b"
},
"HasUpdates": true,
"Modified": "2026-08-02T10:28:47.1788771+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-08-02T10:28:47.1788771+00:00"
},
"LastComment": "2026-08-02T10:28:47.1788771+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "2843d0b3-a59f-4a80-8dc0-2839f2de12ed",
"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": "82a299ed-02f9-496a-bc0d-dca3d905b590",
"id": "0ff4c9fa-9d0c-42e0-935b-f29e13248131",
"ConfigId": "401c63e4-9072-4bb8-9a7c-8e7f1982d9e6"
}