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": "7624a869-c697-41e1-9f30-cf109e949124",
"ParentTaskId": "1b70bcd6-7da4-463b-8e51-ea59d2fc5fbd",
"Integration": {
"IntegrationId": "767ff242-b8ea-4021-b6f6-85e713221772",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"70ec79a2-05d8-4295-8e0e-0ca37cf62234": 2.0,
"42be6577-fd8f-4d6d-a57e-7e8bcbe1bfe5": 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": "8eb85366-f640-4abc-84a2-f9c3a34317da",
"Name": "sample string 1",
"Created": "2026-08-28T11:45:53.906301+00:00",
"Modified": "2026-08-28T11:45:53.906301+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"fbf1bd33-09b7-4c92-a608-1ed5cd858c73",
"29c0b24a-1278-4f6f-8abb-ff6fd315667f"
],
"NonLaborAssignments": [
{
"Id": "bb9e7aac-8d4c-4110-ba29-c14231ac1193",
"ResourceId": "64ae179c-6cdc-4a0e-b17d-97722d2d85df",
"Quantity": 3.0
},
{
"Id": "bb9e7aac-8d4c-4110-ba29-c14231ac1193",
"ResourceId": "64ae179c-6cdc-4a0e-b17d-97722d2d85df",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "afde84fe-e2de-4a9a-bd1d-918abf47001b",
"Type": 0,
"ResourceId": "f5c62776-553d-4e6e-acfc-79c11d762cd8",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
},
{
"Id": "afde84fe-e2de-4a9a-bd1d-918abf47001b",
"Type": 0,
"ResourceId": "f5c62776-553d-4e6e-acfc-79c11d762cd8",
"Units": 3.0,
"Quantity": 4.0,
"Cost": 5.0
}
],
"ParentId": "422c56fa-aad4-44ad-a4b9-fb6f7e7db4f0",
"WorkTypeParentId": "84bd9fc9-bb0b-41e2-aaaa-ed7cbd1087f3",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "6675f957-bdd5-4d56-ab7f-1c23c8e14713",
"UPN": "92c40481-1d65-4288-997e-f8bb6272794a",
"PostDate": "2026-08-28T11:45:53.906301+00:00",
"Comment": "sample string 4",
"CC": [
"cee076d1-ca26-435f-ad6f-057a94f4a516",
"37943854-d944-43b5-b4a2-d417f68afffa"
],
"Users": [
"b289590b-60d2-4999-87dd-3843cfc25e95",
"3594ae01-d2e2-4abb-87b3-67e5d0db2836"
]
},
{
"Id": "6675f957-bdd5-4d56-ab7f-1c23c8e14713",
"UPN": "92c40481-1d65-4288-997e-f8bb6272794a",
"PostDate": "2026-08-28T11:45:53.906301+00:00",
"Comment": "sample string 4",
"CC": [
"cee076d1-ca26-435f-ad6f-057a94f4a516",
"37943854-d944-43b5-b4a2-d417f68afffa"
],
"Users": [
"b289590b-60d2-4999-87dd-3843cfc25e95",
"3594ae01-d2e2-4abb-87b3-67e5d0db2836"
]
}
],
"StartDate": "2026-08-28T11:45:53.906301+00:00",
"DueDate": "2026-08-28T11:45:53.906301+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"a450dbbc-64ad-41d5-955c-592dbc7719c2": "d4433449-8a06-4fdd-a912-17de5470c0bd",
"b353f483-461a-44f0-9d07-cd333d659d36": "24a61792-cc99-43e2-948a-05b39ddbb24c"
},
"HasUpdates": true,
"Modified": "2026-08-28T11:45:53.906301+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-28T11:45:53.906301+00:00"
},
"LastComment": "2026-08-28T11:45:53.906301+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "ac793826-51c4-404d-9413-af09fae8adfa",
"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": "2a268eab-3229-4ea6-a9d4-60c06a0f1a95",
"id": "194cb836-1ad9-4210-96a3-ac530f0d13a9",
"ConfigId": "272f3500-775c-4749-8b17-44fb94410c2d"
}