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": "8cee3f1f-0c4b-41f1-af3a-9586201576e3", "ParentTaskId": "29c3c1a4-0ccc-48c3-8317-b7bae0a1a7e0", "Integration": { "IntegrationId": "02691f43-569a-47d1-a863-4fe61462e518", "ExternalItemId": "sample string 2", "ExternalUrl": "sample string 3", "ReadOnlyFields": [ "sample string 1", "sample string 2" ] }, "Assignments": { "269d9e43-37e8-42f2-bb84-85ab5aad3a0a": 2.0, "70558a13-6c87-43aa-9062-28aa2d6ac923": 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. |
|
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": "492c1a87-93f1-4727-871f-7c2d92f015db", "Name": "sample string 1", "Created": "2025-05-23T21:34:18.9040617+00:00", "Modified": "2025-05-23T21:34:18.9040617+00:00", "Author": "sample string 4", "Editor": "sample string 5", "AssignedTo": [ "ae4b8d1f-5cfe-4231-808b-0120473fc19b", "38174f77-bb14-4075-833f-7ae62f3566fa" ], "Assignments": [ { "Id": "3c93b347-951f-4e16-bd42-39ce9dec68b0", "Type": 0, "ResourceId": "baddd5ee-97fc-422a-a98b-39a6895046a4", "Units": 3.0 }, { "Id": "3c93b347-951f-4e16-bd42-39ce9dec68b0", "Type": 0, "ResourceId": "baddd5ee-97fc-422a-a98b-39a6895046a4", "Units": 3.0 } ], "ParentId": "a77501ae-f78e-472d-9db3-0da8603d78a3", "WorkTypeParentId": "311b169f-bcf9-4ce2-8f62-810b492e69ee", "WorkTypeIndex": 9, "Fields": { "sample string 1": {}, "sample string 3": {} }, "Index": 10, "Complete": true, "Comments": [ { "Id": "f140f2a2-6b22-4b38-9d0e-2f82e481fd53", "UPN": "406f239d-ec47-4c33-9ecd-c351a7f98548", "PostDate": "2025-05-23T21:34:18.9040617+00:00", "Comment": "sample string 4", "CC": [ "63c474a0-9048-4c76-91e3-959e1b8bc232", "4a4e2cac-2128-4fee-bc5a-7c3d8752e5bc" ], "Users": [ "4c352c17-cd89-49c0-954d-68e1c624663b", "d5af74a6-94b0-4d8c-98f9-392fbbd2c32d" ] }, { "Id": "f140f2a2-6b22-4b38-9d0e-2f82e481fd53", "UPN": "406f239d-ec47-4c33-9ecd-c351a7f98548", "PostDate": "2025-05-23T21:34:18.9040617+00:00", "Comment": "sample string 4", "CC": [ "63c474a0-9048-4c76-91e3-959e1b8bc232", "4a4e2cac-2128-4fee-bc5a-7c3d8752e5bc" ], "Users": [ "4c352c17-cd89-49c0-954d-68e1c624663b", "d5af74a6-94b0-4d8c-98f9-392fbbd2c32d" ] } ], "StartDate": "2025-05-23T21:34:18.9040617+00:00", "DueDate": "2025-05-23T21:34:18.9040617+00:00", "TaskScheduleType": 0, "StatusUpdate": { "ResourceReplacements": { "71d913c5-1486-4317-8591-a3802b9dfaf1": "c259cf09-fbce-4ded-acf8-7990ad8ec406", "858b027a-7e1b-4069-8a67-dbce99b8ea9e": "bd513597-84d0-4e1b-a15c-1656d5894614" }, "HasUpdates": true, "Modified": "2025-05-23T21:34:18.9040617+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-05-23T21:34:18.9040617+00:00" }, "LastComment": "2025-05-23T21:34:18.9040617+00:00", "IsScheduled": true, "Integration": { "IntegrationId": "82677a40-5ae5-4960-b895-5e5486db710c", "ExternalItemId": "sample string 2", "ExternalUrl": "sample string 3", "ReadOnlyFields": [ "sample string 1", "sample string 2" ] }, "WorkPlanId": "054d3e5d-7b9b-4989-96a9-1089bab42e1e", "id": "f9d6378e-8f8b-4649-b249-7f1414b46b9c", "ConfigId": "80ec28d4-5a55-4dee-864b-6f122bf0ee47" }