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
TasksRequestName | 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": "00bfe3fa-3457-4182-ae7a-1a221e29134f", "ParentTaskId": "77c9436f-6747-43bb-99e6-401e7304dd24", "Integration": { "IntegrationId": "39d9ae39-9b58-4840-9d4b-ae01197d9c58", "ExternalItemId": "sample string 2", "ExternalUrl": "sample string 3", "ReadOnlyFields": [ "sample string 1", "sample string 2" ] }, "Assignments": { "99df2cc2-da8d-4e44-b0a1-000a2b6e4949": 2.0, "826529be-f2d4-449a-8ce9-61f7166c3aee": 4.0 }, "ProcessAssignments": true }
Response Information
Resource Description
WorkPlanTaskName | 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": "3790d4c6-4eca-4530-b064-0e4ee5aba707", "Name": "sample string 1", "Created": "2025-07-11T13:09:25.9779986+00:00", "Modified": "2025-07-11T13:09:25.9779986+00:00", "Author": "sample string 4", "Editor": "sample string 5", "AssignedTo": [ "eecec82c-b74e-450d-95cf-a515c725b384", "3cdef232-6c59-44ae-8c78-a0d929f18000" ], "NonLaborAssignments": [ { "Id": "dd65f89e-912f-41ca-8f44-1a1f8adc26ef", "ResourceId": "713bf6fc-053d-46ca-9471-d99c8a631fd3", "Quantity": 3.0 }, { "Id": "dd65f89e-912f-41ca-8f44-1a1f8adc26ef", "ResourceId": "713bf6fc-053d-46ca-9471-d99c8a631fd3", "Quantity": 3.0 } ], "Assignments": [ { "Id": "c0912cd1-d55e-43c8-a6ec-35a2b8e13611", "Type": 0, "ResourceId": "3f272261-8221-4165-9ad5-00105eec1840", "Units": 3.0 }, { "Id": "c0912cd1-d55e-43c8-a6ec-35a2b8e13611", "Type": 0, "ResourceId": "3f272261-8221-4165-9ad5-00105eec1840", "Units": 3.0 } ], "ParentId": "6f5c608b-b8a4-4aac-b7fb-6e3787043bb8", "WorkTypeParentId": "d32f60b2-74f5-4f9d-ae47-0f6655bbf9a3", "WorkTypeIndex": 9, "Fields": { "sample string 1": {}, "sample string 3": {} }, "Index": 10, "Complete": true, "Comments": [ { "Id": "6d89a87d-cda6-4ed2-a008-d826c4bb310f", "UPN": "bad042d2-1f0e-4e17-b1aa-657402641ffd", "PostDate": "2025-07-11T13:09:25.9779986+00:00", "Comment": "sample string 4", "CC": [ "b4d4f14c-a849-4b34-9afd-8c0668e458ef", "071b84b7-0a42-4701-9f98-6387c139f2e7" ], "Users": [ "8cc694bf-f188-4d64-8145-7f2dbd95856f", "d516e382-d9fb-4183-9d5f-c064a724b9c7" ] }, { "Id": "6d89a87d-cda6-4ed2-a008-d826c4bb310f", "UPN": "bad042d2-1f0e-4e17-b1aa-657402641ffd", "PostDate": "2025-07-11T13:09:25.9779986+00:00", "Comment": "sample string 4", "CC": [ "b4d4f14c-a849-4b34-9afd-8c0668e458ef", "071b84b7-0a42-4701-9f98-6387c139f2e7" ], "Users": [ "8cc694bf-f188-4d64-8145-7f2dbd95856f", "d516e382-d9fb-4183-9d5f-c064a724b9c7" ] } ], "StartDate": "2025-07-11T13:09:25.9779986+00:00", "DueDate": "2025-07-11T13:09:25.9779986+00:00", "TaskScheduleType": 0, "StatusUpdate": { "ResourceReplacements": { "4bd2994f-3fed-42db-aef5-f3fdd7323214": "5ed84835-d0b3-46fe-841d-81fd6d5a1bc8", "3c513dce-0d5d-476f-b193-581e90c35b6e": "227eac73-d4ec-4ba8-afd5-c72702fb8314" }, "HasUpdates": true, "Modified": "2025-07-11T13:09:25.9779986+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-07-11T13:09:25.9779986+00:00" }, "LastComment": "2025-07-11T13:09:25.9779986+00:00", "IsScheduled": true, "Integration": { "IntegrationId": "39eb58f6-5a2e-4373-ad32-d9ca2c0f5b47", "ExternalItemId": "sample string 2", "ExternalUrl": "sample string 3", "ReadOnlyFields": [ "sample string 1", "sample string 2" ] }, "WorkPlanId": "ce2d3164-8d3e-477a-8235-74c6f3d2d5f8", "id": "df702546-f17f-40fe-8a2d-15332dc15844", "ConfigId": "61b712fc-7f9e-4217-b2a3-de3ad25f0d9e" }