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": "f6519411-46e3-4dfc-a4aa-f8fd9b3efe1e",
"ParentTaskId": "64769e5b-d7c1-4dde-b051-043ed7f730be",
"Integration": {
"IntegrationId": "f06aa2c7-4bdb-4d85-9b68-a19c2cddf35f",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"86bf412f-4462-45b9-89c0-9b6f9fecc9c0": 2.0,
"6aa1ab34-3d0a-4b52-ac66-6be81d895261": 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": "5aacdf2e-f041-4771-a359-d97efa54f84b",
"Name": "sample string 1",
"Created": "2026-06-23T00:42:30.1888712+00:00",
"Modified": "2026-06-23T00:42:30.1888712+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"b139480e-9b50-481e-9567-05a2192e1814",
"6bde5ea5-e52d-48bb-bb92-a4f575d37ab5"
],
"NonLaborAssignments": [
{
"Id": "f84eb90b-ef36-43c0-9a16-6670091e2e64",
"ResourceId": "29979130-f0d0-415a-ba22-a984ea5a33e2",
"Quantity": 3.0
},
{
"Id": "f84eb90b-ef36-43c0-9a16-6670091e2e64",
"ResourceId": "29979130-f0d0-415a-ba22-a984ea5a33e2",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "5d3c108d-b52a-464b-9756-b3403d7a5c3f",
"Type": 0,
"ResourceId": "d8210326-03e4-417c-9664-14b6d331ff7f",
"Units": 3.0
},
{
"Id": "5d3c108d-b52a-464b-9756-b3403d7a5c3f",
"Type": 0,
"ResourceId": "d8210326-03e4-417c-9664-14b6d331ff7f",
"Units": 3.0
}
],
"ParentId": "556d8807-763c-4ff1-804a-0b67c35a17df",
"WorkTypeParentId": "eb158b8a-707f-4dfc-b85e-b3d1a7526c39",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "5f63580c-392a-4ca1-bfb0-98284cdeec37",
"UPN": "fd424769-5119-48da-b2eb-c4183ee421c9",
"PostDate": "2026-06-23T00:42:30.1888712+00:00",
"Comment": "sample string 4",
"CC": [
"9bd53c0a-867b-4180-b0fc-af833be5928d",
"22bfb441-80af-4a49-8ccc-9372ba2cd22b"
],
"Users": [
"e3512871-ad4a-470d-ad5c-347217d8d61b",
"39fc11fb-082d-4c0a-af83-080c80e695da"
]
},
{
"Id": "5f63580c-392a-4ca1-bfb0-98284cdeec37",
"UPN": "fd424769-5119-48da-b2eb-c4183ee421c9",
"PostDate": "2026-06-23T00:42:30.1888712+00:00",
"Comment": "sample string 4",
"CC": [
"9bd53c0a-867b-4180-b0fc-af833be5928d",
"22bfb441-80af-4a49-8ccc-9372ba2cd22b"
],
"Users": [
"e3512871-ad4a-470d-ad5c-347217d8d61b",
"39fc11fb-082d-4c0a-af83-080c80e695da"
]
}
],
"StartDate": "2026-06-23T00:42:30.1888712+00:00",
"DueDate": "2026-06-23T00:42:30.1888712+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"6189daee-b043-43b6-a79f-1d5104384525": "afba622f-c620-4cb8-a07e-139f352d89cc",
"e530541e-3181-468a-9ef4-11c8165b1c0a": "709c7999-be07-410e-8ff3-8aa569d9356e"
},
"HasUpdates": true,
"Modified": "2026-06-23T00:42:30.1888712+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-06-23T00:42:30.1888712+00:00"
},
"LastComment": "2026-06-23T00:42:30.1888712+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "aee37a46-127d-4982-815e-fddd2ba9bdec",
"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": "8097d8ce-a944-49eb-ba48-e79c0cba87df",
"id": "7f37ee1b-b7f8-4161-870e-b9ea2935d0c0",
"ConfigId": "730d922e-e1f6-48d1-8594-bf7884f96ca7"
}