Skip to content

Commit

Permalink
Update EG027ControllerPermissionDelete.java
Browse files Browse the repository at this point in the history
codeDepot markers

Signed-off-by: Aaron Wilde <[email protected]>
  • Loading branch information
AaronWDS authored Dec 27, 2023
1 parent cb2ba03 commit e343279
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ protected void onInitModel(WorkArguments args, ModelMap model) throws Exception

@Override
protected Object doWork(WorkArguments args, ModelMap model, HttpServletResponse response) {
// Step 2: Construct your API headers
// Construct your API headers
AccountsApi accountsApi = createAccountsApi(session.getBasePath(), user.getAccessToken());

// Step 3: Call the eSignature Rest API to delete profile
String curProfileId = args.getProfileId();
try {
//ds-snippet-start:eSign27Step3
PermissionDeleteService.permissionDelete(accountsApi, session.getAccountId(), curProfileId);

// Step 4: Show 'done' (successful) page
//ds-snippet-end:eSign27Step3

DoneExample.createDefault(getTextForCodeExampleByApiType().ExampleName)
.withMessage(getTextForCodeExampleByApiType().ResultsPageText.replaceFirst("\\{0}", curProfileId))
.addToModel(model, config);
Expand Down

0 comments on commit e343279

Please sign in to comment.