POST api/workplan/{PlanId}/step/approve?state={state}&comment={comment}
Approve a Process Step
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
PlanId | globally unique identifier |
Required |
|
state | ProcessState |
Required |
|
comment | string |
Default value is |
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": "be6543fc-96c8-4008-bf77-02e45de5b7fe", "Created": "2025-07-11T12:22:34.462446+00:00", "Modified": "2025-07-11T12:22:34.462446+00:00", "Editor": "51a64157-bf8a-4113-8cb1-b9cf14330d6e", "PlannerTypeId": "c4f19403-f1aa-482f-a8b6-89a691f92a38", "ParentPlanId": "bce2ecc3-a8f2-473a-afaf-6a3789d2ec60", "PortfolioParentId": "6a58b234-44ea-4a64-abdd-0630de7f527e", "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": "ff74d26b-ab09-4063-b384-58d0a362e2d7", "UPN": "13b8fd94-6e62-45b6-8728-673079aed2f2", "PostDate": "2025-07-11T12:22:34.462446+00:00", "Comment": "sample string 4", "CC": [ "70354649-0f06-4082-8ab8-af3a2e571fce", "8b66db97-fdb1-4a0e-a3c4-30ee90e987ee" ], "Users": [ "54dda50f-f881-4d47-95f0-0beffe304b23", "fda9cdd7-5030-47de-b0c3-84e86069844a" ] }, { "Id": "ff74d26b-ab09-4063-b384-58d0a362e2d7", "UPN": "13b8fd94-6e62-45b6-8728-673079aed2f2", "PostDate": "2025-07-11T12:22:34.462446+00:00", "Comment": "sample string 4", "CC": [ "70354649-0f06-4082-8ab8-af3a2e571fce", "8b66db97-fdb1-4a0e-a3c4-30ee90e987ee" ], "Users": [ "54dda50f-f881-4d47-95f0-0beffe304b23", "fda9cdd7-5030-47de-b0c3-84e86069844a" ] } ], "LastComment": "2025-07-11T12:22:34.462446+00:00", "Integrations": [ { "IntegrationId": "e349f44a-7dbe-4d0b-a334-a20de97e63d7", "ItemUrl": "sample string 2", "ItemId": "sample string 3", "TransactionId": "8e88a4b8-67fb-46c5-808f-57c308dd146c", "LastExport": "2025-07-11T12:22:34.462446+00:00", "LastImport": "2025-07-11T12:22:34.462446+00:00", "IntegrationVersion": 7, "Properties": { "sample string 1": {}, "sample string 3": {} } }, { "IntegrationId": "e349f44a-7dbe-4d0b-a334-a20de97e63d7", "ItemUrl": "sample string 2", "ItemId": "sample string 3", "TransactionId": "8e88a4b8-67fb-46c5-808f-57c308dd146c", "LastExport": "2025-07-11T12:22:34.462446+00:00", "LastImport": "2025-07-11T12:22:34.462446+00:00", "IntegrationVersion": 7, "Properties": { "sample string 1": {}, "sample string 3": {} } } ], "Snapshots": [ { "Date": "2025-07-11T12:22:34.462446+00:00", "StatusReportId": "666701a1-692d-4b76-a750-8f1088f89afc", "Fields": { "sample string 1": {}, "sample string 3": {} } }, { "Date": "2025-07-11T12:22:34.462446+00:00", "StatusReportId": "666701a1-692d-4b76-a750-8f1088f89afc", "Fields": { "sample string 1": {}, "sample string 3": {} } } ], "SubPlans": [ "8bd19296-28b3-49cd-a0da-065b4d5c6c78", "714b2edc-5515-45a3-959e-93a09ecc83f1" ], "PlanNumber": "sample string 14", "RateTables": [ { "Id": "f4e52bf2-4969-4dd5-91da-0dc26d297750", "Name": "sample string 2", "Multipliers": [ { "Start": "2025-07-11T12:22:34.462446+00:00", "End": "2025-07-11T12:22:34.462446+00:00", "PercentRevenue": 3.0, "PercentCost": 4.0 }, { "Start": "2025-07-11T12:22:34.462446+00:00", "End": "2025-07-11T12:22:34.462446+00:00", "PercentRevenue": 3.0, "PercentCost": 4.0 } ], "ResourceRates": [ { "ResourceId": "a86cc9f0-0989-4cb9-87e2-7f73bb926005", "BaseRate": 2.0 }, { "ResourceId": "a86cc9f0-0989-4cb9-87e2-7f73bb926005", "BaseRate": 2.0 } ] }, { "Id": "f4e52bf2-4969-4dd5-91da-0dc26d297750", "Name": "sample string 2", "Multipliers": [ { "Start": "2025-07-11T12:22:34.462446+00:00", "End": "2025-07-11T12:22:34.462446+00:00", "PercentRevenue": 3.0, "PercentCost": 4.0 }, { "Start": "2025-07-11T12:22:34.462446+00:00", "End": "2025-07-11T12:22:34.462446+00:00", "PercentRevenue": 3.0, "PercentCost": 4.0 } ], "ResourceRates": [ { "ResourceId": "a86cc9f0-0989-4cb9-87e2-7f73bb926005", "BaseRate": 2.0 }, { "ResourceId": "a86cc9f0-0989-4cb9-87e2-7f73bb926005", "BaseRate": 2.0 } ] } ], "Splits": [ { "Field": "sample string 1", "Value": "6291c325-1874-4827-8e59-f936c534a72b", "Split": 3.0, "Values": { "sample string 1": 2.0, "sample string 3": 4.0 } }, { "Field": "sample string 1", "Value": "6291c325-1874-4827-8e59-f936c534a72b", "Split": 3.0, "Values": { "sample string 1": 2.0, "sample string 3": 4.0 } } ], "LockInfo": { "LockedSid": "74dc34e7-adb5-46cc-8121-e9b837877fca", "LockedBy": "539264f7-5a4a-4638-87c0-eab52bbada74", "LockedDate": "2025-07-11T12:22:34.462446+00:00" }, "LastLocation": "sample string 15", "StageGateFlow": { "Id": "d599eb0a-c744-4df0-954e-d5484802a48c", "CurrentGateId": "d1f34615-220c-474e-8962-d2cd3dc6e754", "EnteredGate": "2025-07-11T12:22:34.462446+00:00", "ExitedGate": "2025-07-11T12:22:34.462446+00:00", "GateClosed": true, "StepStarter": "0d28800a-42cb-4656-94e8-ffeb18883cdb", "StepApprover": "432edb23-6ab1-452d-b034-b7e72a89cfcf", "ApprovalState": 0, "StepState": 0, "Comments": "sample string 8", "Approvals": [ { "StepId": "3e341a7e-6136-410e-90af-0cf323bcb187", "AutoApproved": true, "Completed": true, "Expired": true, "ExpiredReason": "sample string 5", "ApprovalStates": { "6404e94b-0975-4f71-82da-e281c351267f": { "TaskId": "b88e6b72-8281-4532-af79-75b90e9f1aee", "Status": 0, "Comments": [ { "Id": "ff74d26b-ab09-4063-b384-58d0a362e2d7", "UPN": "13b8fd94-6e62-45b6-8728-673079aed2f2", "PostDate": "2025-07-11T12:22:34.462446+00:00", "Comment": "sample string 4", "CC": [ "70354649-0f06-4082-8ab8-af3a2e571fce", "8b66db97-fdb1-4a0e-a3c4-30ee90e987ee" ], "Users": [ "54dda50f-f881-4d47-95f0-0beffe304b23", "fda9cdd7-5030-47de-b0c3-84e86069844a" ] }, { "Id": "ff74d26b-ab09-4063-b384-58d0a362e2d7", "UPN": "13b8fd94-6e62-45b6-8728-673079aed2f2", "PostDate": "2025-07-11T12:22:34.462446+00:00", "Comment": "sample string 4", "CC": [ "70354649-0f06-4082-8ab8-af3a2e571fce", "8b66db97-fdb1-4a0e-a3c4-30ee90e987ee" ], "Users": [ "54dda50f-f881-4d47-95f0-0beffe304b23", "fda9cdd7-5030-47de-b0c3-84e86069844a" ] } ] }, "85bb5f8c-768b-4709-8fe4-a8c3c1447af6": { "TaskId": "b88e6b72-8281-4532-af79-75b90e9f1aee", "Status": 0, "Comments": [ { "Id": "ff74d26b-ab09-4063-b384-58d0a362e2d7", "UPN": "13b8fd94-6e62-45b6-8728-673079aed2f2", "PostDate": "2025-07-11T12:22:34.462446+00:00", "Comment": "sample string 4", "CC": [ "70354649-0f06-4082-8ab8-af3a2e571fce", "8b66db97-fdb1-4a0e-a3c4-30ee90e987ee" ], "Users": [ "54dda50f-f881-4d47-95f0-0beffe304b23", "fda9cdd7-5030-47de-b0c3-84e86069844a" ] }, { "Id": "ff74d26b-ab09-4063-b384-58d0a362e2d7", "UPN": "13b8fd94-6e62-45b6-8728-673079aed2f2", "PostDate": "2025-07-11T12:22:34.462446+00:00", "Comment": "sample string 4", "CC": [ "70354649-0f06-4082-8ab8-af3a2e571fce", "8b66db97-fdb1-4a0e-a3c4-30ee90e987ee" ], "Users": [ "54dda50f-f881-4d47-95f0-0beffe304b23", "fda9cdd7-5030-47de-b0c3-84e86069844a" ] } ] } } }, { "StepId": "3e341a7e-6136-410e-90af-0cf323bcb187", "AutoApproved": true, "Completed": true, "Expired": true, "ExpiredReason": "sample string 5", "ApprovalStates": { "6404e94b-0975-4f71-82da-e281c351267f": { "TaskId": "b88e6b72-8281-4532-af79-75b90e9f1aee", "Status": 0, "Comments": [ { "Id": "ff74d26b-ab09-4063-b384-58d0a362e2d7", "UPN": "13b8fd94-6e62-45b6-8728-673079aed2f2", "PostDate": "2025-07-11T12:22:34.462446+00:00", "Comment": "sample string 4", "CC": [ "70354649-0f06-4082-8ab8-af3a2e571fce", "8b66db97-fdb1-4a0e-a3c4-30ee90e987ee" ], "Users": [ "54dda50f-f881-4d47-95f0-0beffe304b23", "fda9cdd7-5030-47de-b0c3-84e86069844a" ] }, { "Id": "ff74d26b-ab09-4063-b384-58d0a362e2d7", "UPN": "13b8fd94-6e62-45b6-8728-673079aed2f2", "PostDate": "2025-07-11T12:22:34.462446+00:00", "Comment": "sample string 4", "CC": [ "70354649-0f06-4082-8ab8-af3a2e571fce", "8b66db97-fdb1-4a0e-a3c4-30ee90e987ee" ], "Users": [ "54dda50f-f881-4d47-95f0-0beffe304b23", "fda9cdd7-5030-47de-b0c3-84e86069844a" ] } ] }, "85bb5f8c-768b-4709-8fe4-a8c3c1447af6": { "TaskId": "b88e6b72-8281-4532-af79-75b90e9f1aee", "Status": 0, "Comments": [ { "Id": "ff74d26b-ab09-4063-b384-58d0a362e2d7", "UPN": "13b8fd94-6e62-45b6-8728-673079aed2f2", "PostDate": "2025-07-11T12:22:34.462446+00:00", "Comment": "sample string 4", "CC": [ "70354649-0f06-4082-8ab8-af3a2e571fce", "8b66db97-fdb1-4a0e-a3c4-30ee90e987ee" ], "Users": [ "54dda50f-f881-4d47-95f0-0beffe304b23", "fda9cdd7-5030-47de-b0c3-84e86069844a" ] }, { "Id": "ff74d26b-ab09-4063-b384-58d0a362e2d7", "UPN": "13b8fd94-6e62-45b6-8728-673079aed2f2", "PostDate": "2025-07-11T12:22:34.462446+00:00", "Comment": "sample string 4", "CC": [ "70354649-0f06-4082-8ab8-af3a2e571fce", "8b66db97-fdb1-4a0e-a3c4-30ee90e987ee" ], "Users": [ "54dda50f-f881-4d47-95f0-0beffe304b23", "fda9cdd7-5030-47de-b0c3-84e86069844a" ] } ] } } } ], "ApprovalsLog": [ { "StepId": "3e341a7e-6136-410e-90af-0cf323bcb187", "AutoApproved": true, "Completed": true, "Expired": true, "ExpiredReason": "sample string 5", "ApprovalStates": { "6404e94b-0975-4f71-82da-e281c351267f": { "TaskId": "b88e6b72-8281-4532-af79-75b90e9f1aee", "Status": 0, "Comments": [ { "Id": "ff74d26b-ab09-4063-b384-58d0a362e2d7", "UPN": "13b8fd94-6e62-45b6-8728-673079aed2f2", "PostDate": "2025-07-11T12:22:34.462446+00:00", "Comment": "sample string 4", "CC": [ "70354649-0f06-4082-8ab8-af3a2e571fce", "8b66db97-fdb1-4a0e-a3c4-30ee90e987ee" ], "Users": [ "54dda50f-f881-4d47-95f0-0beffe304b23", "fda9cdd7-5030-47de-b0c3-84e86069844a" ] }, { "Id": "ff74d26b-ab09-4063-b384-58d0a362e2d7", "UPN": "13b8fd94-6e62-45b6-8728-673079aed2f2", "PostDate": "2025-07-11T12:22:34.462446+00:00", "Comment": "sample string 4", "CC": [ "70354649-0f06-4082-8ab8-af3a2e571fce", "8b66db97-fdb1-4a0e-a3c4-30ee90e987ee" ], "Users": [ "54dda50f-f881-4d47-95f0-0beffe304b23", "fda9cdd7-5030-47de-b0c3-84e86069844a" ] } ] }, "85bb5f8c-768b-4709-8fe4-a8c3c1447af6": { "TaskId": "b88e6b72-8281-4532-af79-75b90e9f1aee", "Status": 0, "Comments": [ { "Id": "ff74d26b-ab09-4063-b384-58d0a362e2d7", "UPN": "13b8fd94-6e62-45b6-8728-673079aed2f2", "PostDate": "2025-07-11T12:22:34.462446+00:00", "Comment": "sample string 4", "CC": [ "70354649-0f06-4082-8ab8-af3a2e571fce", "8b66db97-fdb1-4a0e-a3c4-30ee90e987ee" ], "Users": [ "54dda50f-f881-4d47-95f0-0beffe304b23", "fda9cdd7-5030-47de-b0c3-84e86069844a" ] }, { "Id": "ff74d26b-ab09-4063-b384-58d0a362e2d7", "UPN": "13b8fd94-6e62-45b6-8728-673079aed2f2", "PostDate": "2025-07-11T12:22:34.462446+00:00", "Comment": "sample string 4", "CC": [ "70354649-0f06-4082-8ab8-af3a2e571fce", "8b66db97-fdb1-4a0e-a3c4-30ee90e987ee" ], "Users": [ "54dda50f-f881-4d47-95f0-0beffe304b23", "fda9cdd7-5030-47de-b0c3-84e86069844a" ] } ] } } }, { "StepId": "3e341a7e-6136-410e-90af-0cf323bcb187", "AutoApproved": true, "Completed": true, "Expired": true, "ExpiredReason": "sample string 5", "ApprovalStates": { "6404e94b-0975-4f71-82da-e281c351267f": { "TaskId": "b88e6b72-8281-4532-af79-75b90e9f1aee", "Status": 0, "Comments": [ { "Id": "ff74d26b-ab09-4063-b384-58d0a362e2d7", "UPN": "13b8fd94-6e62-45b6-8728-673079aed2f2", "PostDate": "2025-07-11T12:22:34.462446+00:00", "Comment": "sample string 4", "CC": [ "70354649-0f06-4082-8ab8-af3a2e571fce", "8b66db97-fdb1-4a0e-a3c4-30ee90e987ee" ], "Users": [ "54dda50f-f881-4d47-95f0-0beffe304b23", "fda9cdd7-5030-47de-b0c3-84e86069844a" ] }, { "Id": "ff74d26b-ab09-4063-b384-58d0a362e2d7", "UPN": "13b8fd94-6e62-45b6-8728-673079aed2f2", "PostDate": "2025-07-11T12:22:34.462446+00:00", "Comment": "sample string 4", "CC": [ "70354649-0f06-4082-8ab8-af3a2e571fce", "8b66db97-fdb1-4a0e-a3c4-30ee90e987ee" ], "Users": [ "54dda50f-f881-4d47-95f0-0beffe304b23", "fda9cdd7-5030-47de-b0c3-84e86069844a" ] } ] }, "85bb5f8c-768b-4709-8fe4-a8c3c1447af6": { "TaskId": "b88e6b72-8281-4532-af79-75b90e9f1aee", "Status": 0, "Comments": [ { "Id": "ff74d26b-ab09-4063-b384-58d0a362e2d7", "UPN": "13b8fd94-6e62-45b6-8728-673079aed2f2", "PostDate": "2025-07-11T12:22:34.462446+00:00", "Comment": "sample string 4", "CC": [ "70354649-0f06-4082-8ab8-af3a2e571fce", "8b66db97-fdb1-4a0e-a3c4-30ee90e987ee" ], "Users": [ "54dda50f-f881-4d47-95f0-0beffe304b23", "fda9cdd7-5030-47de-b0c3-84e86069844a" ] }, { "Id": "ff74d26b-ab09-4063-b384-58d0a362e2d7", "UPN": "13b8fd94-6e62-45b6-8728-673079aed2f2", "PostDate": "2025-07-11T12:22:34.462446+00:00", "Comment": "sample string 4", "CC": [ "70354649-0f06-4082-8ab8-af3a2e571fce", "8b66db97-fdb1-4a0e-a3c4-30ee90e987ee" ], "Users": [ "54dda50f-f881-4d47-95f0-0beffe304b23", "fda9cdd7-5030-47de-b0c3-84e86069844a" ] } ] } } } ], "RulesRejected": [ { "Id": "925b99aa-62cf-4897-af1c-c93f49abd8ed", "Name": "sample string 2", "FailureText": "sample string 3", "Filter": "sample string 4" }, { "Id": "925b99aa-62cf-4897-af1c-c93f49abd8ed", "Name": "sample string 2", "FailureText": "sample string 3", "Filter": "sample string 4" } ], "ApprovalRejectionOrFailReason": "sample string 9" }, "id": "6d83327e-3173-49bb-bfa9-a5a4f96e29dd", "ConfigId": "9f5c4bb0-c6a5-4707-ab4d-e1aba3e4525f" }