POST api/workplan/{planId}/step/clear
Clear out the stage gates from the plan, cancel all approval tasks and reset the process step back to the first step
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
planId | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
WorkPlanName | Description | Type | Additional information |
---|---|---|---|
Name | string |
None. |
|
Archived | boolean |
None. |
|
Author | globally unique identifier |
None. |
|
Created | date |
None. |
|
Modified | date |
None. |
|
Editor | globally unique identifier |
None. |
|
PlannerTypeId | globally unique identifier |
None. |
|
ParentPlanId | globally unique identifier |
None. |
|
PortfolioParentId | globally unique identifier |
None. |
|
PortfolioOrder | integer |
None. |
|
UserList | Collection of UserAccess |
None. |
|
InheritUserList | Collection of UserAccess |
None. |
|
TeamList | Collection of TeamAccess |
None. |
|
InheritTeamList | Collection of TeamAccess |
None. |
|
Fields | Dictionary of string [key] and Object [value] |
None. |
|
SummaryFields | Dictionary of string [key] and Object [value] |
None. |
|
Folder | boolean |
None. |
|
Fragment | boolean |
None. |
|
FragmentInfo | FragmentInfo |
None. |
|
Hidden | boolean |
None. |
|
Comments | Collection of TaskComment |
None. |
|
LastComment | date |
None. |
|
Integrations | Collection of IntegratedSystem |
None. |
|
Snapshots | Collection of FieldSnapshot |
None. |
|
SubPlans | Collection of globally unique identifier |
None. |
|
PlanNumber | string |
None. |
|
RateTables | Collection of PlanRateTable |
None. |
|
Splits | Collection of LookupSplit |
None. |
|
LockInfo | PlanLockInfo |
None. |
|
LastLocation | string |
None. |
|
StageGateFlow | StageGateFlow |
None. |
|
id | globally unique identifier |
None. |
|
ConfigId | globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
{ "Name": "sample string 1", "Archived": true, "Author": "1d33de0f-c7ad-4621-97f3-870610fd7232", "Created": "2025-07-08T20:10:04.1658741+00:00", "Modified": "2025-07-08T20:10:04.1658741+00:00", "Editor": "cda51e3b-5336-4e3d-a343-aa0c46823af3", "PlannerTypeId": "d2bc6f80-30ef-476b-a722-37a3de0c3123", "ParentPlanId": "e52f2d8b-73a9-4596-9ced-a4a6a68b8c81", "PortfolioParentId": "aebaaed8-c750-481a-8196-20e09475f3dd", "PortfolioOrder": 9, "UserList": [ {}, {} ], "InheritUserList": [ {}, {} ], "TeamList": [ {}, {} ], "InheritTeamList": [ {}, {} ], "Fields": { "sample string 1": {}, "sample string 3": {} }, "SummaryFields": { "sample string 1": {}, "sample string 3": {} }, "Folder": true, "Fragment": true, "FragmentInfo": { "Name": "sample string 1", "Description": "sample string 2", "Category": "sample string 3", "WorkTypes": "sample string 4", "Personal": true }, "Hidden": true, "Comments": [ { "Id": "bebcf1fa-462e-4943-baad-6ad41ba65dae", "UPN": "c6efc819-03ab-4562-81f0-26d01ee9d9fb", "PostDate": "2025-07-08T20:10:04.1658741+00:00", "Comment": "sample string 4", "CC": [ "292cd8b4-1de5-44eb-8a67-dc76ab0b139f", "744e937f-aa22-485e-96af-7215f53e920d" ], "Users": [ "f362184c-980b-48b0-b229-dcc9c67ebfb1", "151a703d-9cd6-4621-ab91-3db4fae05f01" ] }, { "Id": "bebcf1fa-462e-4943-baad-6ad41ba65dae", "UPN": "c6efc819-03ab-4562-81f0-26d01ee9d9fb", "PostDate": "2025-07-08T20:10:04.1658741+00:00", "Comment": "sample string 4", "CC": [ "292cd8b4-1de5-44eb-8a67-dc76ab0b139f", "744e937f-aa22-485e-96af-7215f53e920d" ], "Users": [ "f362184c-980b-48b0-b229-dcc9c67ebfb1", "151a703d-9cd6-4621-ab91-3db4fae05f01" ] } ], "LastComment": "2025-07-08T20:10:04.1658741+00:00", "Integrations": [ { "IntegrationId": "c18327b0-aecc-4725-b33e-a2654e547fca", "ItemUrl": "sample string 2", "ItemId": "sample string 3", "TransactionId": "b868d48e-12de-4a32-8a60-c2933528d8e9", "LastExport": "2025-07-08T20:10:04.1658741+00:00", "LastImport": "2025-07-08T20:10:04.1658741+00:00", "IntegrationVersion": 7, "Properties": { "sample string 1": {}, "sample string 3": {} } }, { "IntegrationId": "c18327b0-aecc-4725-b33e-a2654e547fca", "ItemUrl": "sample string 2", "ItemId": "sample string 3", "TransactionId": "b868d48e-12de-4a32-8a60-c2933528d8e9", "LastExport": "2025-07-08T20:10:04.1658741+00:00", "LastImport": "2025-07-08T20:10:04.1658741+00:00", "IntegrationVersion": 7, "Properties": { "sample string 1": {}, "sample string 3": {} } } ], "Snapshots": [ { "Date": "2025-07-08T20:10:04.1658741+00:00", "StatusReportId": "6dda9691-21b6-41be-b203-945a27937fe1", "Fields": { "sample string 1": {}, "sample string 3": {} } }, { "Date": "2025-07-08T20:10:04.1658741+00:00", "StatusReportId": "6dda9691-21b6-41be-b203-945a27937fe1", "Fields": { "sample string 1": {}, "sample string 3": {} } } ], "SubPlans": [ "76fb7f98-600e-471c-8b29-500f1a0e2feb", "2abea757-c3eb-476d-b41a-8b0b224e45f0" ], "PlanNumber": "sample string 14", "RateTables": [ { "Id": "31c1e899-eaf4-4de2-acc1-bb5fa2696699", "Name": "sample string 2", "Multipliers": [ { "Start": "2025-07-08T20:10:04.1658741+00:00", "End": "2025-07-08T20:10:04.1658741+00:00", "PercentRevenue": 3.0, "PercentCost": 4.0 }, { "Start": "2025-07-08T20:10:04.1658741+00:00", "End": "2025-07-08T20:10:04.1658741+00:00", "PercentRevenue": 3.0, "PercentCost": 4.0 } ], "ResourceRates": [ { "ResourceId": "2e7e1613-ad39-40cb-ab8d-3e50c4325f38", "BaseRate": 2.0 }, { "ResourceId": "2e7e1613-ad39-40cb-ab8d-3e50c4325f38", "BaseRate": 2.0 } ] }, { "Id": "31c1e899-eaf4-4de2-acc1-bb5fa2696699", "Name": "sample string 2", "Multipliers": [ { "Start": "2025-07-08T20:10:04.1658741+00:00", "End": "2025-07-08T20:10:04.1658741+00:00", "PercentRevenue": 3.0, "PercentCost": 4.0 }, { "Start": "2025-07-08T20:10:04.1658741+00:00", "End": "2025-07-08T20:10:04.1658741+00:00", "PercentRevenue": 3.0, "PercentCost": 4.0 } ], "ResourceRates": [ { "ResourceId": "2e7e1613-ad39-40cb-ab8d-3e50c4325f38", "BaseRate": 2.0 }, { "ResourceId": "2e7e1613-ad39-40cb-ab8d-3e50c4325f38", "BaseRate": 2.0 } ] } ], "Splits": [ { "Field": "sample string 1", "Value": "f7b8a133-05ff-4e80-8809-6792dbb00fb2", "Split": 3.0, "Values": { "sample string 1": 2.0, "sample string 3": 4.0 } }, { "Field": "sample string 1", "Value": "f7b8a133-05ff-4e80-8809-6792dbb00fb2", "Split": 3.0, "Values": { "sample string 1": 2.0, "sample string 3": 4.0 } } ], "LockInfo": { "LockedSid": "e2e24619-54b5-4023-a6c7-a69b30bfe152", "LockedBy": "5776de45-fa79-4912-891f-0edf20b742fd", "LockedDate": "2025-07-08T20:10:04.1658741+00:00" }, "LastLocation": "sample string 15", "StageGateFlow": { "Id": "d9ac77bb-d4fc-41ed-befb-af867db83f03", "CurrentGateId": "24a22d20-9725-4f78-9861-ce82735d32ba", "EnteredGate": "2025-07-08T20:10:04.1658741+00:00", "ExitedGate": "2025-07-08T20:10:04.1658741+00:00", "GateClosed": true, "StepStarter": "0821ff80-250c-4d56-bfa5-554b70edbbdf", "StepApprover": "ff5f5140-0a14-4211-b146-b38c7bab4a5b", "ApprovalState": 0, "StepState": 0, "Comments": "sample string 8", "Approvals": [ { "StepId": "6796fdd1-9376-4805-ae1a-969eccdd4ef8", "AutoApproved": true, "Completed": true, "Expired": true, "ExpiredReason": "sample string 5", "ApprovalStates": { "d71a2d18-ce19-4213-902e-ecfd49ec8cce": { "TaskId": "d4cd0ea3-b15b-43dd-bf2c-029327d63a07", "Status": 0, "Comments": [ { "Id": "bebcf1fa-462e-4943-baad-6ad41ba65dae", "UPN": "c6efc819-03ab-4562-81f0-26d01ee9d9fb", "PostDate": "2025-07-08T20:10:04.1658741+00:00", "Comment": "sample string 4", "CC": [ "292cd8b4-1de5-44eb-8a67-dc76ab0b139f", "744e937f-aa22-485e-96af-7215f53e920d" ], "Users": [ "f362184c-980b-48b0-b229-dcc9c67ebfb1", "151a703d-9cd6-4621-ab91-3db4fae05f01" ] }, { "Id": "bebcf1fa-462e-4943-baad-6ad41ba65dae", "UPN": "c6efc819-03ab-4562-81f0-26d01ee9d9fb", "PostDate": "2025-07-08T20:10:04.1658741+00:00", "Comment": "sample string 4", "CC": [ "292cd8b4-1de5-44eb-8a67-dc76ab0b139f", "744e937f-aa22-485e-96af-7215f53e920d" ], "Users": [ "f362184c-980b-48b0-b229-dcc9c67ebfb1", "151a703d-9cd6-4621-ab91-3db4fae05f01" ] } ] }, "36b30877-778f-45f9-b578-edb7856c6b8e": { "TaskId": "d4cd0ea3-b15b-43dd-bf2c-029327d63a07", "Status": 0, "Comments": [ { "Id": "bebcf1fa-462e-4943-baad-6ad41ba65dae", "UPN": "c6efc819-03ab-4562-81f0-26d01ee9d9fb", "PostDate": "2025-07-08T20:10:04.1658741+00:00", "Comment": "sample string 4", "CC": [ "292cd8b4-1de5-44eb-8a67-dc76ab0b139f", "744e937f-aa22-485e-96af-7215f53e920d" ], "Users": [ "f362184c-980b-48b0-b229-dcc9c67ebfb1", "151a703d-9cd6-4621-ab91-3db4fae05f01" ] }, { "Id": "bebcf1fa-462e-4943-baad-6ad41ba65dae", "UPN": "c6efc819-03ab-4562-81f0-26d01ee9d9fb", "PostDate": "2025-07-08T20:10:04.1658741+00:00", "Comment": "sample string 4", "CC": [ "292cd8b4-1de5-44eb-8a67-dc76ab0b139f", "744e937f-aa22-485e-96af-7215f53e920d" ], "Users": [ "f362184c-980b-48b0-b229-dcc9c67ebfb1", "151a703d-9cd6-4621-ab91-3db4fae05f01" ] } ] } } }, { "StepId": "6796fdd1-9376-4805-ae1a-969eccdd4ef8", "AutoApproved": true, "Completed": true, "Expired": true, "ExpiredReason": "sample string 5", "ApprovalStates": { "d71a2d18-ce19-4213-902e-ecfd49ec8cce": { "TaskId": "d4cd0ea3-b15b-43dd-bf2c-029327d63a07", "Status": 0, "Comments": [ { "Id": "bebcf1fa-462e-4943-baad-6ad41ba65dae", "UPN": "c6efc819-03ab-4562-81f0-26d01ee9d9fb", "PostDate": "2025-07-08T20:10:04.1658741+00:00", "Comment": "sample string 4", "CC": [ "292cd8b4-1de5-44eb-8a67-dc76ab0b139f", "744e937f-aa22-485e-96af-7215f53e920d" ], "Users": [ "f362184c-980b-48b0-b229-dcc9c67ebfb1", "151a703d-9cd6-4621-ab91-3db4fae05f01" ] }, { "Id": "bebcf1fa-462e-4943-baad-6ad41ba65dae", "UPN": "c6efc819-03ab-4562-81f0-26d01ee9d9fb", "PostDate": "2025-07-08T20:10:04.1658741+00:00", "Comment": "sample string 4", "CC": [ "292cd8b4-1de5-44eb-8a67-dc76ab0b139f", "744e937f-aa22-485e-96af-7215f53e920d" ], "Users": [ "f362184c-980b-48b0-b229-dcc9c67ebfb1", "151a703d-9cd6-4621-ab91-3db4fae05f01" ] } ] }, "36b30877-778f-45f9-b578-edb7856c6b8e": { "TaskId": "d4cd0ea3-b15b-43dd-bf2c-029327d63a07", "Status": 0, "Comments": [ { "Id": "bebcf1fa-462e-4943-baad-6ad41ba65dae", "UPN": "c6efc819-03ab-4562-81f0-26d01ee9d9fb", "PostDate": "2025-07-08T20:10:04.1658741+00:00", "Comment": "sample string 4", "CC": [ "292cd8b4-1de5-44eb-8a67-dc76ab0b139f", "744e937f-aa22-485e-96af-7215f53e920d" ], "Users": [ "f362184c-980b-48b0-b229-dcc9c67ebfb1", "151a703d-9cd6-4621-ab91-3db4fae05f01" ] }, { "Id": "bebcf1fa-462e-4943-baad-6ad41ba65dae", "UPN": "c6efc819-03ab-4562-81f0-26d01ee9d9fb", "PostDate": "2025-07-08T20:10:04.1658741+00:00", "Comment": "sample string 4", "CC": [ "292cd8b4-1de5-44eb-8a67-dc76ab0b139f", "744e937f-aa22-485e-96af-7215f53e920d" ], "Users": [ "f362184c-980b-48b0-b229-dcc9c67ebfb1", "151a703d-9cd6-4621-ab91-3db4fae05f01" ] } ] } } } ], "ApprovalsLog": [ { "StepId": "6796fdd1-9376-4805-ae1a-969eccdd4ef8", "AutoApproved": true, "Completed": true, "Expired": true, "ExpiredReason": "sample string 5", "ApprovalStates": { "d71a2d18-ce19-4213-902e-ecfd49ec8cce": { "TaskId": "d4cd0ea3-b15b-43dd-bf2c-029327d63a07", "Status": 0, "Comments": [ { "Id": "bebcf1fa-462e-4943-baad-6ad41ba65dae", "UPN": "c6efc819-03ab-4562-81f0-26d01ee9d9fb", "PostDate": "2025-07-08T20:10:04.1658741+00:00", "Comment": "sample string 4", "CC": [ "292cd8b4-1de5-44eb-8a67-dc76ab0b139f", "744e937f-aa22-485e-96af-7215f53e920d" ], "Users": [ "f362184c-980b-48b0-b229-dcc9c67ebfb1", "151a703d-9cd6-4621-ab91-3db4fae05f01" ] }, { "Id": "bebcf1fa-462e-4943-baad-6ad41ba65dae", "UPN": "c6efc819-03ab-4562-81f0-26d01ee9d9fb", "PostDate": "2025-07-08T20:10:04.1658741+00:00", "Comment": "sample string 4", "CC": [ "292cd8b4-1de5-44eb-8a67-dc76ab0b139f", "744e937f-aa22-485e-96af-7215f53e920d" ], "Users": [ "f362184c-980b-48b0-b229-dcc9c67ebfb1", "151a703d-9cd6-4621-ab91-3db4fae05f01" ] } ] }, "36b30877-778f-45f9-b578-edb7856c6b8e": { "TaskId": "d4cd0ea3-b15b-43dd-bf2c-029327d63a07", "Status": 0, "Comments": [ { "Id": "bebcf1fa-462e-4943-baad-6ad41ba65dae", "UPN": "c6efc819-03ab-4562-81f0-26d01ee9d9fb", "PostDate": "2025-07-08T20:10:04.1658741+00:00", "Comment": "sample string 4", "CC": [ "292cd8b4-1de5-44eb-8a67-dc76ab0b139f", "744e937f-aa22-485e-96af-7215f53e920d" ], "Users": [ "f362184c-980b-48b0-b229-dcc9c67ebfb1", "151a703d-9cd6-4621-ab91-3db4fae05f01" ] }, { "Id": "bebcf1fa-462e-4943-baad-6ad41ba65dae", "UPN": "c6efc819-03ab-4562-81f0-26d01ee9d9fb", "PostDate": "2025-07-08T20:10:04.1658741+00:00", "Comment": "sample string 4", "CC": [ "292cd8b4-1de5-44eb-8a67-dc76ab0b139f", "744e937f-aa22-485e-96af-7215f53e920d" ], "Users": [ "f362184c-980b-48b0-b229-dcc9c67ebfb1", "151a703d-9cd6-4621-ab91-3db4fae05f01" ] } ] } } }, { "StepId": "6796fdd1-9376-4805-ae1a-969eccdd4ef8", "AutoApproved": true, "Completed": true, "Expired": true, "ExpiredReason": "sample string 5", "ApprovalStates": { "d71a2d18-ce19-4213-902e-ecfd49ec8cce": { "TaskId": "d4cd0ea3-b15b-43dd-bf2c-029327d63a07", "Status": 0, "Comments": [ { "Id": "bebcf1fa-462e-4943-baad-6ad41ba65dae", "UPN": "c6efc819-03ab-4562-81f0-26d01ee9d9fb", "PostDate": "2025-07-08T20:10:04.1658741+00:00", "Comment": "sample string 4", "CC": [ "292cd8b4-1de5-44eb-8a67-dc76ab0b139f", "744e937f-aa22-485e-96af-7215f53e920d" ], "Users": [ "f362184c-980b-48b0-b229-dcc9c67ebfb1", "151a703d-9cd6-4621-ab91-3db4fae05f01" ] }, { "Id": "bebcf1fa-462e-4943-baad-6ad41ba65dae", "UPN": "c6efc819-03ab-4562-81f0-26d01ee9d9fb", "PostDate": "2025-07-08T20:10:04.1658741+00:00", "Comment": "sample string 4", "CC": [ "292cd8b4-1de5-44eb-8a67-dc76ab0b139f", "744e937f-aa22-485e-96af-7215f53e920d" ], "Users": [ "f362184c-980b-48b0-b229-dcc9c67ebfb1", "151a703d-9cd6-4621-ab91-3db4fae05f01" ] } ] }, "36b30877-778f-45f9-b578-edb7856c6b8e": { "TaskId": "d4cd0ea3-b15b-43dd-bf2c-029327d63a07", "Status": 0, "Comments": [ { "Id": "bebcf1fa-462e-4943-baad-6ad41ba65dae", "UPN": "c6efc819-03ab-4562-81f0-26d01ee9d9fb", "PostDate": "2025-07-08T20:10:04.1658741+00:00", "Comment": "sample string 4", "CC": [ "292cd8b4-1de5-44eb-8a67-dc76ab0b139f", "744e937f-aa22-485e-96af-7215f53e920d" ], "Users": [ "f362184c-980b-48b0-b229-dcc9c67ebfb1", "151a703d-9cd6-4621-ab91-3db4fae05f01" ] }, { "Id": "bebcf1fa-462e-4943-baad-6ad41ba65dae", "UPN": "c6efc819-03ab-4562-81f0-26d01ee9d9fb", "PostDate": "2025-07-08T20:10:04.1658741+00:00", "Comment": "sample string 4", "CC": [ "292cd8b4-1de5-44eb-8a67-dc76ab0b139f", "744e937f-aa22-485e-96af-7215f53e920d" ], "Users": [ "f362184c-980b-48b0-b229-dcc9c67ebfb1", "151a703d-9cd6-4621-ab91-3db4fae05f01" ] } ] } } } ], "RulesRejected": [ { "Id": "af924a71-4876-4200-9b73-03833a7f4dce", "Name": "sample string 2", "FailureText": "sample string 3", "Filter": "sample string 4" }, { "Id": "af924a71-4876-4200-9b73-03833a7f4dce", "Name": "sample string 2", "FailureText": "sample string 3", "Filter": "sample string 4" } ], "ApprovalRejectionOrFailReason": "sample string 9" }, "id": "f148ad81-4943-449d-8ee6-ab1cd26d3d0f", "ConfigId": "79e21661-f6ff-4eb3-b351-572681c06f5b" }