File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,17 @@ const docusign = require("docusign-esign");
1010 * This function does the work of creating the permission profile
1111 */
1212const 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} ;
You can’t perform that action at this time.
0 commit comments