diff --git a/CHANGELOG.md b/CHANGELOG.md
index 21cc505..a2be550 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,11 @@
# DocuSign Admin C# Client Changelog
See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
+## [v2.1.0] - Admin API v2.1-1.4.3 - 2026-03-03
+### Changed
+- Added support for version v2.1-1.4.3 of the DocuSign Admin API.
+- Updated the SDK release version.
+
## [v2.0.2] - Admin API v2.1-1.4.1 - 2024-11-15
### Changed
- Resolved an issue that prevented the use of `RequestJWTApplicationToken` with a production account URL.
diff --git a/README.md b/README.md
index 99a3848..be432d7 100644
--- a/README.md
+++ b/README.md
@@ -33,7 +33,7 @@ This client SDK is provided as open source, which enables you to customize its f
### Version Information
- **API version**: v2.1
-- **Latest SDK version (Including prerelease)**: 2.0.2
+- **Latest SDK version (Including prerelease)**: 2.1.0
### Requirements
diff --git a/sdk/DocuSign.Admin.sln b/sdk/DocuSign.Admin.sln
index e82f233..a367bdd 100644
--- a/sdk/DocuSign.Admin.sln
+++ b/sdk/DocuSign.Admin.sln
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
VisualStudioVersion = 12.0.0.0
MinimumVisualStudioVersion = 10.0.0.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocuSign.Admin", "src\DocuSign.Admin\DocuSign.Admin.csproj", "{1AEC973B-1BDF-4172-8FDF-0FC4FD2E9FB9}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocuSign.Admin", "src\DocuSign.Admin\DocuSign.Admin.csproj", "{7AA0EF08-F8E7-4FC0-8A1A-A1F9B15D8422}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -10,10 +10,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {1AEC973B-1BDF-4172-8FDF-0FC4FD2E9FB9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {1AEC973B-1BDF-4172-8FDF-0FC4FD2E9FB9}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {1AEC973B-1BDF-4172-8FDF-0FC4FD2E9FB9}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {1AEC973B-1BDF-4172-8FDF-0FC4FD2E9FB9}.Release|Any CPU.Build.0 = Release|Any CPU
+ {7AA0EF08-F8E7-4FC0-8A1A-A1F9B15D8422}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7AA0EF08-F8E7-4FC0-8A1A-A1F9B15D8422}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {7AA0EF08-F8E7-4FC0-8A1A-A1F9B15D8422}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7AA0EF08-F8E7-4FC0-8A1A-A1F9B15D8422}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/sdk/src/DocuSign.Admin/Api/OrgConnectApi.cs b/sdk/src/DocuSign.Admin/Api/OrgConnectApi.cs
new file mode 100644
index 0000000..67b2c6f
--- /dev/null
+++ b/sdk/src/DocuSign.Admin/Api/OrgConnectApi.cs
@@ -0,0 +1,2671 @@
+/*
+ * Docusign Admin API
+ *
+ * An API for an organization administrator to manage organizations, accounts and users
+ *
+ * OpenAPI spec version: v2.1
+ * Contact: devcenter@docusign.com
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Net.Http;
+using DocuSign.Admin.Client;
+using DocuSign.Admin.Model;
+
+namespace DocuSign.Admin.Api
+{
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public interface IOrgConnectApi : IApiAccessor
+ {
+ #region Synchronous Operations
+ ///
+ /// Adds a Connect configuration for an organization
+ ///
+ ///
+ /// Required scopes: connect_org_config_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Add an organization Connect request
+ ///
+ OrganizationConnectConfigurationDetailsResponse CreateOrganizationConnectConfig(Guid? organizationId, OrganizationConnectConfigurationRequest connectRequest);
+
+ ///
+ /// Adds a Connect configuration for an organization
+ ///
+ ///
+ /// Required scopes: connect_org_config_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Add an organization Connect request
+ /// ApiResponse of
+ ApiResponse CreateOrganizationConnectConfigWithHttpInfo(Guid? organizationId, OrganizationConnectConfigurationRequest connectRequest);
+ ///
+ /// Deletes information about a Connect HMAC secret
+ ///
+ ///
+ /// Required scopes: connect_org_hmac_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The key ID Guid
+ ///
+ OrganizationConnectHmacSecretsResponse DeleteConnectHmacSecret(Guid? organizationId, Guid? keyId);
+
+ ///
+ /// Deletes information about a Connect HMAC secret
+ ///
+ ///
+ /// Required scopes: connect_org_hmac_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The key ID Guid
+ /// ApiResponse of
+ ApiResponse DeleteConnectHmacSecretWithHttpInfo(Guid? organizationId, Guid? keyId);
+ ///
+ /// Deletes information about an organization-level Connect configuration
+ ///
+ ///
+ /// Required scopes: connect_org_config_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The configuration ID Guid
+ ///
+ Object DeleteOrganizationConnectConfig(Guid? organizationId, Guid? connectId);
+
+ ///
+ /// Deletes information about an organization-level Connect configuration
+ ///
+ ///
+ /// Required scopes: connect_org_config_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The configuration ID Guid
+ /// ApiResponse of
+ ApiResponse DeleteOrganizationConnectConfigWithHttpInfo(Guid? organizationId, Guid? connectId);
+ ///
+ /// Deletes an organization-level Connect OAuth configuration
+ ///
+ ///
+ /// Required scopes: connect_org_oauth_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ ///
+ Object DeleteOrganizationConnectOAuthConfiguration(Guid? organizationId);
+
+ ///
+ /// Deletes an organization-level Connect OAuth configuration
+ ///
+ ///
+ /// Required scopes: connect_org_oauth_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// ApiResponse of
+ ApiResponse DeleteOrganizationConnectOAuthConfigurationWithHttpInfo(Guid? organizationId);
+ ///
+ /// Returns information about Connect HMAC secrets
+ ///
+ ///
+ /// Required scopes: connect_org_hmac_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ ///
+ OrganizationConnectHmacSecretsResponse GetConnectHmacSecrets(Guid? organizationId);
+
+ ///
+ /// Returns information about Connect HMAC secrets
+ ///
+ ///
+ /// Required scopes: connect_org_hmac_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// ApiResponse of
+ ApiResponse GetConnectHmacSecretsWithHttpInfo(Guid? organizationId);
+ ///
+ /// Returns an organization-level Connect configuration
+ ///
+ ///
+ /// Required scopes: connect_org_config_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The configuration ID Guid
+ ///
+ OrganizationConnectConfigurationDetailsResponse GetOrganizationConnectConfig(Guid? organizationId, Guid? connectId);
+
+ ///
+ /// Returns an organization-level Connect configuration
+ ///
+ ///
+ /// Required scopes: connect_org_config_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The configuration ID Guid
+ /// ApiResponse of
+ ApiResponse GetOrganizationConnectConfigWithHttpInfo(Guid? organizationId, Guid? connectId);
+ ///
+ /// Returns a list of Connect configurations under an organization
+ ///
+ ///
+ /// Required scopes: connect_org_config_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Options for modifying the behavior of the function.
+ ///
+ OrganizationConnectConfigsResponse GetOrganizationConnectConfigs(Guid? organizationId, OrgConnectApi.GetOrganizationConnectConfigsOptions options = null);
+
+ ///
+ /// Returns a list of Connect configurations under an organization
+ ///
+ ///
+ /// Required scopes: connect_org_config_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Options for modifying the behavior of the function.
+ /// ApiResponse of
+ ApiResponse GetOrganizationConnectConfigsWithHttpInfo(Guid? organizationId, OrgConnectApi.GetOrganizationConnectConfigsOptions options = null);
+ ///
+ /// Returns information about an organization-level Connect OAuth configuration
+ ///
+ ///
+ /// Required scopes: connect_org_oauth_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ ///
+ Object GetOrganizationConnectOAuthConfiguration(Guid? organizationId);
+
+ ///
+ /// Returns information about an organization-level Connect OAuth configuration
+ ///
+ ///
+ /// Required scopes: connect_org_oauth_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// ApiResponse of
+ ApiResponse GetOrganizationConnectOAuthConfigurationWithHttpInfo(Guid? organizationId);
+ ///
+ /// Saves information about a Connect HMAC secret
+ ///
+ ///
+ /// Required scopes: connect_org_hmac_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ ///
+ OrganizationConnectHmacSecretsResponse PostConnectHmacSecret(Guid? organizationId);
+
+ ///
+ /// Saves information about a Connect HMAC secret
+ ///
+ ///
+ /// Required scopes: connect_org_hmac_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// ApiResponse of
+ ApiResponse PostConnectHmacSecretWithHttpInfo(Guid? organizationId);
+ ///
+ /// Saves information about an organization-level Connect OAuth configuration
+ ///
+ ///
+ /// Required scopes: connect_org_oauth_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Add an organization-level Connect OAuth configuration
+ ///
+ OrganizationConnectOAuthConfiguration PostOrganizationConnectOAuthConfiguration(Guid? organizationId, OrganizationConnectOAuthConfiguration configuration);
+
+ ///
+ /// Saves information about an organization-level Connect OAuth configuration
+ ///
+ ///
+ /// Required scopes: connect_org_oauth_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Add an organization-level Connect OAuth configuration
+ /// ApiResponse of
+ ApiResponse PostOrganizationConnectOAuthConfigurationWithHttpInfo(Guid? organizationId, OrganizationConnectOAuthConfiguration configuration);
+ ///
+ /// Updates information about an organization-level Connect OAuth configuration
+ ///
+ ///
+ /// Required scopes: connect_org_oauth_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Update an organization-level Connect OAuth configuration
+ ///
+ OrganizationConnectOAuthConfiguration PutOrganizationConnectOAuthConfiguration(Guid? organizationId, OrganizationConnectOAuthConfiguration configuration);
+
+ ///
+ /// Updates information about an organization-level Connect OAuth configuration
+ ///
+ ///
+ /// Required scopes: connect_org_oauth_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Update an organization-level Connect OAuth configuration
+ /// ApiResponse of
+ ApiResponse PutOrganizationConnectOAuthConfigurationWithHttpInfo(Guid? organizationId, OrganizationConnectOAuthConfiguration configuration);
+ ///
+ /// Updates an organization-level Connect configuration
+ ///
+ ///
+ /// Required scopes: connect_org_config_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The configuration ID Guid
+ /// Add an organization Connect request
+ ///
+ OrganizationConnectConfigurationDetailsResponse UpdateOrganizationConnectConfig(Guid? organizationId, Guid? connectId, OrganizationConnectConfigurationRequest connectRequest);
+
+ ///
+ /// Updates an organization-level Connect configuration
+ ///
+ ///
+ /// Required scopes: connect_org_config_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The configuration ID Guid
+ /// Add an organization Connect request
+ /// ApiResponse of
+ ApiResponse UpdateOrganizationConnectConfigWithHttpInfo(Guid? organizationId, Guid? connectId, OrganizationConnectConfigurationRequest connectRequest);
+ #endregion Synchronous Operations
+ #region Asynchronous Operations
+ ///
+ /// Adds a Connect configuration for an organization
+ ///
+ ///
+ /// Required scopes: connect_org_config_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Add an organization Connect request
+ /// Task of OrganizationConnectConfigurationDetailsResponse
+ System.Threading.Tasks.Task CreateOrganizationConnectConfigAsync(Guid? organizationId, OrganizationConnectConfigurationRequest connectRequest);
+
+ ///
+ /// Adds a Connect configuration for an organization
+ ///
+ ///
+ /// Required scopes: connect_org_config_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Add an organization Connect request
+ /// Task of ApiResponse (OrganizationConnectConfigurationDetailsResponse)
+ System.Threading.Tasks.Task> CreateOrganizationConnectConfigAsyncWithHttpInfo(Guid? organizationId, OrganizationConnectConfigurationRequest connectRequest);
+ ///
+ /// Deletes information about a Connect HMAC secret
+ ///
+ ///
+ /// Required scopes: connect_org_hmac_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The key ID Guid
+ /// Task of OrganizationConnectHmacSecretsResponse
+ System.Threading.Tasks.Task DeleteConnectHmacSecretAsync(Guid? organizationId, Guid? keyId);
+
+ ///
+ /// Deletes information about a Connect HMAC secret
+ ///
+ ///
+ /// Required scopes: connect_org_hmac_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The key ID Guid
+ /// Task of ApiResponse (OrganizationConnectHmacSecretsResponse)
+ System.Threading.Tasks.Task> DeleteConnectHmacSecretAsyncWithHttpInfo(Guid? organizationId, Guid? keyId);
+ ///
+ /// Deletes information about an organization-level Connect configuration
+ ///
+ ///
+ /// Required scopes: connect_org_config_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The configuration ID Guid
+ /// Task of Object
+ System.Threading.Tasks.Task DeleteOrganizationConnectConfigAsync(Guid? organizationId, Guid? connectId);
+
+ ///
+ /// Deletes information about an organization-level Connect configuration
+ ///
+ ///
+ /// Required scopes: connect_org_config_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The configuration ID Guid
+ /// Task of ApiResponse (Object)
+ System.Threading.Tasks.Task> DeleteOrganizationConnectConfigAsyncWithHttpInfo(Guid? organizationId, Guid? connectId);
+ ///
+ /// Deletes an organization-level Connect OAuth configuration
+ ///
+ ///
+ /// Required scopes: connect_org_oauth_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Task of Object
+ System.Threading.Tasks.Task DeleteOrganizationConnectOAuthConfigurationAsync(Guid? organizationId);
+
+ ///
+ /// Deletes an organization-level Connect OAuth configuration
+ ///
+ ///
+ /// Required scopes: connect_org_oauth_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Task of ApiResponse (Object)
+ System.Threading.Tasks.Task> DeleteOrganizationConnectOAuthConfigurationAsyncWithHttpInfo(Guid? organizationId);
+ ///
+ /// Returns information about Connect HMAC secrets
+ ///
+ ///
+ /// Required scopes: connect_org_hmac_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Task of OrganizationConnectHmacSecretsResponse
+ System.Threading.Tasks.Task GetConnectHmacSecretsAsync(Guid? organizationId);
+
+ ///
+ /// Returns information about Connect HMAC secrets
+ ///
+ ///
+ /// Required scopes: connect_org_hmac_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Task of ApiResponse (OrganizationConnectHmacSecretsResponse)
+ System.Threading.Tasks.Task> GetConnectHmacSecretsAsyncWithHttpInfo(Guid? organizationId);
+ ///
+ /// Returns an organization-level Connect configuration
+ ///
+ ///
+ /// Required scopes: connect_org_config_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The configuration ID Guid
+ /// Task of OrganizationConnectConfigurationDetailsResponse
+ System.Threading.Tasks.Task GetOrganizationConnectConfigAsync(Guid? organizationId, Guid? connectId);
+
+ ///
+ /// Returns an organization-level Connect configuration
+ ///
+ ///
+ /// Required scopes: connect_org_config_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The configuration ID Guid
+ /// Task of ApiResponse (OrganizationConnectConfigurationDetailsResponse)
+ System.Threading.Tasks.Task> GetOrganizationConnectConfigAsyncWithHttpInfo(Guid? organizationId, Guid? connectId);
+ ///
+ /// Returns a list of Connect configurations under an organization
+ ///
+ ///
+ /// Required scopes: connect_org_config_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Options for modifying the behavior of the function.
+ /// Task of OrganizationConnectConfigsResponse
+ System.Threading.Tasks.Task GetOrganizationConnectConfigsAsync(Guid? organizationId, OrgConnectApi.GetOrganizationConnectConfigsOptions options = null);
+
+ ///
+ /// Returns a list of Connect configurations under an organization
+ ///
+ ///
+ /// Required scopes: connect_org_config_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Options for modifying the behavior of the function.
+ /// Task of ApiResponse (OrganizationConnectConfigsResponse)
+ System.Threading.Tasks.Task> GetOrganizationConnectConfigsAsyncWithHttpInfo(Guid? organizationId, OrgConnectApi.GetOrganizationConnectConfigsOptions options = null);
+ ///
+ /// Returns information about an organization-level Connect OAuth configuration
+ ///
+ ///
+ /// Required scopes: connect_org_oauth_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Task of Object
+ System.Threading.Tasks.Task GetOrganizationConnectOAuthConfigurationAsync(Guid? organizationId);
+
+ ///
+ /// Returns information about an organization-level Connect OAuth configuration
+ ///
+ ///
+ /// Required scopes: connect_org_oauth_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Task of ApiResponse (Object)
+ System.Threading.Tasks.Task> GetOrganizationConnectOAuthConfigurationAsyncWithHttpInfo(Guid? organizationId);
+ ///
+ /// Saves information about a Connect HMAC secret
+ ///
+ ///
+ /// Required scopes: connect_org_hmac_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Task of OrganizationConnectHmacSecretsResponse
+ System.Threading.Tasks.Task PostConnectHmacSecretAsync(Guid? organizationId);
+
+ ///
+ /// Saves information about a Connect HMAC secret
+ ///
+ ///
+ /// Required scopes: connect_org_hmac_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Task of ApiResponse (OrganizationConnectHmacSecretsResponse)
+ System.Threading.Tasks.Task> PostConnectHmacSecretAsyncWithHttpInfo(Guid? organizationId);
+ ///
+ /// Saves information about an organization-level Connect OAuth configuration
+ ///
+ ///
+ /// Required scopes: connect_org_oauth_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Add an organization-level Connect OAuth configuration
+ /// Task of OrganizationConnectOAuthConfiguration
+ System.Threading.Tasks.Task PostOrganizationConnectOAuthConfigurationAsync(Guid? organizationId, OrganizationConnectOAuthConfiguration configuration);
+
+ ///
+ /// Saves information about an organization-level Connect OAuth configuration
+ ///
+ ///
+ /// Required scopes: connect_org_oauth_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Add an organization-level Connect OAuth configuration
+ /// Task of ApiResponse (OrganizationConnectOAuthConfiguration)
+ System.Threading.Tasks.Task> PostOrganizationConnectOAuthConfigurationAsyncWithHttpInfo(Guid? organizationId, OrganizationConnectOAuthConfiguration configuration);
+ ///
+ /// Updates information about an organization-level Connect OAuth configuration
+ ///
+ ///
+ /// Required scopes: connect_org_oauth_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Update an organization-level Connect OAuth configuration
+ /// Task of OrganizationConnectOAuthConfiguration
+ System.Threading.Tasks.Task PutOrganizationConnectOAuthConfigurationAsync(Guid? organizationId, OrganizationConnectOAuthConfiguration configuration);
+
+ ///
+ /// Updates information about an organization-level Connect OAuth configuration
+ ///
+ ///
+ /// Required scopes: connect_org_oauth_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Update an organization-level Connect OAuth configuration
+ /// Task of ApiResponse (OrganizationConnectOAuthConfiguration)
+ System.Threading.Tasks.Task> PutOrganizationConnectOAuthConfigurationAsyncWithHttpInfo(Guid? organizationId, OrganizationConnectOAuthConfiguration configuration);
+ ///
+ /// Updates an organization-level Connect configuration
+ ///
+ ///
+ /// Required scopes: connect_org_config_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The configuration ID Guid
+ /// Add an organization Connect request
+ /// Task of OrganizationConnectConfigurationDetailsResponse
+ System.Threading.Tasks.Task UpdateOrganizationConnectConfigAsync(Guid? organizationId, Guid? connectId, OrganizationConnectConfigurationRequest connectRequest);
+
+ ///
+ /// Updates an organization-level Connect configuration
+ ///
+ ///
+ /// Required scopes: connect_org_config_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The configuration ID Guid
+ /// Add an organization Connect request
+ /// Task of ApiResponse (OrganizationConnectConfigurationDetailsResponse)
+ System.Threading.Tasks.Task> UpdateOrganizationConnectConfigAsyncWithHttpInfo(Guid? organizationId, Guid? connectId, OrganizationConnectConfigurationRequest connectRequest);
+ #endregion Asynchronous Operations
+ }
+
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public partial class OrgConnectApi : IOrgConnectApi
+ {
+ private DocuSign.Admin.Client.ExceptionFactory _exceptionFactory = (name, response) => null;
+
+ ///
+ /// Initializes a new instance of the class
+ /// using AplClient object
+ ///
+ /// An instance of AplClient
+ ///
+ public OrgConnectApi(DocuSignClient aplClient)
+ {
+ this.ApiClient = aplClient;
+
+ ExceptionFactory = Configuration.DefaultExceptionFactory;
+ }
+
+ ///
+ /// Gets the base path of the API client.
+ ///
+ /// The base path
+ public String GetBasePath()
+ {
+ return this.ApiClient.GetBasePath();
+ }
+
+ ///
+ /// Gets or sets the ApiClient object
+ ///
+ /// An instance of the ApiClient
+ public DocuSignClient ApiClient { get; set; }
+
+ ///
+ /// Provides a factory method hook for the creation of exceptions.
+ ///
+ public DocuSign.Admin.Client.ExceptionFactory ExceptionFactory
+ {
+ get
+ {
+ if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1)
+ {
+ throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported.");
+ }
+ return _exceptionFactory;
+ }
+ set { _exceptionFactory = value; }
+ }
+
+
+ ///
+ /// Adds a Connect configuration for an organization Required scopes: connect_org_config_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Add an organization Connect request
+ /// OrganizationConnectConfigurationDetailsResponse
+ public OrganizationConnectConfigurationDetailsResponse CreateOrganizationConnectConfig(Guid? organizationId, OrganizationConnectConfigurationRequest connectRequest)
+ {
+ ApiResponse localVarResponse = CreateOrganizationConnectConfigWithHttpInfo(organizationId, connectRequest);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Adds a Connect configuration for an organization Required scopes: connect_org_config_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Add an organization Connect request
+ /// ApiResponse of OrganizationConnectConfigurationDetailsResponse
+ public ApiResponse CreateOrganizationConnectConfigWithHttpInfo(Guid? organizationId, OrganizationConnectConfigurationRequest connectRequest)
+ {
+ // verify the required parameter 'organizationId' is set
+ if (organizationId == null)
+ throw new ApiException(400, "Missing required parameter 'organizationId' when calling OrgConnectApi->CreateOrganizationConnectConfig");
+ // verify the required parameter 'connectRequest' is set
+ if (connectRequest == null)
+ throw new ApiException(400, "Missing required parameter 'connectRequest' when calling OrgConnectApi->CreateOrganizationConnectConfig");
+
+ var localVarPath = "/v2/organizations/{organizationId}/connect";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new Dictionary();
+ var localVarHeaderParams = new Dictionary(this.ApiClient.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new List();
+ Object localVarPostBody = null;
+ String localVarHttpContentDisposition = string.Empty;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ // set "format" to json by default
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
+ localVarPathParams.Add("format", "json");
+ if (organizationId != null) localVarPathParams.Add("organizationId", this.ApiClient.ParameterToString(organizationId)); // path parameter
+ if (connectRequest != null && connectRequest.GetType() != typeof(byte[]))
+ {
+ localVarPostBody = this.ApiClient.Serialize(connectRequest); // http body (model) parameter
+ }
+ else
+ {
+ localVarPostBody = connectRequest; // byte array
+ }
+
+ // authentication (docusignAccessCode) required
+ // oauth required
+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
+ {
+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
+ }
+
+
+ // make the HTTP request
+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("POST"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
+ DocuSignResponse localVarResponse = this.ApiClient.CallApi(localVarRequest);
+
+ int localVarStatusCode = (int)localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("CreateOrganizationConnectConfig", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ (OrganizationConnectConfigurationDetailsResponse)this.ApiClient.Deserialize(localVarResponse, typeof(OrganizationConnectConfigurationDetailsResponse)));
+ }
+
+ ///
+ /// Adds a Connect configuration for an organization Required scopes: connect_org_config_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Add an organization Connect request
+ /// Task of OrganizationConnectConfigurationDetailsResponse
+ public async System.Threading.Tasks.Task CreateOrganizationConnectConfigAsync(Guid? organizationId, OrganizationConnectConfigurationRequest connectRequest)
+ {
+ ApiResponse localVarResponse = await CreateOrganizationConnectConfigAsyncWithHttpInfo(organizationId, connectRequest);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Adds a Connect configuration for an organization Required scopes: connect_org_config_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Add an organization Connect request
+ /// Task of ApiResponse (OrganizationConnectConfigurationDetailsResponse)
+ public async System.Threading.Tasks.Task> CreateOrganizationConnectConfigAsyncWithHttpInfo(Guid? organizationId, OrganizationConnectConfigurationRequest connectRequest)
+ {
+ // verify the required parameter 'organizationId' is set
+ if (organizationId == null)
+ throw new ApiException(400, "Missing required parameter 'organizationId' when calling OrgConnectApi->CreateOrganizationConnectConfig");
+ // verify the required parameter 'connectRequest' is set
+ if (connectRequest == null)
+ throw new ApiException(400, "Missing required parameter 'connectRequest' when calling OrgConnectApi->CreateOrganizationConnectConfig");
+
+ var localVarPath = "/v2/organizations/{organizationId}/connect";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new Dictionary();
+ var localVarHeaderParams = new Dictionary(this.ApiClient.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new List();
+ Object localVarPostBody = null;
+ String localVarHttpContentDisposition = string.Empty;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ // set "format" to json by default
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
+ localVarPathParams.Add("format", "json");
+ if (organizationId != null) localVarPathParams.Add("organizationId", this.ApiClient.ParameterToString(organizationId)); // path parameter
+ if (connectRequest != null && connectRequest.GetType() != typeof(byte[]))
+ {
+ localVarPostBody = this.ApiClient.Serialize(connectRequest); // http body (model) parameter
+ }
+ else
+ {
+ localVarPostBody = connectRequest; // byte array
+ }
+
+ // authentication (docusignAccessCode) required
+ // oauth required
+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
+ {
+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
+ }
+
+
+ // make the HTTP request
+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("POST"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
+ DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest);
+
+ int localVarStatusCode = (int)localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("CreateOrganizationConnectConfig", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ (OrganizationConnectConfigurationDetailsResponse)this.ApiClient.Deserialize(localVarResponse, typeof(OrganizationConnectConfigurationDetailsResponse)));
+ }
+
+
+ ///
+ /// Deletes information about a Connect HMAC secret Required scopes: connect_org_hmac_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The key ID Guid
+ /// OrganizationConnectHmacSecretsResponse
+ public OrganizationConnectHmacSecretsResponse DeleteConnectHmacSecret(Guid? organizationId, Guid? keyId)
+ {
+ ApiResponse localVarResponse = DeleteConnectHmacSecretWithHttpInfo(organizationId, keyId);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Deletes information about a Connect HMAC secret Required scopes: connect_org_hmac_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The key ID Guid
+ /// ApiResponse of OrganizationConnectHmacSecretsResponse
+ public ApiResponse DeleteConnectHmacSecretWithHttpInfo(Guid? organizationId, Guid? keyId)
+ {
+ // verify the required parameter 'organizationId' is set
+ if (organizationId == null)
+ throw new ApiException(400, "Missing required parameter 'organizationId' when calling OrgConnectApi->DeleteConnectHmacSecret");
+ // verify the required parameter 'keyId' is set
+ if (keyId == null)
+ throw new ApiException(400, "Missing required parameter 'keyId' when calling OrgConnectApi->DeleteConnectHmacSecret");
+
+ var localVarPath = "/v2/organizations/{organizationId}/connect/secret/{keyId}";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new Dictionary();
+ var localVarHeaderParams = new Dictionary(this.ApiClient.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new List();
+ Object localVarPostBody = null;
+ String localVarHttpContentDisposition = string.Empty;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ // set "format" to json by default
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
+ localVarPathParams.Add("format", "json");
+ if (organizationId != null) localVarPathParams.Add("organizationId", this.ApiClient.ParameterToString(organizationId)); // path parameter
+ if (keyId != null) localVarPathParams.Add("keyId", this.ApiClient.ParameterToString(keyId)); // path parameter
+
+ // authentication (docusignAccessCode) required
+ // oauth required
+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
+ {
+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
+ }
+
+
+ // make the HTTP request
+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("DELETE"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
+ DocuSignResponse localVarResponse = this.ApiClient.CallApi(localVarRequest);
+
+ int localVarStatusCode = (int)localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("DeleteConnectHmacSecret", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ (OrganizationConnectHmacSecretsResponse)this.ApiClient.Deserialize(localVarResponse, typeof(OrganizationConnectHmacSecretsResponse)));
+ }
+
+ ///
+ /// Deletes information about a Connect HMAC secret Required scopes: connect_org_hmac_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The key ID Guid
+ /// Task of OrganizationConnectHmacSecretsResponse
+ public async System.Threading.Tasks.Task DeleteConnectHmacSecretAsync(Guid? organizationId, Guid? keyId)
+ {
+ ApiResponse localVarResponse = await DeleteConnectHmacSecretAsyncWithHttpInfo(organizationId, keyId);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Deletes information about a Connect HMAC secret Required scopes: connect_org_hmac_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The key ID Guid
+ /// Task of ApiResponse (OrganizationConnectHmacSecretsResponse)
+ public async System.Threading.Tasks.Task> DeleteConnectHmacSecretAsyncWithHttpInfo(Guid? organizationId, Guid? keyId)
+ {
+ // verify the required parameter 'organizationId' is set
+ if (organizationId == null)
+ throw new ApiException(400, "Missing required parameter 'organizationId' when calling OrgConnectApi->DeleteConnectHmacSecret");
+ // verify the required parameter 'keyId' is set
+ if (keyId == null)
+ throw new ApiException(400, "Missing required parameter 'keyId' when calling OrgConnectApi->DeleteConnectHmacSecret");
+
+ var localVarPath = "/v2/organizations/{organizationId}/connect/secret/{keyId}";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new Dictionary();
+ var localVarHeaderParams = new Dictionary(this.ApiClient.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new List();
+ Object localVarPostBody = null;
+ String localVarHttpContentDisposition = string.Empty;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ // set "format" to json by default
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
+ localVarPathParams.Add("format", "json");
+ if (organizationId != null) localVarPathParams.Add("organizationId", this.ApiClient.ParameterToString(organizationId)); // path parameter
+ if (keyId != null) localVarPathParams.Add("keyId", this.ApiClient.ParameterToString(keyId)); // path parameter
+
+ // authentication (docusignAccessCode) required
+ // oauth required
+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
+ {
+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
+ }
+
+
+ // make the HTTP request
+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("DELETE"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
+ DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest);
+
+ int localVarStatusCode = (int)localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("DeleteConnectHmacSecret", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ (OrganizationConnectHmacSecretsResponse)this.ApiClient.Deserialize(localVarResponse, typeof(OrganizationConnectHmacSecretsResponse)));
+ }
+
+
+ ///
+ /// Deletes information about an organization-level Connect configuration Required scopes: connect_org_config_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The configuration ID Guid
+ /// Object
+ public Object DeleteOrganizationConnectConfig(Guid? organizationId, Guid? connectId)
+ {
+ ApiResponse localVarResponse = DeleteOrganizationConnectConfigWithHttpInfo(organizationId, connectId);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Deletes information about an organization-level Connect configuration Required scopes: connect_org_config_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The configuration ID Guid
+ /// ApiResponse of Object
+ public ApiResponse DeleteOrganizationConnectConfigWithHttpInfo(Guid? organizationId, Guid? connectId)
+ {
+ // verify the required parameter 'organizationId' is set
+ if (organizationId == null)
+ throw new ApiException(400, "Missing required parameter 'organizationId' when calling OrgConnectApi->DeleteOrganizationConnectConfig");
+ // verify the required parameter 'connectId' is set
+ if (connectId == null)
+ throw new ApiException(400, "Missing required parameter 'connectId' when calling OrgConnectApi->DeleteOrganizationConnectConfig");
+
+ var localVarPath = "/v2/organizations/{organizationId}/connect/{connectId}";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new Dictionary();
+ var localVarHeaderParams = new Dictionary(this.ApiClient.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new List();
+ Object localVarPostBody = null;
+ String localVarHttpContentDisposition = string.Empty;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ // set "format" to json by default
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
+ localVarPathParams.Add("format", "json");
+ if (organizationId != null) localVarPathParams.Add("organizationId", this.ApiClient.ParameterToString(organizationId)); // path parameter
+ if (connectId != null) localVarPathParams.Add("connectId", this.ApiClient.ParameterToString(connectId)); // path parameter
+
+ // authentication (docusignAccessCode) required
+ // oauth required
+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
+ {
+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
+ }
+
+
+ // make the HTTP request
+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("DELETE"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
+ DocuSignResponse localVarResponse = this.ApiClient.CallApi(localVarRequest);
+
+ int localVarStatusCode = (int)localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("DeleteOrganizationConnectConfig", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ (Object)this.ApiClient.Deserialize(localVarResponse, typeof(Object)));
+ }
+
+ ///
+ /// Deletes information about an organization-level Connect configuration Required scopes: connect_org_config_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The configuration ID Guid
+ /// Task of Object
+ public async System.Threading.Tasks.Task DeleteOrganizationConnectConfigAsync(Guid? organizationId, Guid? connectId)
+ {
+ ApiResponse localVarResponse = await DeleteOrganizationConnectConfigAsyncWithHttpInfo(organizationId, connectId);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Deletes information about an organization-level Connect configuration Required scopes: connect_org_config_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The configuration ID Guid
+ /// Task of ApiResponse (Object)
+ public async System.Threading.Tasks.Task> DeleteOrganizationConnectConfigAsyncWithHttpInfo(Guid? organizationId, Guid? connectId)
+ {
+ // verify the required parameter 'organizationId' is set
+ if (organizationId == null)
+ throw new ApiException(400, "Missing required parameter 'organizationId' when calling OrgConnectApi->DeleteOrganizationConnectConfig");
+ // verify the required parameter 'connectId' is set
+ if (connectId == null)
+ throw new ApiException(400, "Missing required parameter 'connectId' when calling OrgConnectApi->DeleteOrganizationConnectConfig");
+
+ var localVarPath = "/v2/organizations/{organizationId}/connect/{connectId}";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new Dictionary();
+ var localVarHeaderParams = new Dictionary(this.ApiClient.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new List();
+ Object localVarPostBody = null;
+ String localVarHttpContentDisposition = string.Empty;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ // set "format" to json by default
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
+ localVarPathParams.Add("format", "json");
+ if (organizationId != null) localVarPathParams.Add("organizationId", this.ApiClient.ParameterToString(organizationId)); // path parameter
+ if (connectId != null) localVarPathParams.Add("connectId", this.ApiClient.ParameterToString(connectId)); // path parameter
+
+ // authentication (docusignAccessCode) required
+ // oauth required
+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
+ {
+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
+ }
+
+
+ // make the HTTP request
+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("DELETE"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
+ DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest);
+
+ int localVarStatusCode = (int)localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("DeleteOrganizationConnectConfig", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ (Object)this.ApiClient.Deserialize(localVarResponse, typeof(Object)));
+ }
+
+
+ ///
+ /// Deletes an organization-level Connect OAuth configuration Required scopes: connect_org_oauth_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Object
+ public Object DeleteOrganizationConnectOAuthConfiguration(Guid? organizationId)
+ {
+ ApiResponse localVarResponse = DeleteOrganizationConnectOAuthConfigurationWithHttpInfo(organizationId);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Deletes an organization-level Connect OAuth configuration Required scopes: connect_org_oauth_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// ApiResponse of Object
+ public ApiResponse DeleteOrganizationConnectOAuthConfigurationWithHttpInfo(Guid? organizationId)
+ {
+ // verify the required parameter 'organizationId' is set
+ if (organizationId == null)
+ throw new ApiException(400, "Missing required parameter 'organizationId' when calling OrgConnectApi->DeleteOrganizationConnectOAuthConfiguration");
+
+ var localVarPath = "/v2/organizations/{organizationId}/connect/oauth";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new Dictionary();
+ var localVarHeaderParams = new Dictionary(this.ApiClient.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new List();
+ Object localVarPostBody = null;
+ String localVarHttpContentDisposition = string.Empty;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ // set "format" to json by default
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
+ localVarPathParams.Add("format", "json");
+ if (organizationId != null) localVarPathParams.Add("organizationId", this.ApiClient.ParameterToString(organizationId)); // path parameter
+
+ // authentication (docusignAccessCode) required
+ // oauth required
+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
+ {
+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
+ }
+
+
+ // make the HTTP request
+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("DELETE"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
+ DocuSignResponse localVarResponse = this.ApiClient.CallApi(localVarRequest);
+
+ int localVarStatusCode = (int)localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("DeleteOrganizationConnectOAuthConfiguration", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ (Object)this.ApiClient.Deserialize(localVarResponse, typeof(Object)));
+ }
+
+ ///
+ /// Deletes an organization-level Connect OAuth configuration Required scopes: connect_org_oauth_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Task of Object
+ public async System.Threading.Tasks.Task DeleteOrganizationConnectOAuthConfigurationAsync(Guid? organizationId)
+ {
+ ApiResponse localVarResponse = await DeleteOrganizationConnectOAuthConfigurationAsyncWithHttpInfo(organizationId);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Deletes an organization-level Connect OAuth configuration Required scopes: connect_org_oauth_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Task of ApiResponse (Object)
+ public async System.Threading.Tasks.Task> DeleteOrganizationConnectOAuthConfigurationAsyncWithHttpInfo(Guid? organizationId)
+ {
+ // verify the required parameter 'organizationId' is set
+ if (organizationId == null)
+ throw new ApiException(400, "Missing required parameter 'organizationId' when calling OrgConnectApi->DeleteOrganizationConnectOAuthConfiguration");
+
+ var localVarPath = "/v2/organizations/{organizationId}/connect/oauth";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new Dictionary();
+ var localVarHeaderParams = new Dictionary(this.ApiClient.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new List();
+ Object localVarPostBody = null;
+ String localVarHttpContentDisposition = string.Empty;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ // set "format" to json by default
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
+ localVarPathParams.Add("format", "json");
+ if (organizationId != null) localVarPathParams.Add("organizationId", this.ApiClient.ParameterToString(organizationId)); // path parameter
+
+ // authentication (docusignAccessCode) required
+ // oauth required
+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
+ {
+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
+ }
+
+
+ // make the HTTP request
+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("DELETE"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
+ DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest);
+
+ int localVarStatusCode = (int)localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("DeleteOrganizationConnectOAuthConfiguration", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ (Object)this.ApiClient.Deserialize(localVarResponse, typeof(Object)));
+ }
+
+
+ ///
+ /// Returns information about Connect HMAC secrets Required scopes: connect_org_hmac_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// OrganizationConnectHmacSecretsResponse
+ public OrganizationConnectHmacSecretsResponse GetConnectHmacSecrets(Guid? organizationId)
+ {
+ ApiResponse localVarResponse = GetConnectHmacSecretsWithHttpInfo(organizationId);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Returns information about Connect HMAC secrets Required scopes: connect_org_hmac_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// ApiResponse of OrganizationConnectHmacSecretsResponse
+ public ApiResponse GetConnectHmacSecretsWithHttpInfo(Guid? organizationId)
+ {
+ // verify the required parameter 'organizationId' is set
+ if (organizationId == null)
+ throw new ApiException(400, "Missing required parameter 'organizationId' when calling OrgConnectApi->GetConnectHmacSecrets");
+
+ var localVarPath = "/v2/organizations/{organizationId}/connect/secret";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new Dictionary();
+ var localVarHeaderParams = new Dictionary(this.ApiClient.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new List();
+ Object localVarPostBody = null;
+ String localVarHttpContentDisposition = string.Empty;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ // set "format" to json by default
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
+ localVarPathParams.Add("format", "json");
+ if (organizationId != null) localVarPathParams.Add("organizationId", this.ApiClient.ParameterToString(organizationId)); // path parameter
+
+ // authentication (docusignAccessCode) required
+ // oauth required
+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
+ {
+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
+ }
+
+
+ // make the HTTP request
+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("GET"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
+ DocuSignResponse localVarResponse = this.ApiClient.CallApi(localVarRequest);
+
+ int localVarStatusCode = (int)localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("GetConnectHmacSecrets", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ (OrganizationConnectHmacSecretsResponse)this.ApiClient.Deserialize(localVarResponse, typeof(OrganizationConnectHmacSecretsResponse)));
+ }
+
+ ///
+ /// Returns information about Connect HMAC secrets Required scopes: connect_org_hmac_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Task of OrganizationConnectHmacSecretsResponse
+ public async System.Threading.Tasks.Task GetConnectHmacSecretsAsync(Guid? organizationId)
+ {
+ ApiResponse localVarResponse = await GetConnectHmacSecretsAsyncWithHttpInfo(organizationId);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Returns information about Connect HMAC secrets Required scopes: connect_org_hmac_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Task of ApiResponse (OrganizationConnectHmacSecretsResponse)
+ public async System.Threading.Tasks.Task> GetConnectHmacSecretsAsyncWithHttpInfo(Guid? organizationId)
+ {
+ // verify the required parameter 'organizationId' is set
+ if (organizationId == null)
+ throw new ApiException(400, "Missing required parameter 'organizationId' when calling OrgConnectApi->GetConnectHmacSecrets");
+
+ var localVarPath = "/v2/organizations/{organizationId}/connect/secret";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new Dictionary();
+ var localVarHeaderParams = new Dictionary(this.ApiClient.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new List();
+ Object localVarPostBody = null;
+ String localVarHttpContentDisposition = string.Empty;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ // set "format" to json by default
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
+ localVarPathParams.Add("format", "json");
+ if (organizationId != null) localVarPathParams.Add("organizationId", this.ApiClient.ParameterToString(organizationId)); // path parameter
+
+ // authentication (docusignAccessCode) required
+ // oauth required
+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
+ {
+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
+ }
+
+
+ // make the HTTP request
+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("GET"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
+ DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest);
+
+ int localVarStatusCode = (int)localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("GetConnectHmacSecrets", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ (OrganizationConnectHmacSecretsResponse)this.ApiClient.Deserialize(localVarResponse, typeof(OrganizationConnectHmacSecretsResponse)));
+ }
+
+
+ ///
+ /// Returns an organization-level Connect configuration Required scopes: connect_org_config_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The configuration ID Guid
+ /// OrganizationConnectConfigurationDetailsResponse
+ public OrganizationConnectConfigurationDetailsResponse GetOrganizationConnectConfig(Guid? organizationId, Guid? connectId)
+ {
+ ApiResponse localVarResponse = GetOrganizationConnectConfigWithHttpInfo(organizationId, connectId);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Returns an organization-level Connect configuration Required scopes: connect_org_config_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The configuration ID Guid
+ /// ApiResponse of OrganizationConnectConfigurationDetailsResponse
+ public ApiResponse GetOrganizationConnectConfigWithHttpInfo(Guid? organizationId, Guid? connectId)
+ {
+ // verify the required parameter 'organizationId' is set
+ if (organizationId == null)
+ throw new ApiException(400, "Missing required parameter 'organizationId' when calling OrgConnectApi->GetOrganizationConnectConfig");
+ // verify the required parameter 'connectId' is set
+ if (connectId == null)
+ throw new ApiException(400, "Missing required parameter 'connectId' when calling OrgConnectApi->GetOrganizationConnectConfig");
+
+ var localVarPath = "/v2/organizations/{organizationId}/connect/{connectId}";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new Dictionary();
+ var localVarHeaderParams = new Dictionary(this.ApiClient.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new List();
+ Object localVarPostBody = null;
+ String localVarHttpContentDisposition = string.Empty;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ // set "format" to json by default
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
+ localVarPathParams.Add("format", "json");
+ if (organizationId != null) localVarPathParams.Add("organizationId", this.ApiClient.ParameterToString(organizationId)); // path parameter
+ if (connectId != null) localVarPathParams.Add("connectId", this.ApiClient.ParameterToString(connectId)); // path parameter
+
+ // authentication (docusignAccessCode) required
+ // oauth required
+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
+ {
+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
+ }
+
+
+ // make the HTTP request
+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("GET"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
+ DocuSignResponse localVarResponse = this.ApiClient.CallApi(localVarRequest);
+
+ int localVarStatusCode = (int)localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("GetOrganizationConnectConfig", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ (OrganizationConnectConfigurationDetailsResponse)this.ApiClient.Deserialize(localVarResponse, typeof(OrganizationConnectConfigurationDetailsResponse)));
+ }
+
+ ///
+ /// Returns an organization-level Connect configuration Required scopes: connect_org_config_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The configuration ID Guid
+ /// Task of OrganizationConnectConfigurationDetailsResponse
+ public async System.Threading.Tasks.Task GetOrganizationConnectConfigAsync(Guid? organizationId, Guid? connectId)
+ {
+ ApiResponse localVarResponse = await GetOrganizationConnectConfigAsyncWithHttpInfo(organizationId, connectId);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Returns an organization-level Connect configuration Required scopes: connect_org_config_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The configuration ID Guid
+ /// Task of ApiResponse (OrganizationConnectConfigurationDetailsResponse)
+ public async System.Threading.Tasks.Task> GetOrganizationConnectConfigAsyncWithHttpInfo(Guid? organizationId, Guid? connectId)
+ {
+ // verify the required parameter 'organizationId' is set
+ if (organizationId == null)
+ throw new ApiException(400, "Missing required parameter 'organizationId' when calling OrgConnectApi->GetOrganizationConnectConfig");
+ // verify the required parameter 'connectId' is set
+ if (connectId == null)
+ throw new ApiException(400, "Missing required parameter 'connectId' when calling OrgConnectApi->GetOrganizationConnectConfig");
+
+ var localVarPath = "/v2/organizations/{organizationId}/connect/{connectId}";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new Dictionary();
+ var localVarHeaderParams = new Dictionary(this.ApiClient.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new List();
+ Object localVarPostBody = null;
+ String localVarHttpContentDisposition = string.Empty;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ // set "format" to json by default
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
+ localVarPathParams.Add("format", "json");
+ if (organizationId != null) localVarPathParams.Add("organizationId", this.ApiClient.ParameterToString(organizationId)); // path parameter
+ if (connectId != null) localVarPathParams.Add("connectId", this.ApiClient.ParameterToString(connectId)); // path parameter
+
+ // authentication (docusignAccessCode) required
+ // oauth required
+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
+ {
+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
+ }
+
+
+ // make the HTTP request
+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("GET"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
+ DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest);
+
+ int localVarStatusCode = (int)localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("GetOrganizationConnectConfig", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ (OrganizationConnectConfigurationDetailsResponse)this.ApiClient.Deserialize(localVarResponse, typeof(OrganizationConnectConfigurationDetailsResponse)));
+ }
+
+ ///
+ /// Returns a list of Connect configurations under an organization Required scopes: connect_org_config_read_api
+ ///
+ public class GetOrganizationConnectConfigsOptions
+ {
+ /// Sorts configs by field in ascending order. Default sort by config name. Default value: name
+ public string sortBy {get; set;}
+ /// Selects configs based on siteId
+ public int? siteId {get; set;}
+ /// Selects configs based on accountId
+ public Guid? accountId {get; set;}
+ /// Selects configs based on their status
+ public bool? allowEnvelopePublish {get; set;}
+ /// Selects configs based on config id or name provided in the query parameter
+ public string q {get; set;}
+ }
+
+ ///
+ /// Returns a list of Connect configurations under an organization Required scopes: connect_org_config_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Options for modifying the behavior of the function.
+ /// OrganizationConnectConfigsResponse
+ public OrganizationConnectConfigsResponse GetOrganizationConnectConfigs(Guid? organizationId, OrgConnectApi.GetOrganizationConnectConfigsOptions options = null)
+ {
+ ApiResponse localVarResponse = GetOrganizationConnectConfigsWithHttpInfo(organizationId, options);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Returns a list of Connect configurations under an organization Required scopes: connect_org_config_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Options for modifying the behavior of the function.
+ /// ApiResponse of OrganizationConnectConfigsResponse
+ public ApiResponse GetOrganizationConnectConfigsWithHttpInfo(Guid? organizationId, OrgConnectApi.GetOrganizationConnectConfigsOptions options = null)
+ {
+ // verify the required parameter 'organizationId' is set
+ if (organizationId == null)
+ throw new ApiException(400, "Missing required parameter 'organizationId' when calling OrgConnectApi->GetOrganizationConnectConfigs");
+
+ var localVarPath = "/v2/organizations/{organizationId}/connect";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new Dictionary();
+ var localVarHeaderParams = new Dictionary(this.ApiClient.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new List();
+ Object localVarPostBody = null;
+ String localVarHttpContentDisposition = string.Empty;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ // set "format" to json by default
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
+ localVarPathParams.Add("format", "json");
+ if (organizationId != null) localVarPathParams.Add("organizationId", this.ApiClient.ParameterToString(organizationId)); // path parameter
+ if (options != null)
+ {
+ if (options.sortBy != null) localVarQueryParams.Add("sortBy", this.ApiClient.ParameterToString(options.sortBy)); // query parameter
+ if (options.siteId != null) localVarQueryParams.Add("siteId", this.ApiClient.ParameterToString(options.siteId)); // query parameter
+ if (options.accountId != null) localVarQueryParams.Add("accountId", this.ApiClient.ParameterToString(options.accountId)); // query parameter
+ if (options.allowEnvelopePublish != null) localVarQueryParams.Add("allowEnvelopePublish", this.ApiClient.ParameterToString(options.allowEnvelopePublish)); // query parameter
+ if (options.q != null) localVarQueryParams.Add("q", this.ApiClient.ParameterToString(options.q)); // query parameter
+ }
+
+ // authentication (docusignAccessCode) required
+ // oauth required
+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
+ {
+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
+ }
+
+
+ // make the HTTP request
+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("GET"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
+ DocuSignResponse localVarResponse = this.ApiClient.CallApi(localVarRequest);
+
+ int localVarStatusCode = (int)localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("GetOrganizationConnectConfigs", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ (OrganizationConnectConfigsResponse)this.ApiClient.Deserialize(localVarResponse, typeof(OrganizationConnectConfigsResponse)));
+ }
+
+ ///
+ /// Returns a list of Connect configurations under an organization Required scopes: connect_org_config_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Options for modifying the behavior of the function.
+ /// Task of OrganizationConnectConfigsResponse
+ public async System.Threading.Tasks.Task GetOrganizationConnectConfigsAsync(Guid? organizationId, OrgConnectApi.GetOrganizationConnectConfigsOptions options = null)
+ {
+ ApiResponse localVarResponse = await GetOrganizationConnectConfigsAsyncWithHttpInfo(organizationId, options);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Returns a list of Connect configurations under an organization Required scopes: connect_org_config_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Options for modifying the behavior of the function.
+ /// Task of ApiResponse (OrganizationConnectConfigsResponse)
+ public async System.Threading.Tasks.Task> GetOrganizationConnectConfigsAsyncWithHttpInfo(Guid? organizationId, OrgConnectApi.GetOrganizationConnectConfigsOptions options = null)
+ {
+ // verify the required parameter 'organizationId' is set
+ if (organizationId == null)
+ throw new ApiException(400, "Missing required parameter 'organizationId' when calling OrgConnectApi->GetOrganizationConnectConfigs");
+
+ var localVarPath = "/v2/organizations/{organizationId}/connect";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new Dictionary();
+ var localVarHeaderParams = new Dictionary(this.ApiClient.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new List();
+ Object localVarPostBody = null;
+ String localVarHttpContentDisposition = string.Empty;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ // set "format" to json by default
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
+ localVarPathParams.Add("format", "json");
+ if (organizationId != null) localVarPathParams.Add("organizationId", this.ApiClient.ParameterToString(organizationId)); // path parameter
+ if (options != null)
+ {
+ if (options.sortBy != null) localVarQueryParams.Add("sortBy", this.ApiClient.ParameterToString(options.sortBy)); // query parameter
+ if (options.siteId != null) localVarQueryParams.Add("siteId", this.ApiClient.ParameterToString(options.siteId)); // query parameter
+ if (options.accountId != null) localVarQueryParams.Add("accountId", this.ApiClient.ParameterToString(options.accountId)); // query parameter
+ if (options.allowEnvelopePublish != null) localVarQueryParams.Add("allowEnvelopePublish", this.ApiClient.ParameterToString(options.allowEnvelopePublish)); // query parameter
+ if (options.q != null) localVarQueryParams.Add("q", this.ApiClient.ParameterToString(options.q)); // query parameter
+ }
+
+ // authentication (docusignAccessCode) required
+ // oauth required
+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
+ {
+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
+ }
+
+
+ // make the HTTP request
+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("GET"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
+ DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest);
+
+ int localVarStatusCode = (int)localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("GetOrganizationConnectConfigs", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ (OrganizationConnectConfigsResponse)this.ApiClient.Deserialize(localVarResponse, typeof(OrganizationConnectConfigsResponse)));
+ }
+
+
+ ///
+ /// Returns information about an organization-level Connect OAuth configuration Required scopes: connect_org_oauth_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Object
+ public Object GetOrganizationConnectOAuthConfiguration(Guid? organizationId)
+ {
+ ApiResponse localVarResponse = GetOrganizationConnectOAuthConfigurationWithHttpInfo(organizationId);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Returns information about an organization-level Connect OAuth configuration Required scopes: connect_org_oauth_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// ApiResponse of Object
+ public ApiResponse GetOrganizationConnectOAuthConfigurationWithHttpInfo(Guid? organizationId)
+ {
+ // verify the required parameter 'organizationId' is set
+ if (organizationId == null)
+ throw new ApiException(400, "Missing required parameter 'organizationId' when calling OrgConnectApi->GetOrganizationConnectOAuthConfiguration");
+
+ var localVarPath = "/v2/organizations/{organizationId}/connect/oauth";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new Dictionary();
+ var localVarHeaderParams = new Dictionary(this.ApiClient.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new List();
+ Object localVarPostBody = null;
+ String localVarHttpContentDisposition = string.Empty;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ // set "format" to json by default
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
+ localVarPathParams.Add("format", "json");
+ if (organizationId != null) localVarPathParams.Add("organizationId", this.ApiClient.ParameterToString(organizationId)); // path parameter
+
+ // authentication (docusignAccessCode) required
+ // oauth required
+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
+ {
+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
+ }
+
+
+ // make the HTTP request
+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("GET"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
+ DocuSignResponse localVarResponse = this.ApiClient.CallApi(localVarRequest);
+
+ int localVarStatusCode = (int)localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("GetOrganizationConnectOAuthConfiguration", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ (Object)this.ApiClient.Deserialize(localVarResponse, typeof(Object)));
+ }
+
+ ///
+ /// Returns information about an organization-level Connect OAuth configuration Required scopes: connect_org_oauth_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Task of Object
+ public async System.Threading.Tasks.Task GetOrganizationConnectOAuthConfigurationAsync(Guid? organizationId)
+ {
+ ApiResponse localVarResponse = await GetOrganizationConnectOAuthConfigurationAsyncWithHttpInfo(organizationId);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Returns information about an organization-level Connect OAuth configuration Required scopes: connect_org_oauth_read_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Task of ApiResponse (Object)
+ public async System.Threading.Tasks.Task> GetOrganizationConnectOAuthConfigurationAsyncWithHttpInfo(Guid? organizationId)
+ {
+ // verify the required parameter 'organizationId' is set
+ if (organizationId == null)
+ throw new ApiException(400, "Missing required parameter 'organizationId' when calling OrgConnectApi->GetOrganizationConnectOAuthConfiguration");
+
+ var localVarPath = "/v2/organizations/{organizationId}/connect/oauth";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new Dictionary();
+ var localVarHeaderParams = new Dictionary(this.ApiClient.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new List();
+ Object localVarPostBody = null;
+ String localVarHttpContentDisposition = string.Empty;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ // set "format" to json by default
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
+ localVarPathParams.Add("format", "json");
+ if (organizationId != null) localVarPathParams.Add("organizationId", this.ApiClient.ParameterToString(organizationId)); // path parameter
+
+ // authentication (docusignAccessCode) required
+ // oauth required
+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
+ {
+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
+ }
+
+
+ // make the HTTP request
+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("GET"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
+ DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest);
+
+ int localVarStatusCode = (int)localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("GetOrganizationConnectOAuthConfiguration", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ (Object)this.ApiClient.Deserialize(localVarResponse, typeof(Object)));
+ }
+
+
+ ///
+ /// Saves information about a Connect HMAC secret Required scopes: connect_org_hmac_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// OrganizationConnectHmacSecretsResponse
+ public OrganizationConnectHmacSecretsResponse PostConnectHmacSecret(Guid? organizationId)
+ {
+ ApiResponse localVarResponse = PostConnectHmacSecretWithHttpInfo(organizationId);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Saves information about a Connect HMAC secret Required scopes: connect_org_hmac_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// ApiResponse of OrganizationConnectHmacSecretsResponse
+ public ApiResponse PostConnectHmacSecretWithHttpInfo(Guid? organizationId)
+ {
+ // verify the required parameter 'organizationId' is set
+ if (organizationId == null)
+ throw new ApiException(400, "Missing required parameter 'organizationId' when calling OrgConnectApi->PostConnectHmacSecret");
+
+ var localVarPath = "/v2/organizations/{organizationId}/connect/secret";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new Dictionary();
+ var localVarHeaderParams = new Dictionary(this.ApiClient.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new List();
+ Object localVarPostBody = null;
+ String localVarHttpContentDisposition = string.Empty;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ // set "format" to json by default
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
+ localVarPathParams.Add("format", "json");
+ if (organizationId != null) localVarPathParams.Add("organizationId", this.ApiClient.ParameterToString(organizationId)); // path parameter
+
+ // authentication (docusignAccessCode) required
+ // oauth required
+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
+ {
+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
+ }
+
+
+ // make the HTTP request
+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("POST"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
+ DocuSignResponse localVarResponse = this.ApiClient.CallApi(localVarRequest);
+
+ int localVarStatusCode = (int)localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("PostConnectHmacSecret", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ (OrganizationConnectHmacSecretsResponse)this.ApiClient.Deserialize(localVarResponse, typeof(OrganizationConnectHmacSecretsResponse)));
+ }
+
+ ///
+ /// Saves information about a Connect HMAC secret Required scopes: connect_org_hmac_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Task of OrganizationConnectHmacSecretsResponse
+ public async System.Threading.Tasks.Task PostConnectHmacSecretAsync(Guid? organizationId)
+ {
+ ApiResponse localVarResponse = await PostConnectHmacSecretAsyncWithHttpInfo(organizationId);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Saves information about a Connect HMAC secret Required scopes: connect_org_hmac_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Task of ApiResponse (OrganizationConnectHmacSecretsResponse)
+ public async System.Threading.Tasks.Task> PostConnectHmacSecretAsyncWithHttpInfo(Guid? organizationId)
+ {
+ // verify the required parameter 'organizationId' is set
+ if (organizationId == null)
+ throw new ApiException(400, "Missing required parameter 'organizationId' when calling OrgConnectApi->PostConnectHmacSecret");
+
+ var localVarPath = "/v2/organizations/{organizationId}/connect/secret";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new Dictionary();
+ var localVarHeaderParams = new Dictionary(this.ApiClient.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new List();
+ Object localVarPostBody = null;
+ String localVarHttpContentDisposition = string.Empty;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ // set "format" to json by default
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
+ localVarPathParams.Add("format", "json");
+ if (organizationId != null) localVarPathParams.Add("organizationId", this.ApiClient.ParameterToString(organizationId)); // path parameter
+
+ // authentication (docusignAccessCode) required
+ // oauth required
+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
+ {
+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
+ }
+
+
+ // make the HTTP request
+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("POST"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
+ DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest);
+
+ int localVarStatusCode = (int)localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("PostConnectHmacSecret", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ (OrganizationConnectHmacSecretsResponse)this.ApiClient.Deserialize(localVarResponse, typeof(OrganizationConnectHmacSecretsResponse)));
+ }
+
+
+ ///
+ /// Saves information about an organization-level Connect OAuth configuration Required scopes: connect_org_oauth_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Add an organization-level Connect OAuth configuration
+ /// OrganizationConnectOAuthConfiguration
+ public OrganizationConnectOAuthConfiguration PostOrganizationConnectOAuthConfiguration(Guid? organizationId, OrganizationConnectOAuthConfiguration configuration)
+ {
+ ApiResponse localVarResponse = PostOrganizationConnectOAuthConfigurationWithHttpInfo(organizationId, configuration);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Saves information about an organization-level Connect OAuth configuration Required scopes: connect_org_oauth_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Add an organization-level Connect OAuth configuration
+ /// ApiResponse of OrganizationConnectOAuthConfiguration
+ public ApiResponse PostOrganizationConnectOAuthConfigurationWithHttpInfo(Guid? organizationId, OrganizationConnectOAuthConfiguration configuration)
+ {
+ // verify the required parameter 'organizationId' is set
+ if (organizationId == null)
+ throw new ApiException(400, "Missing required parameter 'organizationId' when calling OrgConnectApi->PostOrganizationConnectOAuthConfiguration");
+ // verify the required parameter 'configuration' is set
+ if (configuration == null)
+ throw new ApiException(400, "Missing required parameter 'configuration' when calling OrgConnectApi->PostOrganizationConnectOAuthConfiguration");
+
+ var localVarPath = "/v2/organizations/{organizationId}/connect/oauth";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new Dictionary();
+ var localVarHeaderParams = new Dictionary(this.ApiClient.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new List();
+ Object localVarPostBody = null;
+ String localVarHttpContentDisposition = string.Empty;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ // set "format" to json by default
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
+ localVarPathParams.Add("format", "json");
+ if (organizationId != null) localVarPathParams.Add("organizationId", this.ApiClient.ParameterToString(organizationId)); // path parameter
+ if (configuration != null && configuration.GetType() != typeof(byte[]))
+ {
+ localVarPostBody = this.ApiClient.Serialize(configuration); // http body (model) parameter
+ }
+ else
+ {
+ localVarPostBody = configuration; // byte array
+ }
+
+ // authentication (docusignAccessCode) required
+ // oauth required
+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
+ {
+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
+ }
+
+
+ // make the HTTP request
+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("POST"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
+ DocuSignResponse localVarResponse = this.ApiClient.CallApi(localVarRequest);
+
+ int localVarStatusCode = (int)localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("PostOrganizationConnectOAuthConfiguration", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ (OrganizationConnectOAuthConfiguration)this.ApiClient.Deserialize(localVarResponse, typeof(OrganizationConnectOAuthConfiguration)));
+ }
+
+ ///
+ /// Saves information about an organization-level Connect OAuth configuration Required scopes: connect_org_oauth_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Add an organization-level Connect OAuth configuration
+ /// Task of OrganizationConnectOAuthConfiguration
+ public async System.Threading.Tasks.Task PostOrganizationConnectOAuthConfigurationAsync(Guid? organizationId, OrganizationConnectOAuthConfiguration configuration)
+ {
+ ApiResponse localVarResponse = await PostOrganizationConnectOAuthConfigurationAsyncWithHttpInfo(organizationId, configuration);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Saves information about an organization-level Connect OAuth configuration Required scopes: connect_org_oauth_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Add an organization-level Connect OAuth configuration
+ /// Task of ApiResponse (OrganizationConnectOAuthConfiguration)
+ public async System.Threading.Tasks.Task> PostOrganizationConnectOAuthConfigurationAsyncWithHttpInfo(Guid? organizationId, OrganizationConnectOAuthConfiguration configuration)
+ {
+ // verify the required parameter 'organizationId' is set
+ if (organizationId == null)
+ throw new ApiException(400, "Missing required parameter 'organizationId' when calling OrgConnectApi->PostOrganizationConnectOAuthConfiguration");
+ // verify the required parameter 'configuration' is set
+ if (configuration == null)
+ throw new ApiException(400, "Missing required parameter 'configuration' when calling OrgConnectApi->PostOrganizationConnectOAuthConfiguration");
+
+ var localVarPath = "/v2/organizations/{organizationId}/connect/oauth";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new Dictionary();
+ var localVarHeaderParams = new Dictionary(this.ApiClient.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new List();
+ Object localVarPostBody = null;
+ String localVarHttpContentDisposition = string.Empty;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ // set "format" to json by default
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
+ localVarPathParams.Add("format", "json");
+ if (organizationId != null) localVarPathParams.Add("organizationId", this.ApiClient.ParameterToString(organizationId)); // path parameter
+ if (configuration != null && configuration.GetType() != typeof(byte[]))
+ {
+ localVarPostBody = this.ApiClient.Serialize(configuration); // http body (model) parameter
+ }
+ else
+ {
+ localVarPostBody = configuration; // byte array
+ }
+
+ // authentication (docusignAccessCode) required
+ // oauth required
+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
+ {
+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
+ }
+
+
+ // make the HTTP request
+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("POST"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
+ DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest);
+
+ int localVarStatusCode = (int)localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("PostOrganizationConnectOAuthConfiguration", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ (OrganizationConnectOAuthConfiguration)this.ApiClient.Deserialize(localVarResponse, typeof(OrganizationConnectOAuthConfiguration)));
+ }
+
+
+ ///
+ /// Updates information about an organization-level Connect OAuth configuration Required scopes: connect_org_oauth_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Update an organization-level Connect OAuth configuration
+ /// OrganizationConnectOAuthConfiguration
+ public OrganizationConnectOAuthConfiguration PutOrganizationConnectOAuthConfiguration(Guid? organizationId, OrganizationConnectOAuthConfiguration configuration)
+ {
+ ApiResponse localVarResponse = PutOrganizationConnectOAuthConfigurationWithHttpInfo(organizationId, configuration);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Updates information about an organization-level Connect OAuth configuration Required scopes: connect_org_oauth_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Update an organization-level Connect OAuth configuration
+ /// ApiResponse of OrganizationConnectOAuthConfiguration
+ public ApiResponse PutOrganizationConnectOAuthConfigurationWithHttpInfo(Guid? organizationId, OrganizationConnectOAuthConfiguration configuration)
+ {
+ // verify the required parameter 'organizationId' is set
+ if (organizationId == null)
+ throw new ApiException(400, "Missing required parameter 'organizationId' when calling OrgConnectApi->PutOrganizationConnectOAuthConfiguration");
+ // verify the required parameter 'configuration' is set
+ if (configuration == null)
+ throw new ApiException(400, "Missing required parameter 'configuration' when calling OrgConnectApi->PutOrganizationConnectOAuthConfiguration");
+
+ var localVarPath = "/v2/organizations/{organizationId}/connect/oauth";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new Dictionary();
+ var localVarHeaderParams = new Dictionary(this.ApiClient.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new List();
+ Object localVarPostBody = null;
+ String localVarHttpContentDisposition = string.Empty;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ // set "format" to json by default
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
+ localVarPathParams.Add("format", "json");
+ if (organizationId != null) localVarPathParams.Add("organizationId", this.ApiClient.ParameterToString(organizationId)); // path parameter
+ if (configuration != null && configuration.GetType() != typeof(byte[]))
+ {
+ localVarPostBody = this.ApiClient.Serialize(configuration); // http body (model) parameter
+ }
+ else
+ {
+ localVarPostBody = configuration; // byte array
+ }
+
+ // authentication (docusignAccessCode) required
+ // oauth required
+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
+ {
+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
+ }
+
+
+ // make the HTTP request
+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("PUT"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
+ DocuSignResponse localVarResponse = this.ApiClient.CallApi(localVarRequest);
+
+ int localVarStatusCode = (int)localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("PutOrganizationConnectOAuthConfiguration", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ (OrganizationConnectOAuthConfiguration)this.ApiClient.Deserialize(localVarResponse, typeof(OrganizationConnectOAuthConfiguration)));
+ }
+
+ ///
+ /// Updates information about an organization-level Connect OAuth configuration Required scopes: connect_org_oauth_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Update an organization-level Connect OAuth configuration
+ /// Task of OrganizationConnectOAuthConfiguration
+ public async System.Threading.Tasks.Task PutOrganizationConnectOAuthConfigurationAsync(Guid? organizationId, OrganizationConnectOAuthConfiguration configuration)
+ {
+ ApiResponse localVarResponse = await PutOrganizationConnectOAuthConfigurationAsyncWithHttpInfo(organizationId, configuration);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Updates information about an organization-level Connect OAuth configuration Required scopes: connect_org_oauth_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// Update an organization-level Connect OAuth configuration
+ /// Task of ApiResponse (OrganizationConnectOAuthConfiguration)
+ public async System.Threading.Tasks.Task> PutOrganizationConnectOAuthConfigurationAsyncWithHttpInfo(Guid? organizationId, OrganizationConnectOAuthConfiguration configuration)
+ {
+ // verify the required parameter 'organizationId' is set
+ if (organizationId == null)
+ throw new ApiException(400, "Missing required parameter 'organizationId' when calling OrgConnectApi->PutOrganizationConnectOAuthConfiguration");
+ // verify the required parameter 'configuration' is set
+ if (configuration == null)
+ throw new ApiException(400, "Missing required parameter 'configuration' when calling OrgConnectApi->PutOrganizationConnectOAuthConfiguration");
+
+ var localVarPath = "/v2/organizations/{organizationId}/connect/oauth";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new Dictionary();
+ var localVarHeaderParams = new Dictionary(this.ApiClient.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new List();
+ Object localVarPostBody = null;
+ String localVarHttpContentDisposition = string.Empty;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ // set "format" to json by default
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
+ localVarPathParams.Add("format", "json");
+ if (organizationId != null) localVarPathParams.Add("organizationId", this.ApiClient.ParameterToString(organizationId)); // path parameter
+ if (configuration != null && configuration.GetType() != typeof(byte[]))
+ {
+ localVarPostBody = this.ApiClient.Serialize(configuration); // http body (model) parameter
+ }
+ else
+ {
+ localVarPostBody = configuration; // byte array
+ }
+
+ // authentication (docusignAccessCode) required
+ // oauth required
+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
+ {
+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
+ }
+
+
+ // make the HTTP request
+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("PUT"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
+ DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest);
+
+ int localVarStatusCode = (int)localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("PutOrganizationConnectOAuthConfiguration", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ (OrganizationConnectOAuthConfiguration)this.ApiClient.Deserialize(localVarResponse, typeof(OrganizationConnectOAuthConfiguration)));
+ }
+
+
+ ///
+ /// Updates an organization-level Connect configuration Required scopes: connect_org_config_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The configuration ID Guid
+ /// Add an organization Connect request
+ /// OrganizationConnectConfigurationDetailsResponse
+ public OrganizationConnectConfigurationDetailsResponse UpdateOrganizationConnectConfig(Guid? organizationId, Guid? connectId, OrganizationConnectConfigurationRequest connectRequest)
+ {
+ ApiResponse localVarResponse = UpdateOrganizationConnectConfigWithHttpInfo(organizationId, connectId, connectRequest);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Updates an organization-level Connect configuration Required scopes: connect_org_config_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The configuration ID Guid
+ /// Add an organization Connect request
+ /// ApiResponse of OrganizationConnectConfigurationDetailsResponse
+ public ApiResponse UpdateOrganizationConnectConfigWithHttpInfo(Guid? organizationId, Guid? connectId, OrganizationConnectConfigurationRequest connectRequest)
+ {
+ // verify the required parameter 'organizationId' is set
+ if (organizationId == null)
+ throw new ApiException(400, "Missing required parameter 'organizationId' when calling OrgConnectApi->UpdateOrganizationConnectConfig");
+ // verify the required parameter 'connectId' is set
+ if (connectId == null)
+ throw new ApiException(400, "Missing required parameter 'connectId' when calling OrgConnectApi->UpdateOrganizationConnectConfig");
+ // verify the required parameter 'connectRequest' is set
+ if (connectRequest == null)
+ throw new ApiException(400, "Missing required parameter 'connectRequest' when calling OrgConnectApi->UpdateOrganizationConnectConfig");
+
+ var localVarPath = "/v2/organizations/{organizationId}/connect/{connectId}";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new Dictionary();
+ var localVarHeaderParams = new Dictionary(this.ApiClient.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new List();
+ Object localVarPostBody = null;
+ String localVarHttpContentDisposition = string.Empty;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ // set "format" to json by default
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
+ localVarPathParams.Add("format", "json");
+ if (organizationId != null) localVarPathParams.Add("organizationId", this.ApiClient.ParameterToString(organizationId)); // path parameter
+ if (connectId != null) localVarPathParams.Add("connectId", this.ApiClient.ParameterToString(connectId)); // path parameter
+ if (connectRequest != null && connectRequest.GetType() != typeof(byte[]))
+ {
+ localVarPostBody = this.ApiClient.Serialize(connectRequest); // http body (model) parameter
+ }
+ else
+ {
+ localVarPostBody = connectRequest; // byte array
+ }
+
+ // authentication (docusignAccessCode) required
+ // oauth required
+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
+ {
+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
+ }
+
+
+ // make the HTTP request
+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("PUT"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
+ DocuSignResponse localVarResponse = this.ApiClient.CallApi(localVarRequest);
+
+ int localVarStatusCode = (int)localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("UpdateOrganizationConnectConfig", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ (OrganizationConnectConfigurationDetailsResponse)this.ApiClient.Deserialize(localVarResponse, typeof(OrganizationConnectConfigurationDetailsResponse)));
+ }
+
+ ///
+ /// Updates an organization-level Connect configuration Required scopes: connect_org_config_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The configuration ID Guid
+ /// Add an organization Connect request
+ /// Task of OrganizationConnectConfigurationDetailsResponse
+ public async System.Threading.Tasks.Task UpdateOrganizationConnectConfigAsync(Guid? organizationId, Guid? connectId, OrganizationConnectConfigurationRequest connectRequest)
+ {
+ ApiResponse localVarResponse = await UpdateOrganizationConnectConfigAsyncWithHttpInfo(organizationId, connectId, connectRequest);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Updates an organization-level Connect configuration Required scopes: connect_org_config_write_api
+ ///
+ /// Thrown when fails to make API call
+ /// The organization ID Guid
+ /// The configuration ID Guid
+ /// Add an organization Connect request
+ /// Task of ApiResponse (OrganizationConnectConfigurationDetailsResponse)
+ public async System.Threading.Tasks.Task> UpdateOrganizationConnectConfigAsyncWithHttpInfo(Guid? organizationId, Guid? connectId, OrganizationConnectConfigurationRequest connectRequest)
+ {
+ // verify the required parameter 'organizationId' is set
+ if (organizationId == null)
+ throw new ApiException(400, "Missing required parameter 'organizationId' when calling OrgConnectApi->UpdateOrganizationConnectConfig");
+ // verify the required parameter 'connectId' is set
+ if (connectId == null)
+ throw new ApiException(400, "Missing required parameter 'connectId' when calling OrgConnectApi->UpdateOrganizationConnectConfig");
+ // verify the required parameter 'connectRequest' is set
+ if (connectRequest == null)
+ throw new ApiException(400, "Missing required parameter 'connectRequest' when calling OrgConnectApi->UpdateOrganizationConnectConfig");
+
+ var localVarPath = "/v2/organizations/{organizationId}/connect/{connectId}";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new Dictionary();
+ var localVarHeaderParams = new Dictionary(this.ApiClient.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new List();
+ Object localVarPostBody = null;
+ String localVarHttpContentDisposition = string.Empty;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ // set "format" to json by default
+ // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
+ localVarPathParams.Add("format", "json");
+ if (organizationId != null) localVarPathParams.Add("organizationId", this.ApiClient.ParameterToString(organizationId)); // path parameter
+ if (connectId != null) localVarPathParams.Add("connectId", this.ApiClient.ParameterToString(connectId)); // path parameter
+ if (connectRequest != null && connectRequest.GetType() != typeof(byte[]))
+ {
+ localVarPostBody = this.ApiClient.Serialize(connectRequest); // http body (model) parameter
+ }
+ else
+ {
+ localVarPostBody = connectRequest; // byte array
+ }
+
+ // authentication (docusignAccessCode) required
+ // oauth required
+ if (!String.IsNullOrEmpty(this.ApiClient.Configuration.AccessToken))
+ {
+ localVarHeaderParams["Authorization"] = "Bearer " + this.ApiClient.Configuration.AccessToken;
+ }
+
+
+ // make the HTTP request
+ DocuSignRequest localVarRequest = this.ApiClient.PrepareRequest(localVarPath, new HttpMethod("PUT"), localVarQueryParams.ToList(), localVarPostBody, localVarHeaderParams.ToList(), localVarFormParams.ToList(), localVarPathParams.ToList(), localVarFileParams, localVarHttpContentType, localVarHttpContentDisposition);
+ DocuSignResponse localVarResponse = await this.ApiClient.CallApiAsync(localVarRequest);
+
+ int localVarStatusCode = (int)localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("UpdateOrganizationConnectConfig", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
+ (OrganizationConnectConfigurationDetailsResponse)this.ApiClient.Deserialize(localVarResponse, typeof(OrganizationConnectConfigurationDetailsResponse)));
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/sdk/src/DocuSign.Admin/Api/UsersApi.cs b/sdk/src/DocuSign.Admin/Api/UsersApi.cs
index 2203dec..99924b5 100644
--- a/sdk/src/DocuSign.Admin/Api/UsersApi.cs
+++ b/sdk/src/DocuSign.Admin/Api/UsersApi.cs
@@ -299,8 +299,9 @@ public interface IUsersApi : IApiAccessor
/// Thrown when fails to make API call
/// The organization ID Guid
/// The user details to update
+ /// Options for modifying the behavior of the function.
///
- UsersUpdateResponse UpdateUser(Guid? organizationId, UpdateUsersRequest request);
+ UsersUpdateResponse UpdateUser(Guid? organizationId, UpdateUsersRequest request, UsersApi.UpdateUserOptions options = null);
///
/// Updates a user.
@@ -311,8 +312,9 @@ public interface IUsersApi : IApiAccessor
/// Thrown when fails to make API call
/// The organization ID Guid
/// The user details to update
+ /// Options for modifying the behavior of the function.
/// ApiResponse of
- ApiResponse UpdateUserWithHttpInfo(Guid? organizationId, UpdateUsersRequest request);
+ ApiResponse UpdateUserWithHttpInfo(Guid? organizationId, UpdateUsersRequest request, UsersApi.UpdateUserOptions options = null);
#endregion Synchronous Operations
#region Asynchronous Operations
///
@@ -591,8 +593,9 @@ public interface IUsersApi : IApiAccessor
/// Thrown when fails to make API call
/// The organization ID Guid
/// The user details to update
+ /// Options for modifying the behavior of the function.
/// Task of UsersUpdateResponse
- System.Threading.Tasks.Task UpdateUserAsync(Guid? organizationId, UpdateUsersRequest request);
+ System.Threading.Tasks.Task UpdateUserAsync(Guid? organizationId, UpdateUsersRequest request, UsersApi.UpdateUserOptions options = null);
///
/// Updates a user.
@@ -603,8 +606,9 @@ public interface IUsersApi : IApiAccessor
/// Thrown when fails to make API call
/// The organization ID Guid
/// The user details to update
+ /// Options for modifying the behavior of the function.
/// Task of ApiResponse (UsersUpdateResponse)
- System.Threading.Tasks.Task> UpdateUserAsyncWithHttpInfo(Guid? organizationId, UpdateUsersRequest request);
+ System.Threading.Tasks.Task> UpdateUserAsyncWithHttpInfo(Guid? organizationId, UpdateUsersRequest request, UsersApi.UpdateUserOptions options = null);
#endregion Asynchronous Operations
}
@@ -1824,6 +1828,8 @@ public class GetUserDSProfileOptions
{
/// Sorts user information by account name ascending
public bool? sort {get; set;}
+ /// When true: additional details about the user's license will be included in the response. The account must have an IAM plan with licenses.
+ public bool? includeLicense {get; set;}
}
///
@@ -1888,6 +1894,7 @@ public ApiResponse GetUserDSProfileWithHttpInfo(Guid? or
if (options != null)
{
if (options.sort != null) localVarQueryParams.Add("sort", this.ApiClient.ParameterToString(options.sort)); // query parameter
+ if (options.includeLicense != null) localVarQueryParams.Add("include_license", this.ApiClient.ParameterToString(options.includeLicense)); // query parameter
}
// authentication (docusignAccessCode) required
@@ -1977,6 +1984,7 @@ public async System.Threading.Tasks.Task> Ge
if (options != null)
{
if (options.sort != null) localVarQueryParams.Add("sort", this.ApiClient.ParameterToString(options.sort)); // query parameter
+ if (options.includeLicense != null) localVarQueryParams.Add("include_license", this.ApiClient.ParameterToString(options.includeLicense)); // query parameter
}
// authentication (docusignAccessCode) required
@@ -2013,6 +2021,8 @@ public class GetUserDSProfilesByEmailOptions
public string email {get; set;}
/// Sorts user information by account name ascending
public bool? sort {get; set;}
+ /// When true: additional details about the user's license will be included in the response. The account must have an IAM plan with licenses.
+ public bool? includeLicense {get; set;}
}
///
@@ -2072,6 +2082,7 @@ public ApiResponse GetUserDSProfilesByEmailWithHttpInfo(
{
if (options.email != null) localVarQueryParams.Add("email", this.ApiClient.ParameterToString(options.email)); // query parameter
if (options.sort != null) localVarQueryParams.Add("sort", this.ApiClient.ParameterToString(options.sort)); // query parameter
+ if (options.includeLicense != null) localVarQueryParams.Add("include_license", this.ApiClient.ParameterToString(options.includeLicense)); // query parameter
}
// authentication (docusignAccessCode) required
@@ -2156,6 +2167,7 @@ public async System.Threading.Tasks.Task