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": "3b430f24-cf96-4420-b01d-7f7b681c64ee",
"ParentTaskId": "947de18e-1b0c-4891-9171-3fcea176fe67",
"Integration": {
"IntegrationId": "4a2e3ea9-d919-4804-bc6f-bba3aba5eb29",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"d018c3d7-2a71-4b5e-a411-5239c0bc1235": 2.0,
"4f157bbe-de1c-493f-8887-adefecfbe58f": 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": "99c5af47-bf5e-4339-bd1b-943a14b20a7a",
"Name": "sample string 1",
"Created": "2026-06-04T05:31:19.2713514+00:00",
"Modified": "2026-06-04T05:31:19.2713514+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"4d577d9b-df72-4eb7-a687-7a8644820460",
"cd82174d-d5de-473c-b6d6-d5ef73afb652"
],
"NonLaborAssignments": [
{
"Id": "cf227610-5b4d-43f2-b581-a447e2a1420a",
"ResourceId": "d0ee8c7c-1c2b-429a-970b-032ff91b9075",
"Quantity": 3.0
},
{
"Id": "cf227610-5b4d-43f2-b581-a447e2a1420a",
"ResourceId": "d0ee8c7c-1c2b-429a-970b-032ff91b9075",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "6106f4f4-a830-48c4-9ba8-9c8fd83cf96a",
"Type": 0,
"ResourceId": "6e794e49-8c3a-413b-87d6-209791a25a73",
"Units": 3.0
},
{
"Id": "6106f4f4-a830-48c4-9ba8-9c8fd83cf96a",
"Type": 0,
"ResourceId": "6e794e49-8c3a-413b-87d6-209791a25a73",
"Units": 3.0
}
],
"ParentId": "7b61e1b6-da3f-4ca0-b20c-be238b00c722",
"WorkTypeParentId": "ac03a78c-8af6-4e2b-9393-951b6ea00c2a",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "39daffa1-69d8-4223-b3f7-2b13f110c369",
"UPN": "fa7ab7d7-673d-495e-8607-eb09d0be8432",
"PostDate": "2026-06-04T05:31:19.2713514+00:00",
"Comment": "sample string 4",
"CC": [
"7616b1e2-7a12-4778-b870-3d094d33af7d",
"83d016de-6fb3-46d6-a8b8-e1a7ce866b0a"
],
"Users": [
"fa4f8f66-5541-40ee-86d2-9fef8f7ae42e",
"67ed0240-9f82-424a-9642-08f42eae03fc"
]
},
{
"Id": "39daffa1-69d8-4223-b3f7-2b13f110c369",
"UPN": "fa7ab7d7-673d-495e-8607-eb09d0be8432",
"PostDate": "2026-06-04T05:31:19.2713514+00:00",
"Comment": "sample string 4",
"CC": [
"7616b1e2-7a12-4778-b870-3d094d33af7d",
"83d016de-6fb3-46d6-a8b8-e1a7ce866b0a"
],
"Users": [
"fa4f8f66-5541-40ee-86d2-9fef8f7ae42e",
"67ed0240-9f82-424a-9642-08f42eae03fc"
]
}
],
"StartDate": "2026-06-04T05:31:19.2713514+00:00",
"DueDate": "2026-06-04T05:31:19.2713514+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"3c45e156-7ca4-4725-a88b-a1a51356f642": "0a253e78-e080-4455-8523-1df2e30aae07",
"017287a3-fa4b-46d3-9a09-bbcaa0bd3214": "2045acfc-edb3-43bc-899a-c56a9c4936d9"
},
"HasUpdates": true,
"Modified": "2026-06-04T05:31:19.2713514+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-04T05:31:19.2713514+00:00"
},
"LastComment": "2026-06-04T05:31:19.2713514+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "def9b0ce-791c-402a-a6c5-d1f795ea6e36",
"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": "17711f10-fd81-468f-88f0-8f082e795ab0",
"id": "9d106216-69a9-4928-a37a-65feb6cc8e2b",
"ConfigId": "c6606d98-3f62-43cb-96f9-48be200eacdf"
}