Chilkat Online Tools

unicodeC / DocuSign REST API / Updates a permission profile within the specified account.

Back to Collection Items

#include <C_CkHttpW.h>
#include <C_CkJsonObjectW.h>
#include <C_CkStringBuilderW.h>
#include <C_CkHttpResponseW.h>

void ChilkatSample(void)
    {
    HCkHttpW http;
    BOOL success;
    HCkJsonObjectW json;
    HCkStringBuilderW sbRequestBody;
    HCkHttpResponseW resp;

    // This example assumes the Chilkat API to have been previously unlocked.
    // See Global Unlock Sample for sample code.

    http = CkHttpW_Create();

    // Use this online tool to generate code from sample JSON: Generate Code to Create JSON

    // The following JSON is sent in the request body.

    // {
    //   "permissionProfileId": "sample string 1",
    //   "permissionProfileName": "sample string 2",
    //   "users": [
    //     {
    //       "userName": "sample string 1",
    //       "userId": "sample string 2",
    //       "userType": "sample string 3",
    //       "isAdmin": "sample string 4",
    //       "userStatus": "sample string 5",
    //       "uri": "sample string 6",
    //       "email": "sample string 7",
    //       "password": "sample string 8",
    //       "title": "sample string 9",
    //       "createdDateTime": "sample string 10",
    //       "firstName": "sample string 11",
    //       "middleName": "sample string 12",
    //       "lastName": "sample string 13",
    //       "suffixName": "sample string 14",
    //       "permissionProfileId": "sample string 15",
    //       "permissionProfileName": "sample string 16",
    //       "countryCode": "sample string 17",
    //       "subscribe": "sample string 18",
    //       "userSettings": [
    //         {}
    //       ],
    //       "accountManagementGranular": {
    //         "canManageUsers": "sample string 1",
    //         "canManageAdmins": "sample string 2",
    //         "canManageGroups": "sample string 3",
    //         "canManageSharing": "sample string 4",
    //         "canManageEnvelopeTransfer": "sample string 5",
    //         "canManageAccountSettings": "sample string 6",
    //         "canManageReporting": "sample string 7",
    //         "canManageAccountSecuritySettings": "sample string 8",
    //         "canManageSigningGroups": "sample string 9",
    //         "canManageDocumentRetention": "sample string 10",
    //         "canViewUsers": "sample string 11",
    //         "canManageUsersMetadata": {
    //           "rights": "sample string 1",
    //           "uiHint": "sample string 2",
    //           "uiType": "sample string 3",
    //           "uiOrder": "sample string 4",
    //           "is21CFRPart11": "sample string 5",
    //           "options": [
    //             "sample string 1"
    //           ]
    //         },
    //         "canManageAdminsMetadata": {},
    //         "canManageGroupsMetadata": {},
    //         "canManageSharingMetadata": {},
    //         "canManageEnvelopeTransferMetadata": {},
    //         "canManageAccountSettingsMetadata": {},
    //         "canManageReportingMetadata": {},
    //         "canManageAccountSecuritySettingsMetadata": {},
    //         "canManageSigningGroupsMetadata": {},
    //         "canManageDocumentRetentionMetadata": {},
    //         "canViewUsersMetadata": {}
    //       },
    //       "sendActivationOnInvalidLogin": "sample string 19",
    //       "activationAccessCode": "sample string 20",
    //       "enableConnectForUser": "sample string 21",
    //       "forgottenPasswordInfo": {
    //         "forgottenPasswordQuestion1": "sample string 1",
    //         "forgottenPasswordAnswer1": "sample string 2",
    //         "forgottenPasswordQuestion2": "sample string 3",
    //         "forgottenPasswordAnswer2": "sample string 4",
    //         "forgottenPasswordQuestion3": "sample string 5",
    //         "forgottenPasswordAnswer3": "sample string 6",
    //         "forgottenPasswordQuestion4": "sample string 7",
    //         "forgottenPasswordAnswer4": "sample string 8"
    //       },
    //       "groupList": [
    //         {
    //           "groupId": "sample string 1",
    //           "groupName": "sample string 2",
    //           "permissionProfileId": "sample string 3",
    //           "groupType": "sample string 4",
    //           "users": [
    //             {
    //               "userName": "sample string 1",
    //               "userId": "sample string 2",
    //               "email": "sample string 3",
    //               "userType": "sample string 4",
    //               "userStatus": "sample string 5",
    //               "uri": "sample string 6",
    //               "loginStatus": "sample string 7",
    //               "sendActivationEmail": "sample string 8",
    //               "activationAccessCode": "sample string 9"
    //             }
    //           ]
    //         }
    //       ],
    //       "workAddress": {
    //         "address1": "sample string 1",
    //         "address2": "sample string 2",
    //         "city": "sample string 3",
    //         "stateOrProvince": "sample string 4",
    //         "postalCode": "sample string 5",
    //         "phone": "sample string 6",
    //         "fax": "sample string 7",
    //         "country": "sample string 8"
    //       },
    //       "homeAddress": {},
    //       "loginStatus": "sample string 22",
    //       "passwordExpiration": "sample string 23",
    //       "lastLogin": "sample string 24",
    //       "sendActivationEmail": "sample string 25",
    //       "customSettings": [
    //         {}
    //       ],
    //       "profileImageUri": "sample string 26",
    //       "userProfileLastModifiedDate": "sample string 27",
    //       "signatureImageUri": "sample string 28",
    //       "initialsImageUri": "sample string 29",
    //       "jobTitle": "sample string 30"
    //     }
    //   ],
    //   "modifiedDateTime": "sample string 3",
    //   "modifiedByUsername": "sample string 4",
    //   "userCount": "sample string 5",
    //   "settings": {
    //     "allowAccountManagement": "sample string 1",
    //     "useNewDocuSignExperienceInterface": "sample string 2",
    //     "canCreateWorkspaces": "sample string 3",
    //     "allowBulkSending": "sample string 4",
    //     "allowEnvelopeSending": "sample string 5",
    //     "allowESealRecipients": "sample string 6",
    //     "allowSignerAttachments": "sample string 7",
    //     "allowTaggingInSendAndCorrect": "sample string 8",
    //     "allowWetSigningOverride": "sample string 9",
    //     "allowedAddressBookAccess": "sample string 10",
    //     "allowedTemplateAccess": "sample string 11",
    //     "enableRecipientViewingNotifications": "sample string 12",
    //     "enableSequentialSigningInterface": "sample string 13",
    //     "receiveCompletedSelfSignedDocumentsAsEmailLinks": "sample string 14",
    //     "useNewSendingInterface": "sample string 15",
    //     "allowSupplementalDocuments": "sample string 16",
    //     "supplementalDocumentsMustView": "sample string 17",
    //     "supplementalDocumentsMustAccept": "sample string 18",
    //     "supplementalDocumentsMustRead": "sample string 19",
    //     "disableDocumentUpload": "sample string 20",
    //     "disableOtherActions": "sample string 21",
    //     "allowAutoTagging": "sample string 22",
    //     "allowApiAccess": "sample string 23",
    //     "allowApiAccessToAccount": "sample string 24",
    //     "allowApiSendingOnBehalfOfOthers": "sample string 25",
    //     "allowApiSequentialSigning": "sample string 26",
    //     "enableApiRequestLogging": "sample string 27",
    //     "allowDocuSignDesktopClient": "sample string 28",
    //     "allowSendersToSetRecipientEmailLanguage": "sample string 29",
    //     "allowVaulting": "sample string 30",
    //     "allowedToBeEnvelopeTransferRecipient": "sample string 31",
    //     "enableTransactionPointIntegration": "sample string 32",
    //     "powerFormRole": "sample string 33",
    //     "allowPowerFormsAdminToAccessAllPowerFormEnvelopes": "sample string 34",
    //     "vaultingMode": "sample string 35",
    //     "allowAccountManagementMetadata": {},
    //     "useNewDocuSignExperienceInterfaceMetadata": {},
    //     "canCreateWorkspacesMetadata": {},
    //     "allowBulkSendingMetadata": {},
    //     "allowEnvelopeSendingMetadata": {},
    //     "allowESealRecipientsMetadata": {},
    //     "allowSignerAttachmentsMetadata": {},
    //     "allowTaggingInSendAndCorrectMetadata": {},
    //     "allowWetSigningOverrideMetadata": {},
    //     "allowedAddressBookAccessMetadata": {},
    //     "allowedTemplateAccessMetadata": {},
    //     "enableRecipientViewingNotificationsMetadata": {},
    //     "enableSequentialSigningInterfaceMetadata": {},
    //     "receiveCompletedSelfSignedDocumentsAsEmailLinksMetadata": {},
    //     "useNewSendingInterfaceMetadata": {},
    //     "allowSupplementalDocumentsMetadata": {},
    //     "supplementalDocumentsMustViewMetadata": {},
    //     "supplementalDocumentsMustAcceptMetadata": {},
    //     "supplementalDocumentsMustReadMetadata": {},
    //     "disableDocumentUploadMetadata": {},
    //     "disableOtherActionsMetadata": {},
    //     "allowAutoTaggingMetadata": {},
    //     "allowApiAccessMetadata": {},
    //     "allowApiAccessToAccountMetadata": {},
    //     "allowApiSendingOnBehalfOfOthersMetadata": {},
    //     "allowApiSequentialSigningMetadata": {},
    //     "enableApiRequestLoggingMetadata": {},
    //     "allowDocuSignDesktopClientMetadata": {},
    //     "allowSendersToSetRecipientEmailLanguageMetadata": {},
    //     "allowVaultingMetadata": {},
    //     "allowedToBeEnvelopeTransferRecipientMetadata": {},
    //     "enableTransactionPointIntegrationMetadata": {},
    //     "powerFormRoleMetadata": {},
    //     "allowPowerFormsAdminToAccessAllPowerFormEnvelopesMetadata": {},
    //     "vaultingModeMetadata": {}
    //   }
    // }

    json = CkJsonObjectW_Create();
    CkJsonObjectW_UpdateString(json,L"permissionProfileId",L"sample string 1");
    CkJsonObjectW_UpdateString(json,L"permissionProfileName",L"sample string 2");
    CkJsonObjectW_UpdateString(json,L"users[0].userName",L"sample string 1");
    CkJsonObjectW_UpdateString(json,L"users[0].userId",L"sample string 2");
    CkJsonObjectW_UpdateString(json,L"users[0].userType",L"sample string 3");
    CkJsonObjectW_UpdateString(json,L"users[0].isAdmin",L"sample string 4");
    CkJsonObjectW_UpdateString(json,L"users[0].userStatus",L"sample string 5");
    CkJsonObjectW_UpdateString(json,L"users[0].uri",L"sample string 6");
    CkJsonObjectW_UpdateString(json,L"users[0].email",L"sample string 7");
    CkJsonObjectW_UpdateString(json,L"users[0].password",L"sample string 8");
    CkJsonObjectW_UpdateString(json,L"users[0].title",L"sample string 9");
    CkJsonObjectW_UpdateString(json,L"users[0].createdDateTime",L"sample string 10");
    CkJsonObjectW_UpdateString(json,L"users[0].firstName",L"sample string 11");
    CkJsonObjectW_UpdateString(json,L"users[0].middleName",L"sample string 12");
    CkJsonObjectW_UpdateString(json,L"users[0].lastName",L"sample string 13");
    CkJsonObjectW_UpdateString(json,L"users[0].suffixName",L"sample string 14");
    CkJsonObjectW_UpdateString(json,L"users[0].permissionProfileId",L"sample string 15");
    CkJsonObjectW_UpdateString(json,L"users[0].permissionProfileName",L"sample string 16");
    CkJsonObjectW_UpdateString(json,L"users[0].countryCode",L"sample string 17");
    CkJsonObjectW_UpdateString(json,L"users[0].subscribe",L"sample string 18");
    CkJsonObjectW_UpdateString(json,L"users[0].accountManagementGranular.canManageUsers",L"sample string 1");
    CkJsonObjectW_UpdateString(json,L"users[0].accountManagementGranular.canManageAdmins",L"sample string 2");
    CkJsonObjectW_UpdateString(json,L"users[0].accountManagementGranular.canManageGroups",L"sample string 3");
    CkJsonObjectW_UpdateString(json,L"users[0].accountManagementGranular.canManageSharing",L"sample string 4");
    CkJsonObjectW_UpdateString(json,L"users[0].accountManagementGranular.canManageEnvelopeTransfer",L"sample string 5");
    CkJsonObjectW_UpdateString(json,L"users[0].accountManagementGranular.canManageAccountSettings",L"sample string 6");
    CkJsonObjectW_UpdateString(json,L"users[0].accountManagementGranular.canManageReporting",L"sample string 7");
    CkJsonObjectW_UpdateString(json,L"users[0].accountManagementGranular.canManageAccountSecuritySettings",L"sample string 8");
    CkJsonObjectW_UpdateString(json,L"users[0].accountManagementGranular.canManageSigningGroups",L"sample string 9");
    CkJsonObjectW_UpdateString(json,L"users[0].accountManagementGranular.canManageDocumentRetention",L"sample string 10");
    CkJsonObjectW_UpdateString(json,L"users[0].accountManagementGranular.canViewUsers",L"sample string 11");
    CkJsonObjectW_UpdateString(json,L"users[0].accountManagementGranular.canManageUsersMetadata.rights",L"sample string 1");
    CkJsonObjectW_UpdateString(json,L"users[0].accountManagementGranular.canManageUsersMetadata.uiHint",L"sample string 2");
    CkJsonObjectW_UpdateString(json,L"users[0].accountManagementGranular.canManageUsersMetadata.uiType",L"sample string 3");
    CkJsonObjectW_UpdateString(json,L"users[0].accountManagementGranular.canManageUsersMetadata.uiOrder",L"sample string 4");
    CkJsonObjectW_UpdateString(json,L"users[0].accountManagementGranular.canManageUsersMetadata.is21CFRPart11",L"sample string 5");
    CkJsonObjectW_UpdateString(json,L"users[0].accountManagementGranular.canManageUsersMetadata.options[0]",L"sample string 1");
    CkJsonObjectW_UpdateNewObject(json,L"users[0].accountManagementGranular.canManageAdminsMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"users[0].accountManagementGranular.canManageGroupsMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"users[0].accountManagementGranular.canManageSharingMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"users[0].accountManagementGranular.canManageEnvelopeTransferMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"users[0].accountManagementGranular.canManageAccountSettingsMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"users[0].accountManagementGranular.canManageReportingMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"users[0].accountManagementGranular.canManageAccountSecuritySettingsMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"users[0].accountManagementGranular.canManageSigningGroupsMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"users[0].accountManagementGranular.canManageDocumentRetentionMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"users[0].accountManagementGranular.canViewUsersMetadata");
    CkJsonObjectW_UpdateString(json,L"users[0].sendActivationOnInvalidLogin",L"sample string 19");
    CkJsonObjectW_UpdateString(json,L"users[0].activationAccessCode",L"sample string 20");
    CkJsonObjectW_UpdateString(json,L"users[0].enableConnectForUser",L"sample string 21");
    CkJsonObjectW_UpdateString(json,L"users[0].forgottenPasswordInfo.forgottenPasswordQuestion1",L"sample string 1");
    CkJsonObjectW_UpdateString(json,L"users[0].forgottenPasswordInfo.forgottenPasswordAnswer1",L"sample string 2");
    CkJsonObjectW_UpdateString(json,L"users[0].forgottenPasswordInfo.forgottenPasswordQuestion2",L"sample string 3");
    CkJsonObjectW_UpdateString(json,L"users[0].forgottenPasswordInfo.forgottenPasswordAnswer2",L"sample string 4");
    CkJsonObjectW_UpdateString(json,L"users[0].forgottenPasswordInfo.forgottenPasswordQuestion3",L"sample string 5");
    CkJsonObjectW_UpdateString(json,L"users[0].forgottenPasswordInfo.forgottenPasswordAnswer3",L"sample string 6");
    CkJsonObjectW_UpdateString(json,L"users[0].forgottenPasswordInfo.forgottenPasswordQuestion4",L"sample string 7");
    CkJsonObjectW_UpdateString(json,L"users[0].forgottenPasswordInfo.forgottenPasswordAnswer4",L"sample string 8");
    CkJsonObjectW_UpdateString(json,L"users[0].groupList[0].groupId",L"sample string 1");
    CkJsonObjectW_UpdateString(json,L"users[0].groupList[0].groupName",L"sample string 2");
    CkJsonObjectW_UpdateString(json,L"users[0].groupList[0].permissionProfileId",L"sample string 3");
    CkJsonObjectW_UpdateString(json,L"users[0].groupList[0].groupType",L"sample string 4");
    CkJsonObjectW_UpdateString(json,L"users[0].groupList[0].users[0].userName",L"sample string 1");
    CkJsonObjectW_UpdateString(json,L"users[0].groupList[0].users[0].userId",L"sample string 2");
    CkJsonObjectW_UpdateString(json,L"users[0].groupList[0].users[0].email",L"sample string 3");
    CkJsonObjectW_UpdateString(json,L"users[0].groupList[0].users[0].userType",L"sample string 4");
    CkJsonObjectW_UpdateString(json,L"users[0].groupList[0].users[0].userStatus",L"sample string 5");
    CkJsonObjectW_UpdateString(json,L"users[0].groupList[0].users[0].uri",L"sample string 6");
    CkJsonObjectW_UpdateString(json,L"users[0].groupList[0].users[0].loginStatus",L"sample string 7");
    CkJsonObjectW_UpdateString(json,L"users[0].groupList[0].users[0].sendActivationEmail",L"sample string 8");
    CkJsonObjectW_UpdateString(json,L"users[0].groupList[0].users[0].activationAccessCode",L"sample string 9");
    CkJsonObjectW_UpdateString(json,L"users[0].workAddress.address1",L"sample string 1");
    CkJsonObjectW_UpdateString(json,L"users[0].workAddress.address2",L"sample string 2");
    CkJsonObjectW_UpdateString(json,L"users[0].workAddress.city",L"sample string 3");
    CkJsonObjectW_UpdateString(json,L"users[0].workAddress.stateOrProvince",L"sample string 4");
    CkJsonObjectW_UpdateString(json,L"users[0].workAddress.postalCode",L"sample string 5");
    CkJsonObjectW_UpdateString(json,L"users[0].workAddress.phone",L"sample string 6");
    CkJsonObjectW_UpdateString(json,L"users[0].workAddress.fax",L"sample string 7");
    CkJsonObjectW_UpdateString(json,L"users[0].workAddress.country",L"sample string 8");
    CkJsonObjectW_UpdateNewObject(json,L"users[0].homeAddress");
    CkJsonObjectW_UpdateString(json,L"users[0].loginStatus",L"sample string 22");
    CkJsonObjectW_UpdateString(json,L"users[0].passwordExpiration",L"sample string 23");
    CkJsonObjectW_UpdateString(json,L"users[0].lastLogin",L"sample string 24");
    CkJsonObjectW_UpdateString(json,L"users[0].sendActivationEmail",L"sample string 25");
    CkJsonObjectW_UpdateString(json,L"users[0].profileImageUri",L"sample string 26");
    CkJsonObjectW_UpdateString(json,L"users[0].userProfileLastModifiedDate",L"sample string 27");
    CkJsonObjectW_UpdateString(json,L"users[0].signatureImageUri",L"sample string 28");
    CkJsonObjectW_UpdateString(json,L"users[0].initialsImageUri",L"sample string 29");
    CkJsonObjectW_UpdateString(json,L"users[0].jobTitle",L"sample string 30");
    CkJsonObjectW_UpdateString(json,L"modifiedDateTime",L"sample string 3");
    CkJsonObjectW_UpdateString(json,L"modifiedByUsername",L"sample string 4");
    CkJsonObjectW_UpdateString(json,L"userCount",L"sample string 5");
    CkJsonObjectW_UpdateString(json,L"settings.allowAccountManagement",L"sample string 1");
    CkJsonObjectW_UpdateString(json,L"settings.useNewDocuSignExperienceInterface",L"sample string 2");
    CkJsonObjectW_UpdateString(json,L"settings.canCreateWorkspaces",L"sample string 3");
    CkJsonObjectW_UpdateString(json,L"settings.allowBulkSending",L"sample string 4");
    CkJsonObjectW_UpdateString(json,L"settings.allowEnvelopeSending",L"sample string 5");
    CkJsonObjectW_UpdateString(json,L"settings.allowESealRecipients",L"sample string 6");
    CkJsonObjectW_UpdateString(json,L"settings.allowSignerAttachments",L"sample string 7");
    CkJsonObjectW_UpdateString(json,L"settings.allowTaggingInSendAndCorrect",L"sample string 8");
    CkJsonObjectW_UpdateString(json,L"settings.allowWetSigningOverride",L"sample string 9");
    CkJsonObjectW_UpdateString(json,L"settings.allowedAddressBookAccess",L"sample string 10");
    CkJsonObjectW_UpdateString(json,L"settings.allowedTemplateAccess",L"sample string 11");
    CkJsonObjectW_UpdateString(json,L"settings.enableRecipientViewingNotifications",L"sample string 12");
    CkJsonObjectW_UpdateString(json,L"settings.enableSequentialSigningInterface",L"sample string 13");
    CkJsonObjectW_UpdateString(json,L"settings.receiveCompletedSelfSignedDocumentsAsEmailLinks",L"sample string 14");
    CkJsonObjectW_UpdateString(json,L"settings.useNewSendingInterface",L"sample string 15");
    CkJsonObjectW_UpdateString(json,L"settings.allowSupplementalDocuments",L"sample string 16");
    CkJsonObjectW_UpdateString(json,L"settings.supplementalDocumentsMustView",L"sample string 17");
    CkJsonObjectW_UpdateString(json,L"settings.supplementalDocumentsMustAccept",L"sample string 18");
    CkJsonObjectW_UpdateString(json,L"settings.supplementalDocumentsMustRead",L"sample string 19");
    CkJsonObjectW_UpdateString(json,L"settings.disableDocumentUpload",L"sample string 20");
    CkJsonObjectW_UpdateString(json,L"settings.disableOtherActions",L"sample string 21");
    CkJsonObjectW_UpdateString(json,L"settings.allowAutoTagging",L"sample string 22");
    CkJsonObjectW_UpdateString(json,L"settings.allowApiAccess",L"sample string 23");
    CkJsonObjectW_UpdateString(json,L"settings.allowApiAccessToAccount",L"sample string 24");
    CkJsonObjectW_UpdateString(json,L"settings.allowApiSendingOnBehalfOfOthers",L"sample string 25");
    CkJsonObjectW_UpdateString(json,L"settings.allowApiSequentialSigning",L"sample string 26");
    CkJsonObjectW_UpdateString(json,L"settings.enableApiRequestLogging",L"sample string 27");
    CkJsonObjectW_UpdateString(json,L"settings.allowDocuSignDesktopClient",L"sample string 28");
    CkJsonObjectW_UpdateString(json,L"settings.allowSendersToSetRecipientEmailLanguage",L"sample string 29");
    CkJsonObjectW_UpdateString(json,L"settings.allowVaulting",L"sample string 30");
    CkJsonObjectW_UpdateString(json,L"settings.allowedToBeEnvelopeTransferRecipient",L"sample string 31");
    CkJsonObjectW_UpdateString(json,L"settings.enableTransactionPointIntegration",L"sample string 32");
    CkJsonObjectW_UpdateString(json,L"settings.powerFormRole",L"sample string 33");
    CkJsonObjectW_UpdateString(json,L"settings.allowPowerFormsAdminToAccessAllPowerFormEnvelopes",L"sample string 34");
    CkJsonObjectW_UpdateString(json,L"settings.vaultingMode",L"sample string 35");
    CkJsonObjectW_UpdateNewObject(json,L"settings.allowAccountManagementMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.useNewDocuSignExperienceInterfaceMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.canCreateWorkspacesMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.allowBulkSendingMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.allowEnvelopeSendingMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.allowESealRecipientsMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.allowSignerAttachmentsMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.allowTaggingInSendAndCorrectMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.allowWetSigningOverrideMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.allowedAddressBookAccessMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.allowedTemplateAccessMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.enableRecipientViewingNotificationsMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.enableSequentialSigningInterfaceMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.receiveCompletedSelfSignedDocumentsAsEmailLinksMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.useNewSendingInterfaceMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.allowSupplementalDocumentsMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.supplementalDocumentsMustViewMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.supplementalDocumentsMustAcceptMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.supplementalDocumentsMustReadMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.disableDocumentUploadMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.disableOtherActionsMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.allowAutoTaggingMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.allowApiAccessMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.allowApiAccessToAccountMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.allowApiSendingOnBehalfOfOthersMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.allowApiSequentialSigningMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.enableApiRequestLoggingMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.allowDocuSignDesktopClientMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.allowSendersToSetRecipientEmailLanguageMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.allowVaultingMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.allowedToBeEnvelopeTransferRecipientMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.enableTransactionPointIntegrationMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.powerFormRoleMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.allowPowerFormsAdminToAccessAllPowerFormEnvelopesMetadata");
    CkJsonObjectW_UpdateNewObject(json,L"settings.vaultingModeMetadata");

    // Adds the "Authorization: Bearer {{accessToken}}" header.
    CkHttpW_putAuthToken(http,L"{{accessToken}}");
    CkHttpW_SetRequestHeader(http,L"Accept",L"application/json");

    sbRequestBody = CkStringBuilderW_Create();
    CkJsonObjectW_EmitSb(json,sbRequestBody);

    resp = CkHttpW_PTextSb(http,L"PUT",L"https://domain.com/v2.1/accounts/{{accountId}}/permission_profiles/{{permissionProfileId}}?include={{include}}",sbRequestBody,L"utf-8",L"application/json",FALSE,FALSE);
    if (CkHttpW_getLastMethodSuccess(http) == FALSE) {
        wprintf(L"%s\n",CkHttpW_lastErrorText(http));
        CkHttpW_Dispose(http);
        CkJsonObjectW_Dispose(json);
        CkStringBuilderW_Dispose(sbRequestBody);
        return;
    }

    wprintf(L"%d\n",CkHttpResponseW_getStatusCode(resp));
    wprintf(L"%s\n",CkHttpResponseW_bodyStr(resp));
    CkHttpResponseW_Dispose(resp);


    CkHttpW_Dispose(http);
    CkJsonObjectW_Dispose(json);
    CkStringBuilderW_Dispose(sbRequestBody);

    }

Curl Command

curl -X PUT
	-H "Accept: application/json"
	-H "Authorization: Bearer {{accessToken}}"
	-d '{
  "permissionProfileId": "sample string 1",
  "permissionProfileName": "sample string 2",
  "users": [
    {
      "userName": "sample string 1",
      "userId": "sample string 2",
      "userType": "sample string 3",
      "isAdmin": "sample string 4",
      "userStatus": "sample string 5",
      "uri": "sample string 6",
      "email": "sample string 7",
      "password": "sample string 8",
      "title": "sample string 9",
      "createdDateTime": "sample string 10",
      "firstName": "sample string 11",
      "middleName": "sample string 12",
      "lastName": "sample string 13",
      "suffixName": "sample string 14",
      "permissionProfileId": "sample string 15",
      "permissionProfileName": "sample string 16",
      "countryCode": "sample string 17",
      "subscribe": "sample string 18",
      "userSettings": [
        {}
      ],
      "accountManagementGranular": {
        "canManageUsers": "sample string 1",
        "canManageAdmins": "sample string 2",
        "canManageGroups": "sample string 3",
        "canManageSharing": "sample string 4",
        "canManageEnvelopeTransfer": "sample string 5",
        "canManageAccountSettings": "sample string 6",
        "canManageReporting": "sample string 7",
        "canManageAccountSecuritySettings": "sample string 8",
        "canManageSigningGroups": "sample string 9",
        "canManageDocumentRetention": "sample string 10",
        "canViewUsers": "sample string 11",
        "canManageUsersMetadata": {
          "rights": "sample string 1",
          "uiHint": "sample string 2",
          "uiType": "sample string 3",
          "uiOrder": "sample string 4",
          "is21CFRPart11": "sample string 5",
          "options": [
            "sample string 1"
          ]
        },
        "canManageAdminsMetadata": {},
        "canManageGroupsMetadata": {},
        "canManageSharingMetadata": {},
        "canManageEnvelopeTransferMetadata": {},
        "canManageAccountSettingsMetadata": {},
        "canManageReportingMetadata": {},
        "canManageAccountSecuritySettingsMetadata": {},
        "canManageSigningGroupsMetadata": {},
        "canManageDocumentRetentionMetadata": {},
        "canViewUsersMetadata": {}
      },
      "sendActivationOnInvalidLogin": "sample string 19",
      "activationAccessCode": "sample string 20",
      "enableConnectForUser": "sample string 21",
      "forgottenPasswordInfo": {
        "forgottenPasswordQuestion1": "sample string 1",
        "forgottenPasswordAnswer1": "sample string 2",
        "forgottenPasswordQuestion2": "sample string 3",
        "forgottenPasswordAnswer2": "sample string 4",
        "forgottenPasswordQuestion3": "sample string 5",
        "forgottenPasswordAnswer3": "sample string 6",
        "forgottenPasswordQuestion4": "sample string 7",
        "forgottenPasswordAnswer4": "sample string 8"
      },
      "groupList": [
        {
          "groupId": "sample string 1",
          "groupName": "sample string 2",
          "permissionProfileId": "sample string 3",
          "groupType": "sample string 4",
          "users": [
            {
              "userName": "sample string 1",
              "userId": "sample string 2",
              "email": "sample string 3",
              "userType": "sample string 4",
              "userStatus": "sample string 5",
              "uri": "sample string 6",
              "loginStatus": "sample string 7",
              "sendActivationEmail": "sample string 8",
              "activationAccessCode": "sample string 9"
            }
          ]
        }
      ],
      "workAddress": {
        "address1": "sample string 1",
        "address2": "sample string 2",
        "city": "sample string 3",
        "stateOrProvince": "sample string 4",
        "postalCode": "sample string 5",
        "phone": "sample string 6",
        "fax": "sample string 7",
        "country": "sample string 8"
      },
      "homeAddress": {},
      "loginStatus": "sample string 22",
      "passwordExpiration": "sample string 23",
      "lastLogin": "sample string 24",
      "sendActivationEmail": "sample string 25",
      "customSettings": [
        {}
      ],
      "profileImageUri": "sample string 26",
      "userProfileLastModifiedDate": "sample string 27",
      "signatureImageUri": "sample string 28",
      "initialsImageUri": "sample string 29",
      "jobTitle": "sample string 30"
    }
  ],
  "modifiedDateTime": "sample string 3",
  "modifiedByUsername": "sample string 4",
  "userCount": "sample string 5",
  "settings": {
    "allowAccountManagement": "sample string 1",
    "useNewDocuSignExperienceInterface": "sample string 2",
    "canCreateWorkspaces": "sample string 3",
    "allowBulkSending": "sample string 4",
    "allowEnvelopeSending": "sample string 5",
    "allowESealRecipients": "sample string 6",
    "allowSignerAttachments": "sample string 7",
    "allowTaggingInSendAndCorrect": "sample string 8",
    "allowWetSigningOverride": "sample string 9",
    "allowedAddressBookAccess": "sample string 10",
    "allowedTemplateAccess": "sample string 11",
    "enableRecipientViewingNotifications": "sample string 12",
    "enableSequentialSigningInterface": "sample string 13",
    "receiveCompletedSelfSignedDocumentsAsEmailLinks": "sample string 14",
    "useNewSendingInterface": "sample string 15",
    "allowSupplementalDocuments": "sample string 16",
    "supplementalDocumentsMustView": "sample string 17",
    "supplementalDocumentsMustAccept": "sample string 18",
    "supplementalDocumentsMustRead": "sample string 19",
    "disableDocumentUpload": "sample string 20",
    "disableOtherActions": "sample string 21",
    "allowAutoTagging": "sample string 22",
    "allowApiAccess": "sample string 23",
    "allowApiAccessToAccount": "sample string 24",
    "allowApiSendingOnBehalfOfOthers": "sample string 25",
    "allowApiSequentialSigning": "sample string 26",
    "enableApiRequestLogging": "sample string 27",
    "allowDocuSignDesktopClient": "sample string 28",
    "allowSendersToSetRecipientEmailLanguage": "sample string 29",
    "allowVaulting": "sample string 30",
    "allowedToBeEnvelopeTransferRecipient": "sample string 31",
    "enableTransactionPointIntegration": "sample string 32",
    "powerFormRole": "sample string 33",
    "allowPowerFormsAdminToAccessAllPowerFormEnvelopes": "sample string 34",
    "vaultingMode": "sample string 35",
    "allowAccountManagementMetadata": {},
    "useNewDocuSignExperienceInterfaceMetadata": {},
    "canCreateWorkspacesMetadata": {},
    "allowBulkSendingMetadata": {},
    "allowEnvelopeSendingMetadata": {},
    "allowESealRecipientsMetadata": {},
    "allowSignerAttachmentsMetadata": {},
    "allowTaggingInSendAndCorrectMetadata": {},
    "allowWetSigningOverrideMetadata": {},
    "allowedAddressBookAccessMetadata": {},
    "allowedTemplateAccessMetadata": {},
    "enableRecipientViewingNotificationsMetadata": {},
    "enableSequentialSigningInterfaceMetadata": {},
    "receiveCompletedSelfSignedDocumentsAsEmailLinksMetadata": {},
    "useNewSendingInterfaceMetadata": {},
    "allowSupplementalDocumentsMetadata": {},
    "supplementalDocumentsMustViewMetadata": {},
    "supplementalDocumentsMustAcceptMetadata": {},
    "supplementalDocumentsMustReadMetadata": {},
    "disableDocumentUploadMetadata": {},
    "disableOtherActionsMetadata": {},
    "allowAutoTaggingMetadata": {},
    "allowApiAccessMetadata": {},
    "allowApiAccessToAccountMetadata": {},
    "allowApiSendingOnBehalfOfOthersMetadata": {},
    "allowApiSequentialSigningMetadata": {},
    "enableApiRequestLoggingMetadata": {},
    "allowDocuSignDesktopClientMetadata": {},
    "allowSendersToSetRecipientEmailLanguageMetadata": {},
    "allowVaultingMetadata": {},
    "allowedToBeEnvelopeTransferRecipientMetadata": {},
    "enableTransactionPointIntegrationMetadata": {},
    "powerFormRoleMetadata": {},
    "allowPowerFormsAdminToAccessAllPowerFormEnvelopesMetadata": {},
    "vaultingModeMetadata": {}
  }
}'
https://domain.com/v2.1/accounts/{{accountId}}/permission_profiles/{{permissionProfileId}}?include={{include}}

Postman Collection Item JSON

{
  "name": "Updates a permission profile within the specified account.",
  "request": {
    "method": "PUT",
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      },
      {
        "key": "Authorization",
        "value": "Bearer {{accessToken}}"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n  \"permissionProfileId\": \"sample string 1\",\n  \"permissionProfileName\": \"sample string 2\",\n  \"users\": [\n    {\n      \"userName\": \"sample string 1\",\n      \"userId\": \"sample string 2\",\n      \"userType\": \"sample string 3\",\n      \"isAdmin\": \"sample string 4\",\n      \"userStatus\": \"sample string 5\",\n      \"uri\": \"sample string 6\",\n      \"email\": \"sample string 7\",\n      \"password\": \"sample string 8\",\n      \"title\": \"sample string 9\",\n      \"createdDateTime\": \"sample string 10\",\n      \"firstName\": \"sample string 11\",\n      \"middleName\": \"sample string 12\",\n      \"lastName\": \"sample string 13\",\n      \"suffixName\": \"sample string 14\",\n      \"permissionProfileId\": \"sample string 15\",\n      \"permissionProfileName\": \"sample string 16\",\n      \"countryCode\": \"sample string 17\",\n      \"subscribe\": \"sample string 18\",\n      \"userSettings\": [\n        {}\n      ],\n      \"accountManagementGranular\": {\n        \"canManageUsers\": \"sample string 1\",\n        \"canManageAdmins\": \"sample string 2\",\n        \"canManageGroups\": \"sample string 3\",\n        \"canManageSharing\": \"sample string 4\",\n        \"canManageEnvelopeTransfer\": \"sample string 5\",\n        \"canManageAccountSettings\": \"sample string 6\",\n        \"canManageReporting\": \"sample string 7\",\n        \"canManageAccountSecuritySettings\": \"sample string 8\",\n        \"canManageSigningGroups\": \"sample string 9\",\n        \"canManageDocumentRetention\": \"sample string 10\",\n        \"canViewUsers\": \"sample string 11\",\n        \"canManageUsersMetadata\": {\n          \"rights\": \"sample string 1\",\n          \"uiHint\": \"sample string 2\",\n          \"uiType\": \"sample string 3\",\n          \"uiOrder\": \"sample string 4\",\n          \"is21CFRPart11\": \"sample string 5\",\n          \"options\": [\n            \"sample string 1\"\n          ]\n        },\n        \"canManageAdminsMetadata\": {},\n        \"canManageGroupsMetadata\": {},\n        \"canManageSharingMetadata\": {},\n        \"canManageEnvelopeTransferMetadata\": {},\n        \"canManageAccountSettingsMetadata\": {},\n        \"canManageReportingMetadata\": {},\n        \"canManageAccountSecuritySettingsMetadata\": {},\n        \"canManageSigningGroupsMetadata\": {},\n        \"canManageDocumentRetentionMetadata\": {},\n        \"canViewUsersMetadata\": {}\n      },\n      \"sendActivationOnInvalidLogin\": \"sample string 19\",\n      \"activationAccessCode\": \"sample string 20\",\n      \"enableConnectForUser\": \"sample string 21\",\n      \"forgottenPasswordInfo\": {\n        \"forgottenPasswordQuestion1\": \"sample string 1\",\n        \"forgottenPasswordAnswer1\": \"sample string 2\",\n        \"forgottenPasswordQuestion2\": \"sample string 3\",\n        \"forgottenPasswordAnswer2\": \"sample string 4\",\n        \"forgottenPasswordQuestion3\": \"sample string 5\",\n        \"forgottenPasswordAnswer3\": \"sample string 6\",\n        \"forgottenPasswordQuestion4\": \"sample string 7\",\n        \"forgottenPasswordAnswer4\": \"sample string 8\"\n      },\n      \"groupList\": [\n        {\n          \"groupId\": \"sample string 1\",\n          \"groupName\": \"sample string 2\",\n          \"permissionProfileId\": \"sample string 3\",\n          \"groupType\": \"sample string 4\",\n          \"users\": [\n            {\n              \"userName\": \"sample string 1\",\n              \"userId\": \"sample string 2\",\n              \"email\": \"sample string 3\",\n              \"userType\": \"sample string 4\",\n              \"userStatus\": \"sample string 5\",\n              \"uri\": \"sample string 6\",\n              \"loginStatus\": \"sample string 7\",\n              \"sendActivationEmail\": \"sample string 8\",\n              \"activationAccessCode\": \"sample string 9\"\n            }\n          ]\n        }\n      ],\n      \"workAddress\": {\n        \"address1\": \"sample string 1\",\n        \"address2\": \"sample string 2\",\n        \"city\": \"sample string 3\",\n        \"stateOrProvince\": \"sample string 4\",\n        \"postalCode\": \"sample string 5\",\n        \"phone\": \"sample string 6\",\n        \"fax\": \"sample string 7\",\n        \"country\": \"sample string 8\"\n      },\n      \"homeAddress\": {},\n      \"loginStatus\": \"sample string 22\",\n      \"passwordExpiration\": \"sample string 23\",\n      \"lastLogin\": \"sample string 24\",\n      \"sendActivationEmail\": \"sample string 25\",\n      \"customSettings\": [\n        {}\n      ],\n      \"profileImageUri\": \"sample string 26\",\n      \"userProfileLastModifiedDate\": \"sample string 27\",\n      \"signatureImageUri\": \"sample string 28\",\n      \"initialsImageUri\": \"sample string 29\",\n      \"jobTitle\": \"sample string 30\"\n    }\n  ],\n  \"modifiedDateTime\": \"sample string 3\",\n  \"modifiedByUsername\": \"sample string 4\",\n  \"userCount\": \"sample string 5\",\n  \"settings\": {\n    \"allowAccountManagement\": \"sample string 1\",\n    \"useNewDocuSignExperienceInterface\": \"sample string 2\",\n    \"canCreateWorkspaces\": \"sample string 3\",\n    \"allowBulkSending\": \"sample string 4\",\n    \"allowEnvelopeSending\": \"sample string 5\",\n    \"allowESealRecipients\": \"sample string 6\",\n    \"allowSignerAttachments\": \"sample string 7\",\n    \"allowTaggingInSendAndCorrect\": \"sample string 8\",\n    \"allowWetSigningOverride\": \"sample string 9\",\n    \"allowedAddressBookAccess\": \"sample string 10\",\n    \"allowedTemplateAccess\": \"sample string 11\",\n    \"enableRecipientViewingNotifications\": \"sample string 12\",\n    \"enableSequentialSigningInterface\": \"sample string 13\",\n    \"receiveCompletedSelfSignedDocumentsAsEmailLinks\": \"sample string 14\",\n    \"useNewSendingInterface\": \"sample string 15\",\n    \"allowSupplementalDocuments\": \"sample string 16\",\n    \"supplementalDocumentsMustView\": \"sample string 17\",\n    \"supplementalDocumentsMustAccept\": \"sample string 18\",\n    \"supplementalDocumentsMustRead\": \"sample string 19\",\n    \"disableDocumentUpload\": \"sample string 20\",\n    \"disableOtherActions\": \"sample string 21\",\n    \"allowAutoTagging\": \"sample string 22\",\n    \"allowApiAccess\": \"sample string 23\",\n    \"allowApiAccessToAccount\": \"sample string 24\",\n    \"allowApiSendingOnBehalfOfOthers\": \"sample string 25\",\n    \"allowApiSequentialSigning\": \"sample string 26\",\n    \"enableApiRequestLogging\": \"sample string 27\",\n    \"allowDocuSignDesktopClient\": \"sample string 28\",\n    \"allowSendersToSetRecipientEmailLanguage\": \"sample string 29\",\n    \"allowVaulting\": \"sample string 30\",\n    \"allowedToBeEnvelopeTransferRecipient\": \"sample string 31\",\n    \"enableTransactionPointIntegration\": \"sample string 32\",\n    \"powerFormRole\": \"sample string 33\",\n    \"allowPowerFormsAdminToAccessAllPowerFormEnvelopes\": \"sample string 34\",\n    \"vaultingMode\": \"sample string 35\",\n    \"allowAccountManagementMetadata\": {},\n    \"useNewDocuSignExperienceInterfaceMetadata\": {},\n    \"canCreateWorkspacesMetadata\": {},\n    \"allowBulkSendingMetadata\": {},\n    \"allowEnvelopeSendingMetadata\": {},\n    \"allowESealRecipientsMetadata\": {},\n    \"allowSignerAttachmentsMetadata\": {},\n    \"allowTaggingInSendAndCorrectMetadata\": {},\n    \"allowWetSigningOverrideMetadata\": {},\n    \"allowedAddressBookAccessMetadata\": {},\n    \"allowedTemplateAccessMetadata\": {},\n    \"enableRecipientViewingNotificationsMetadata\": {},\n    \"enableSequentialSigningInterfaceMetadata\": {},\n    \"receiveCompletedSelfSignedDocumentsAsEmailLinksMetadata\": {},\n    \"useNewSendingInterfaceMetadata\": {},\n    \"allowSupplementalDocumentsMetadata\": {},\n    \"supplementalDocumentsMustViewMetadata\": {},\n    \"supplementalDocumentsMustAcceptMetadata\": {},\n    \"supplementalDocumentsMustReadMetadata\": {},\n    \"disableDocumentUploadMetadata\": {},\n    \"disableOtherActionsMetadata\": {},\n    \"allowAutoTaggingMetadata\": {},\n    \"allowApiAccessMetadata\": {},\n    \"allowApiAccessToAccountMetadata\": {},\n    \"allowApiSendingOnBehalfOfOthersMetadata\": {},\n    \"allowApiSequentialSigningMetadata\": {},\n    \"enableApiRequestLoggingMetadata\": {},\n    \"allowDocuSignDesktopClientMetadata\": {},\n    \"allowSendersToSetRecipientEmailLanguageMetadata\": {},\n    \"allowVaultingMetadata\": {},\n    \"allowedToBeEnvelopeTransferRecipientMetadata\": {},\n    \"enableTransactionPointIntegrationMetadata\": {},\n    \"powerFormRoleMetadata\": {},\n    \"allowPowerFormsAdminToAccessAllPowerFormEnvelopesMetadata\": {},\n    \"vaultingModeMetadata\": {}\n  }\n}"
    },
    "url": {
      "raw": "{{baseUrl}}/v2.1/accounts/{{accountId}}/permission_profiles/{{permissionProfileId}}?include={{include}}",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "v2.1",
        "accounts",
        "{{accountId}}",
        "permission_profiles",
        "{{permissionProfileId}}"
      ],
      "query": [
        {
          "key": "include",
          "value": "{{include}}"
        }
      ],
      "variable": [
        {
          "key": "accountId",
          "value": "{{accountId}}"
        },
        {
          "key": "permissionProfileId",
          "value": "{{permissionProfileId}}"
        }
      ]
    }
  },
  "response": [
  ]
}