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": "ce441b19-fe27-4e2c-93a5-030efedfa21e",
"ParentTaskId": "4db1e199-a791-42ec-960c-05bf74b71fc5",
"Integration": {
"IntegrationId": "e5247484-2edb-4cf5-8371-a563bfb71b99",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"52315a13-54e7-4223-a604-369910c30d78": 2.0,
"dc9b6a62-729b-4e17-8c1b-a4888bd3fdd5": 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": "6013e50a-81b1-4c5a-8a97-70085a010584",
"Name": "sample string 1",
"Created": "2025-12-10T00:24:59.8778634+00:00",
"Modified": "2025-12-10T00:24:59.8778634+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"c9423ed4-8966-413a-8f99-6f2cdce03d35",
"9e3f8683-afe8-42b9-a3d9-c8ae5043911c"
],
"NonLaborAssignments": [
{
"Id": "558dd6c5-c313-4d3f-9bc3-e124e8e29b99",
"ResourceId": "d2e93db2-2958-4915-850e-8231ddabb4e7",
"Quantity": 3.0
},
{
"Id": "558dd6c5-c313-4d3f-9bc3-e124e8e29b99",
"ResourceId": "d2e93db2-2958-4915-850e-8231ddabb4e7",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "e089b779-457a-49e5-83b0-fa2234a927ac",
"Type": 0,
"ResourceId": "a51ba513-feee-4f37-8c90-19d46778b2dc",
"Units": 3.0
},
{
"Id": "e089b779-457a-49e5-83b0-fa2234a927ac",
"Type": 0,
"ResourceId": "a51ba513-feee-4f37-8c90-19d46778b2dc",
"Units": 3.0
}
],
"ParentId": "0c1f949b-eb1e-4edd-8546-65cc6e707655",
"WorkTypeParentId": "8fe359ee-c885-4472-86eb-f6f83b0e20e2",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "d640a820-94b6-445f-9343-b83ddd84575d",
"UPN": "d33f314b-97ed-4756-bb51-b93cd32dc842",
"PostDate": "2025-12-10T00:24:59.8934895+00:00",
"Comment": "sample string 4",
"CC": [
"726e5b30-4996-4604-a8a2-65b3389757de",
"628a5b3c-924c-4045-afd3-3c27fcf56a2d"
],
"Users": [
"f6835bb5-0f29-4cff-a13c-7a8e2c27574a",
"cadf6b2d-5cf2-4129-8e2b-4296a561b7c9"
]
},
{
"Id": "d640a820-94b6-445f-9343-b83ddd84575d",
"UPN": "d33f314b-97ed-4756-bb51-b93cd32dc842",
"PostDate": "2025-12-10T00:24:59.8934895+00:00",
"Comment": "sample string 4",
"CC": [
"726e5b30-4996-4604-a8a2-65b3389757de",
"628a5b3c-924c-4045-afd3-3c27fcf56a2d"
],
"Users": [
"f6835bb5-0f29-4cff-a13c-7a8e2c27574a",
"cadf6b2d-5cf2-4129-8e2b-4296a561b7c9"
]
}
],
"StartDate": "2025-12-10T00:24:59.8934895+00:00",
"DueDate": "2025-12-10T00:24:59.8934895+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"81285d87-7a4a-49b7-b4ce-f93b7f985255": "435a1c55-717c-48cd-b884-09ef19dbbe22",
"a9a0a93c-1b22-44ee-9c51-551d1fb749e9": "af23ce16-6f0f-4a0d-93f8-7dedeb8a8f2b"
},
"HasUpdates": true,
"Modified": "2025-12-10T00:24:59.8934895+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-10T00:24:59.8934895+00:00"
},
"LastComment": "2025-12-10T00:24:59.8934895+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "f2ea0926-a812-4744-98b2-f7ea5af5caa6",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"WorkPlanId": "58c86e54-9f86-4f70-b4b1-875892a2722d",
"id": "6f72ec4d-5c5d-4630-a5d8-7e0050353563",
"ConfigId": "978d6654-7200-42a6-a56a-170d8f498b22"
}