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": "3601a119-7c4a-4151-ae9e-49ee916376ca",
"ParentTaskId": "f4d3d97d-4a87-48a6-aeef-71fc65c00ebb",
"Integration": {
"IntegrationId": "b2d77a02-0563-46b8-9794-f657659452f3",
"ExternalItemId": "sample string 2",
"ExternalUrl": "sample string 3",
"ReadOnlyFields": [
"sample string 1",
"sample string 2"
]
},
"Assignments": {
"742164b3-f23a-49a8-85f0-f2773dc23b4c": 2.0,
"0983de20-412b-4745-8226-fa640a4e270d": 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": "9b38179d-afaf-4dc0-a84b-67a1366b0ea6",
"Name": "sample string 1",
"Created": "2026-06-01T23:41:36.477473+00:00",
"Modified": "2026-06-01T23:41:36.477473+00:00",
"Author": "sample string 4",
"Editor": "sample string 5",
"AssignedTo": [
"33143a68-94ac-4a30-b544-0f181c0873c2",
"fecbc292-26d2-4c8c-909f-a146bcf4ece9"
],
"NonLaborAssignments": [
{
"Id": "bf5991e7-16a4-4fc9-99b9-68adae4e0ecb",
"ResourceId": "3ad8c8ab-38af-49fa-a260-8588035b4bde",
"Quantity": 3.0
},
{
"Id": "bf5991e7-16a4-4fc9-99b9-68adae4e0ecb",
"ResourceId": "3ad8c8ab-38af-49fa-a260-8588035b4bde",
"Quantity": 3.0
}
],
"Assignments": [
{
"Id": "22a3e0cb-e37f-4256-ad05-c9da51814144",
"Type": 0,
"ResourceId": "e7cc6ebb-b299-4bae-92f3-147999a7877c",
"Units": 3.0
},
{
"Id": "22a3e0cb-e37f-4256-ad05-c9da51814144",
"Type": 0,
"ResourceId": "e7cc6ebb-b299-4bae-92f3-147999a7877c",
"Units": 3.0
}
],
"ParentId": "8609f985-ab39-4e93-afaf-0c79fdb0b7ff",
"WorkTypeParentId": "5a1ba53e-082e-4a62-a11d-43fc2b441616",
"WorkTypeIndex": 9,
"Fields": {
"sample string 1": {},
"sample string 3": {}
},
"Index": 10,
"Complete": true,
"Comments": [
{
"Id": "ac5454f5-14fb-4000-9e99-2878bd36a624",
"UPN": "39c249a8-429d-403b-b0cb-91cb3350ec47",
"PostDate": "2026-06-01T23:41:36.477473+00:00",
"Comment": "sample string 4",
"CC": [
"2e382492-5391-4cdb-a970-a08fca1c2c1c",
"47123539-41fd-42f6-aac1-29b3f34dfbf9"
],
"Users": [
"3c33f9c9-6450-4840-9ae2-ca6c77b35fe4",
"6d7c3d3f-77f2-4e81-84d8-ce46b7b1886f"
]
},
{
"Id": "ac5454f5-14fb-4000-9e99-2878bd36a624",
"UPN": "39c249a8-429d-403b-b0cb-91cb3350ec47",
"PostDate": "2026-06-01T23:41:36.477473+00:00",
"Comment": "sample string 4",
"CC": [
"2e382492-5391-4cdb-a970-a08fca1c2c1c",
"47123539-41fd-42f6-aac1-29b3f34dfbf9"
],
"Users": [
"3c33f9c9-6450-4840-9ae2-ca6c77b35fe4",
"6d7c3d3f-77f2-4e81-84d8-ce46b7b1886f"
]
}
],
"StartDate": "2026-06-01T23:41:36.477473+00:00",
"DueDate": "2026-06-01T23:41:36.477473+00:00",
"TaskScheduleType": 0,
"StatusUpdate": {
"ResourceReplacements": {
"4e996675-8d84-436a-b26e-7d1bdd9b71e7": "bd4aa87e-fef1-4f56-92e9-1d8c72369769",
"a23fc072-7dc3-4898-bb6c-700611d74dd2": "05d43e82-40fb-4113-97cc-117e6b3b602b"
},
"HasUpdates": true,
"Modified": "2026-06-01T23:41:36.477473+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-01T23:41:36.477473+00:00"
},
"LastComment": "2026-06-01T23:41:36.477473+00:00",
"IsScheduled": true,
"Integration": {
"IntegrationId": "584fbe6c-ea1c-4415-b4e9-1b6c1521c53c",
"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": "e7f1dcdb-069c-4adc-9800-416eb0a4b31b",
"id": "19eae205-4afa-432d-884a-75ea12dbf3de",
"ConfigId": "bd884149-a4de-43ac-89f7-f7e9c0f98a82"
}