code: public AccountSharedAccess updateSharedAccess(String accountId, AccountSharedAccess accountSharedAccess, AccountsApi.UpdateSharedAccessOptions options) throws ApiException {
      Object localVarPostBody = accountSharedAccess;
      
        // verify the required parameter 'accountId' is set
        if (accountId == null) {
        throw new ApiException(400, "Missing the required parameter 'accountId' when calling updateSharedAccess");
        }
      
      // create path and map variables
      String localVarPath = "/v2/accounts/{accountId}/shared_access".replaceAll("\\{format\\}","json")
        .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
  
      // query params
      java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
      java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
      java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
  
      if (options != null) {
         localVarQueryParams.addAll(apiClient.parameterToPairs("", "item_type", options.itemType));
         localVarQueryParams.addAll(apiClient.parameterToPairs("", "user_ids", options.userIds));
      }
      
      
        final String[] localVarAccepts = {
      "application/json"
        };
        final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
  
        final String[] localVarContentTypes = {
      
        };
        final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
  
        String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{  };
  
          GenericType<AccountSharedAccess> localVarReturnType = new GenericType<AccountSharedAccess>() {};
          return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
            }
docs: Reserved: Sets the shared access information for users.
  Reserved: Sets the shared access information for one or more users.
  @param accountId The external account number (int) or account ID Guid. (required)
  @param accountSharedAccess  (optional)
  @param options for modifying the method behavior.
  @return AccountSharedAccess
  @throws ApiException if fails to make API call