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": "44b24113-7b86-4a58-b904-3deef071cd8e", "Created": "2024-12-18T20:03:27.826648+00:00", "Modified": "2024-12-18T20:03:27.826648+00:00", "Editor": "b3da8062-cce8-4734-bc21-14c6cd155281", "PlannerTypeId": "11f9cace-a8d3-41f7-8152-896f31ba4135", "ParentPlanId": "cf54825b-1156-4894-834e-9f7396ba7ac1", "PortfolioParentId": "4118036c-dcda-4912-b61d-83071f80855b", "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": "fa51ef2b-7fd8-4cf7-bd2a-c342963291ca", "UPN": "05f27330-5381-431f-830f-952fd97ecb2d", "PostDate": "2024-12-18T20:03:27.826648+00:00", "Comment": "sample string 4", "CC": [ "91583a71-3be2-45ed-a392-2e310e240e46", "03bb81e9-aa87-4e61-8883-1524c70dda29" ], "Users": [ "53492eb0-f81f-4032-923e-dbb38b347915", "b6f1eed0-5108-48b0-8e42-f8c36f275091" ] }, { "Id": "fa51ef2b-7fd8-4cf7-bd2a-c342963291ca", "UPN": "05f27330-5381-431f-830f-952fd97ecb2d", "PostDate": "2024-12-18T20:03:27.826648+00:00", "Comment": "sample string 4", "CC": [ "91583a71-3be2-45ed-a392-2e310e240e46", "03bb81e9-aa87-4e61-8883-1524c70dda29" ], "Users": [ "53492eb0-f81f-4032-923e-dbb38b347915", "b6f1eed0-5108-48b0-8e42-f8c36f275091" ] } ], "LastComment": "2024-12-18T20:03:27.826648+00:00", "Integrations": [ { "IntegrationId": "fbe2a851-bc89-4a82-9240-e741ad053bc7", "ItemUrl": "sample string 2", "ItemId": "sample string 3", "TransactionId": "80ede65b-1830-41e6-85fb-631445fd66e3", "LastExport": "2024-12-18T20:03:27.826648+00:00", "LastImport": "2024-12-18T20:03:27.826648+00:00", "IntegrationVersion": 7, "Properties": { "sample string 1": {}, "sample string 3": {} } }, { "IntegrationId": "fbe2a851-bc89-4a82-9240-e741ad053bc7", "ItemUrl": "sample string 2", "ItemId": "sample string 3", "TransactionId": "80ede65b-1830-41e6-85fb-631445fd66e3", "LastExport": "2024-12-18T20:03:27.826648+00:00", "LastImport": "2024-12-18T20:03:27.826648+00:00", "IntegrationVersion": 7, "Properties": { "sample string 1": {}, "sample string 3": {} } } ], "Snapshots": [ { "Date": "2024-12-18T20:03:27.826648+00:00", "StatusReportId": "66301726-531e-4c62-9904-9667a73862e3", "Fields": { "sample string 1": {}, "sample string 3": {} } }, { "Date": "2024-12-18T20:03:27.826648+00:00", "StatusReportId": "66301726-531e-4c62-9904-9667a73862e3", "Fields": { "sample string 1": {}, "sample string 3": {} } } ], "SubPlans": [ "96e8c78a-8945-4a91-8f94-243823eecb68", "5d87451d-29e1-4608-8a9e-db9f2997d700" ], "PlanNumber": "sample string 14", "RateTables": [ { "Id": "3aef8f90-2c21-4f60-be3d-7b7c11d56f63", "Name": "sample string 2", "Multipliers": [ { "Start": "2024-12-18T20:03:27.826648+00:00", "End": "2024-12-18T20:03:27.826648+00:00", "PercentRevenue": 3.0, "PercentCost": 4.0 }, { "Start": "2024-12-18T20:03:27.826648+00:00", "End": "2024-12-18T20:03:27.826648+00:00", "PercentRevenue": 3.0, "PercentCost": 4.0 } ], "ResourceRates": [ { "ResourceId": "94eb827e-e00a-4125-a7bb-ecc17a9ddf73", "BaseRate": 2.0 }, { "ResourceId": "94eb827e-e00a-4125-a7bb-ecc17a9ddf73", "BaseRate": 2.0 } ] }, { "Id": "3aef8f90-2c21-4f60-be3d-7b7c11d56f63", "Name": "sample string 2", "Multipliers": [ { "Start": "2024-12-18T20:03:27.826648+00:00", "End": "2024-12-18T20:03:27.826648+00:00", "PercentRevenue": 3.0, "PercentCost": 4.0 }, { "Start": "2024-12-18T20:03:27.826648+00:00", "End": "2024-12-18T20:03:27.826648+00:00", "PercentRevenue": 3.0, "PercentCost": 4.0 } ], "ResourceRates": [ { "ResourceId": "94eb827e-e00a-4125-a7bb-ecc17a9ddf73", "BaseRate": 2.0 }, { "ResourceId": "94eb827e-e00a-4125-a7bb-ecc17a9ddf73", "BaseRate": 2.0 } ] } ], "Splits": [ { "Field": "sample string 1", "Value": "3e09901e-72b3-4f79-b31a-43120298aeef", "Split": 3.0, "Values": { "sample string 1": 2.0, "sample string 3": 4.0 } }, { "Field": "sample string 1", "Value": "3e09901e-72b3-4f79-b31a-43120298aeef", "Split": 3.0, "Values": { "sample string 1": 2.0, "sample string 3": 4.0 } } ], "LockInfo": { "LockedSid": "224a281e-5c19-46bc-9e52-cd63359aa191", "LockedBy": "54e9fcdf-2a9d-4139-92e0-a40c74878d61", "LockedDate": "2024-12-18T20:03:27.826648+00:00" }, "LastLocation": "sample string 15", "StageGateFlow": { "Id": "80b29fe5-7243-4cf6-8526-f4d5fb627275", "CurrentGateId": "e952aa6e-072b-4815-94db-cfc91fe1150c", "EnteredGate": "2024-12-18T20:03:27.826648+00:00", "ExitedGate": "2024-12-18T20:03:27.826648+00:00", "GateClosed": true, "StepStarter": "80d9a15a-f59e-4e7e-92cf-30040586a251", "StepApprover": "e93c0017-f59a-4ae1-8668-d133e0317daf", "ApprovalState": 0, "StepState": 0, "Comments": "sample string 8", "Approvals": [ { "StepId": "75d74781-3b95-4e0f-ad5d-0bdea6d095ef", "AutoApproved": true, "Completed": true, "Expired": true, "ApprovalStates": { "28f50fdb-13fa-47b5-9369-6f09e9a2f698": { "TaskId": "22fcbc12-16a7-4991-a6c5-5a4f5b399608", "Status": 0, "Comments": [ { "Id": "fa51ef2b-7fd8-4cf7-bd2a-c342963291ca", "UPN": "05f27330-5381-431f-830f-952fd97ecb2d", "PostDate": "2024-12-18T20:03:27.826648+00:00", "Comment": "sample string 4", "CC": [ "91583a71-3be2-45ed-a392-2e310e240e46", "03bb81e9-aa87-4e61-8883-1524c70dda29" ], "Users": [ "53492eb0-f81f-4032-923e-dbb38b347915", "b6f1eed0-5108-48b0-8e42-f8c36f275091" ] }, { "Id": "fa51ef2b-7fd8-4cf7-bd2a-c342963291ca", "UPN": "05f27330-5381-431f-830f-952fd97ecb2d", "PostDate": "2024-12-18T20:03:27.826648+00:00", "Comment": "sample string 4", "CC": [ "91583a71-3be2-45ed-a392-2e310e240e46", "03bb81e9-aa87-4e61-8883-1524c70dda29" ], "Users": [ "53492eb0-f81f-4032-923e-dbb38b347915", "b6f1eed0-5108-48b0-8e42-f8c36f275091" ] } ] }, "98eb70e4-6d75-44d0-a98f-54f21e71de00": { "TaskId": "22fcbc12-16a7-4991-a6c5-5a4f5b399608", "Status": 0, "Comments": [ { "Id": "fa51ef2b-7fd8-4cf7-bd2a-c342963291ca", "UPN": "05f27330-5381-431f-830f-952fd97ecb2d", "PostDate": "2024-12-18T20:03:27.826648+00:00", "Comment": "sample string 4", "CC": [ "91583a71-3be2-45ed-a392-2e310e240e46", "03bb81e9-aa87-4e61-8883-1524c70dda29" ], "Users": [ "53492eb0-f81f-4032-923e-dbb38b347915", "b6f1eed0-5108-48b0-8e42-f8c36f275091" ] }, { "Id": "fa51ef2b-7fd8-4cf7-bd2a-c342963291ca", "UPN": "05f27330-5381-431f-830f-952fd97ecb2d", "PostDate": "2024-12-18T20:03:27.826648+00:00", "Comment": "sample string 4", "CC": [ "91583a71-3be2-45ed-a392-2e310e240e46", "03bb81e9-aa87-4e61-8883-1524c70dda29" ], "Users": [ "53492eb0-f81f-4032-923e-dbb38b347915", "b6f1eed0-5108-48b0-8e42-f8c36f275091" ] } ] } } }, { "StepId": "75d74781-3b95-4e0f-ad5d-0bdea6d095ef", "AutoApproved": true, "Completed": true, "Expired": true, "ApprovalStates": { "28f50fdb-13fa-47b5-9369-6f09e9a2f698": { "TaskId": "22fcbc12-16a7-4991-a6c5-5a4f5b399608", "Status": 0, "Comments": [ { "Id": "fa51ef2b-7fd8-4cf7-bd2a-c342963291ca", "UPN": "05f27330-5381-431f-830f-952fd97ecb2d", "PostDate": "2024-12-18T20:03:27.826648+00:00", "Comment": "sample string 4", "CC": [ "91583a71-3be2-45ed-a392-2e310e240e46", "03bb81e9-aa87-4e61-8883-1524c70dda29" ], "Users": [ "53492eb0-f81f-4032-923e-dbb38b347915", "b6f1eed0-5108-48b0-8e42-f8c36f275091" ] }, { "Id": "fa51ef2b-7fd8-4cf7-bd2a-c342963291ca", "UPN": "05f27330-5381-431f-830f-952fd97ecb2d", "PostDate": "2024-12-18T20:03:27.826648+00:00", "Comment": "sample string 4", "CC": [ "91583a71-3be2-45ed-a392-2e310e240e46", "03bb81e9-aa87-4e61-8883-1524c70dda29" ], "Users": [ "53492eb0-f81f-4032-923e-dbb38b347915", "b6f1eed0-5108-48b0-8e42-f8c36f275091" ] } ] }, "98eb70e4-6d75-44d0-a98f-54f21e71de00": { "TaskId": "22fcbc12-16a7-4991-a6c5-5a4f5b399608", "Status": 0, "Comments": [ { "Id": "fa51ef2b-7fd8-4cf7-bd2a-c342963291ca", "UPN": "05f27330-5381-431f-830f-952fd97ecb2d", "PostDate": "2024-12-18T20:03:27.826648+00:00", "Comment": "sample string 4", "CC": [ "91583a71-3be2-45ed-a392-2e310e240e46", "03bb81e9-aa87-4e61-8883-1524c70dda29" ], "Users": [ "53492eb0-f81f-4032-923e-dbb38b347915", "b6f1eed0-5108-48b0-8e42-f8c36f275091" ] }, { "Id": "fa51ef2b-7fd8-4cf7-bd2a-c342963291ca", "UPN": "05f27330-5381-431f-830f-952fd97ecb2d", "PostDate": "2024-12-18T20:03:27.826648+00:00", "Comment": "sample string 4", "CC": [ "91583a71-3be2-45ed-a392-2e310e240e46", "03bb81e9-aa87-4e61-8883-1524c70dda29" ], "Users": [ "53492eb0-f81f-4032-923e-dbb38b347915", "b6f1eed0-5108-48b0-8e42-f8c36f275091" ] } ] } } } ], "ApprovalsLog": [ { "StepId": "75d74781-3b95-4e0f-ad5d-0bdea6d095ef", "AutoApproved": true, "Completed": true, "Expired": true, "ApprovalStates": { "28f50fdb-13fa-47b5-9369-6f09e9a2f698": { "TaskId": "22fcbc12-16a7-4991-a6c5-5a4f5b399608", "Status": 0, "Comments": [ { "Id": "fa51ef2b-7fd8-4cf7-bd2a-c342963291ca", "UPN": "05f27330-5381-431f-830f-952fd97ecb2d", "PostDate": "2024-12-18T20:03:27.826648+00:00", "Comment": "sample string 4", "CC": [ "91583a71-3be2-45ed-a392-2e310e240e46", "03bb81e9-aa87-4e61-8883-1524c70dda29" ], "Users": [ "53492eb0-f81f-4032-923e-dbb38b347915", "b6f1eed0-5108-48b0-8e42-f8c36f275091" ] }, { "Id": "fa51ef2b-7fd8-4cf7-bd2a-c342963291ca", "UPN": "05f27330-5381-431f-830f-952fd97ecb2d", "PostDate": "2024-12-18T20:03:27.826648+00:00", "Comment": "sample string 4", "CC": [ "91583a71-3be2-45ed-a392-2e310e240e46", "03bb81e9-aa87-4e61-8883-1524c70dda29" ], "Users": [ "53492eb0-f81f-4032-923e-dbb38b347915", "b6f1eed0-5108-48b0-8e42-f8c36f275091" ] } ] }, "98eb70e4-6d75-44d0-a98f-54f21e71de00": { "TaskId": "22fcbc12-16a7-4991-a6c5-5a4f5b399608", "Status": 0, "Comments": [ { "Id": "fa51ef2b-7fd8-4cf7-bd2a-c342963291ca", "UPN": "05f27330-5381-431f-830f-952fd97ecb2d", "PostDate": "2024-12-18T20:03:27.826648+00:00", "Comment": "sample string 4", "CC": [ "91583a71-3be2-45ed-a392-2e310e240e46", "03bb81e9-aa87-4e61-8883-1524c70dda29" ], "Users": [ "53492eb0-f81f-4032-923e-dbb38b347915", "b6f1eed0-5108-48b0-8e42-f8c36f275091" ] }, { "Id": "fa51ef2b-7fd8-4cf7-bd2a-c342963291ca", "UPN": "05f27330-5381-431f-830f-952fd97ecb2d", "PostDate": "2024-12-18T20:03:27.826648+00:00", "Comment": "sample string 4", "CC": [ "91583a71-3be2-45ed-a392-2e310e240e46", "03bb81e9-aa87-4e61-8883-1524c70dda29" ], "Users": [ "53492eb0-f81f-4032-923e-dbb38b347915", "b6f1eed0-5108-48b0-8e42-f8c36f275091" ] } ] } } }, { "StepId": "75d74781-3b95-4e0f-ad5d-0bdea6d095ef", "AutoApproved": true, "Completed": true, "Expired": true, "ApprovalStates": { "28f50fdb-13fa-47b5-9369-6f09e9a2f698": { "TaskId": "22fcbc12-16a7-4991-a6c5-5a4f5b399608", "Status": 0, "Comments": [ { "Id": "fa51ef2b-7fd8-4cf7-bd2a-c342963291ca", "UPN": "05f27330-5381-431f-830f-952fd97ecb2d", "PostDate": "2024-12-18T20:03:27.826648+00:00", "Comment": "sample string 4", "CC": [ "91583a71-3be2-45ed-a392-2e310e240e46", "03bb81e9-aa87-4e61-8883-1524c70dda29" ], "Users": [ "53492eb0-f81f-4032-923e-dbb38b347915", "b6f1eed0-5108-48b0-8e42-f8c36f275091" ] }, { "Id": "fa51ef2b-7fd8-4cf7-bd2a-c342963291ca", "UPN": "05f27330-5381-431f-830f-952fd97ecb2d", "PostDate": "2024-12-18T20:03:27.826648+00:00", "Comment": "sample string 4", "CC": [ "91583a71-3be2-45ed-a392-2e310e240e46", "03bb81e9-aa87-4e61-8883-1524c70dda29" ], "Users": [ "53492eb0-f81f-4032-923e-dbb38b347915", "b6f1eed0-5108-48b0-8e42-f8c36f275091" ] } ] }, "98eb70e4-6d75-44d0-a98f-54f21e71de00": { "TaskId": "22fcbc12-16a7-4991-a6c5-5a4f5b399608", "Status": 0, "Comments": [ { "Id": "fa51ef2b-7fd8-4cf7-bd2a-c342963291ca", "UPN": "05f27330-5381-431f-830f-952fd97ecb2d", "PostDate": "2024-12-18T20:03:27.826648+00:00", "Comment": "sample string 4", "CC": [ "91583a71-3be2-45ed-a392-2e310e240e46", "03bb81e9-aa87-4e61-8883-1524c70dda29" ], "Users": [ "53492eb0-f81f-4032-923e-dbb38b347915", "b6f1eed0-5108-48b0-8e42-f8c36f275091" ] }, { "Id": "fa51ef2b-7fd8-4cf7-bd2a-c342963291ca", "UPN": "05f27330-5381-431f-830f-952fd97ecb2d", "PostDate": "2024-12-18T20:03:27.826648+00:00", "Comment": "sample string 4", "CC": [ "91583a71-3be2-45ed-a392-2e310e240e46", "03bb81e9-aa87-4e61-8883-1524c70dda29" ], "Users": [ "53492eb0-f81f-4032-923e-dbb38b347915", "b6f1eed0-5108-48b0-8e42-f8c36f275091" ] } ] } } } ], "RulesRejected": [ { "Id": "bca9a838-d918-4b23-bab5-543a58e859c6", "Name": "sample string 2", "FailureText": "sample string 3", "Filter": "sample string 4" }, { "Id": "bca9a838-d918-4b23-bab5-543a58e859c6", "Name": "sample string 2", "FailureText": "sample string 3", "Filter": "sample string 4" } ], "ApprovalRejectionOrFailReason": "sample string 9" }, "id": "05d367e0-5710-4fcf-8f91-393d4a0fc970", "ConfigId": "356c5931-18b2-4ecd-a09f-214ccd99432d" }