Skip to content

Commit 3e07415

Browse files
committed
DEVDOCS-10261 - adding codeDepot markers
1 parent 20b8ef8 commit 3e07415

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/eSignature/examples/createPermission.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ const docusign = require("docusign-esign");
1010
* This function does the work of creating the permission profile
1111
*/
1212
const createPermission = async (args) => {
13+
// Step 1. Construct your API headers
14+
//ds-snippet-start:eSign24Step2
1315
let dsApiClient = new docusign.ApiClient();
1416
dsApiClient.setBasePath(args.basePath);
1517

16-
// Step 1. Construct your API headers
1718
dsApiClient.addDefaultHeader("Authorization", "Bearer " + args.accessToken);
1819
let accountsApi = new docusign.AccountsApi(dsApiClient);
20+
//ds-snippet-end:eSign24Step2
1921

2022
// Step 2: Construct the request body
23+
//ds-snippet-start:eSign24Step3
2124
const requestBody = {
2225
permissionProfile: {
2326
permissionProfileName: args.profileName,
@@ -50,11 +53,14 @@ const createPermission = async (args) => {
5053
},
5154
},
5255
};
56+
//ds-snippet-end:eSign24Step3
5357

58+
//ds-snippet-start:eSign24Step4
5459
let results = await accountsApi.createPermissionProfile(
5560
args.accountId,
5661
requestBody
5762
);
63+
//ds-snippet-end:eSign24Step4
5864

5965
return results;
6066
};

0 commit comments

Comments
 (0)