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": "f572ed2d-bfc0-479a-8f25-200f14382151",
"ParentTaskId": "58b78939-840b-44d6-9fd7-d7d4eb2fec67",
"Integration": {
"IntegrationId": "3efe4ba7-9423-4953-9db8-3f9822377aa2",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"75a4ea5c-5c02-4187-ab19-a1508a7c0049": 2.0,
"332e0d64-d374-40ad-b718-115c8a81d1e9": 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": "25706edd-2346-4705-a9d2-509ea441570a",
"Name": "sample string 1",
"Created": "2026-07-23T01:31:05.5840142+00:00",
"Modified": "2026-07-23T01:31:05.5840142+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"2eb0aedd-fdd8-405b-b758-f59315278c56",
"036127aa-c3e1-4555-b1f4-4e8f35e014b5"
],
"NonLaborAssignments": [
{
"Id": "17cac41c-ff29-4cd1-8579-3183084e874d",
"ResourceId": "bf5234fc-d2ae-4d96-81ca-93e2a3875aba",
"Quantity": 3.0
},
{
"Id": "17cac41c-ff29-4cd1-8579-3183084e874d",
"ResourceId": "bf5234fc-d2ae-4d96-81ca-93e2a3875aba",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "21d33839-f0e8-4dd9-8187-6be83db92b8f",
"Type": 0,
"ResourceId": "7e6ae034-a3da-4dd4-bd37-9002368cf737",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "21d33839-f0e8-4dd9-8187-6be83db92b8f",
"Type": 0,
"ResourceId": "7e6ae034-a3da-4dd4-bd37-9002368cf737",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "17322424-b22a-4e93-8fd7-1f4a17f0f642",
"WorkTypeParentId": "ed19f050-2d2f-4d6d-844c-d429dbdf1132",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "8ccf9b49-89a8-4f73-aacf-79360eebbb03",
"UPN": "6d706bdc-6d26-404a-b7b6-ecdce832849d",
"PostDate": "2026-07-23T01:31:05.5840142+00:00",
"Comment": "sample string 4",
"CC": [
"d00c5643-9c2e-43a2-9393-241f7bb71620",
"05d57c36-1b75-41da-b085-324ccea34891"
],
"Users": [
"d4170558-d1a7-454f-85e5-e40f6b05959a",
"e8f6232a-670c-45bb-9910-9dee8d356e1c"
]
},
{
"Id": "8ccf9b49-89a8-4f73-aacf-79360eebbb03",
"UPN": "6d706bdc-6d26-404a-b7b6-ecdce832849d",
"PostDate": "2026-07-23T01:31:05.5840142+00:00",
"Comment": "sample string 4",
"CC": [
"d00c5643-9c2e-43a2-9393-241f7bb71620",
"05d57c36-1b75-41da-b085-324ccea34891"
],
"Users": [
"d4170558-d1a7-454f-85e5-e40f6b05959a",
"e8f6232a-670c-45bb-9910-9dee8d356e1c"
]
}
],
"StartDate": "2026-07-23T01:31:05.5840142+00:00",
"DueDate": "2026-07-23T01:31:05.5840142+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"ce1819fe-0098-49c4-8641-2d48ca392d0d": "67f81cef-6500-4663-8c21-a7349db594ab",
"da14e53e-1cf9-48b1-815b-2a6682fcb95f": "ff84c43e-e5e6-4b78-a4a8-f96f6ce49a25"
},
"HasUpdates": true,
"Modified": "2026-07-23T01:31:05.5840142+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-07-23T01:31:05.5840142+00:00"
},
"LastComment": "2026-07-23T01:31:05.5840142+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "70f9cda7-6abc-4c37-b51c-dc3a49e73a63",
"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": "a1a5ec50-8d14-43e3-bb24-4e3f8d73cd38",
"id": "d7b8d86c-c33c-4e64-bd26-c75c4de93be5",
"ConfigId": "3402a4ca-ed71-4244-b21c-809e76ebd829"
}