Okta.Sdk.Api.DeviceAccessApi

October 22, 2025 ยท View on GitHub

All URIs are relative to https://subdomain.okta.com

MethodHTTP requestDescription
GetDesktopMFAEnforceNumberMatchingChallengeOrgSettingGET /device-access/api/v1/desktop-mfa/enforce-number-matching-challenge-settingsRetrieve the Desktop MFA Enforce Number Matching Challenge org setting
GetDesktopMFARecoveryPinOrgSettingGET /device-access/api/v1/desktop-mfa/recovery-pin-settingsRetrieve the Desktop MFA Recovery PIN org setting
ReplaceDesktopMFAEnforceNumberMatchingChallengeOrgSettingPUT /device-access/api/v1/desktop-mfa/enforce-number-matching-challenge-settingsReplace the Desktop MFA Enforce Number Matching Challenge org setting
ReplaceDesktopMFARecoveryPinOrgSettingPUT /device-access/api/v1/desktop-mfa/recovery-pin-settingsReplace the Desktop MFA Recovery PIN org setting

GetDesktopMFAEnforceNumberMatchingChallengeOrgSetting

DesktopMFAEnforceNumberMatchingChallengeOrgSetting GetDesktopMFAEnforceNumberMatchingChallengeOrgSetting ()

Retrieve the Desktop MFA Enforce Number Matching Challenge org setting

Retrieves the status of the Desktop MFA Enforce Number Matching Challenge push notifications feature. That is, whether or not the feature is enabled for your org.

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class GetDesktopMFAEnforceNumberMatchingChallengeOrgSettingExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new DeviceAccessApi(config);

            try
            {
                // Retrieve the Desktop MFA Enforce Number Matching Challenge org setting
                DesktopMFAEnforceNumberMatchingChallengeOrgSetting result = apiInstance.GetDesktopMFAEnforceNumberMatchingChallengeOrgSetting();
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling DeviceAccessApi.GetDesktopMFAEnforceNumberMatchingChallengeOrgSetting: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

DesktopMFAEnforceNumberMatchingChallengeOrgSetting

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
403Forbidden-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetDesktopMFARecoveryPinOrgSetting

DesktopMFARecoveryPinOrgSetting GetDesktopMFARecoveryPinOrgSetting ()

Retrieve the Desktop MFA Recovery PIN org setting

Retrieves the status of the Desktop MFA Recovery PIN feature. That is, whether or not the feature is enabled for your org.

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class GetDesktopMFARecoveryPinOrgSettingExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new DeviceAccessApi(config);

            try
            {
                // Retrieve the Desktop MFA Recovery PIN org setting
                DesktopMFARecoveryPinOrgSetting result = apiInstance.GetDesktopMFARecoveryPinOrgSetting();
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling DeviceAccessApi.GetDesktopMFARecoveryPinOrgSetting: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

DesktopMFARecoveryPinOrgSetting

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
403Forbidden-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ReplaceDesktopMFAEnforceNumberMatchingChallengeOrgSetting

DesktopMFAEnforceNumberMatchingChallengeOrgSetting ReplaceDesktopMFAEnforceNumberMatchingChallengeOrgSetting (DesktopMFAEnforceNumberMatchingChallengeOrgSetting desktopMFAEnforceNumberMatchingChallengeOrgSetting)

Replace the Desktop MFA Enforce Number Matching Challenge org setting

Replaces the status of the Desktop MFA Enforce Number Matching Challenge push notifications feature. That is, whether or not the feature is enabled for your org.

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class ReplaceDesktopMFAEnforceNumberMatchingChallengeOrgSettingExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new DeviceAccessApi(config);
            var desktopMFAEnforceNumberMatchingChallengeOrgSetting = new DesktopMFAEnforceNumberMatchingChallengeOrgSetting(); // DesktopMFAEnforceNumberMatchingChallengeOrgSetting | 

            try
            {
                // Replace the Desktop MFA Enforce Number Matching Challenge org setting
                DesktopMFAEnforceNumberMatchingChallengeOrgSetting result = apiInstance.ReplaceDesktopMFAEnforceNumberMatchingChallengeOrgSetting(desktopMFAEnforceNumberMatchingChallengeOrgSetting);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling DeviceAccessApi.ReplaceDesktopMFAEnforceNumberMatchingChallengeOrgSetting: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
desktopMFAEnforceNumberMatchingChallengeOrgSettingDesktopMFAEnforceNumberMatchingChallengeOrgSetting

Return type

DesktopMFAEnforceNumberMatchingChallengeOrgSetting

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad Request-
403Forbidden-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ReplaceDesktopMFARecoveryPinOrgSetting

DesktopMFARecoveryPinOrgSetting ReplaceDesktopMFARecoveryPinOrgSetting (DesktopMFARecoveryPinOrgSetting desktopMFARecoveryPinOrgSetting)

Replace the Desktop MFA Recovery PIN org setting

Replaces the Desktop MFA Recovery PIN feature for your org

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class ReplaceDesktopMFARecoveryPinOrgSettingExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.OktaDomain = "https://subdomain.okta.com";
            // Configure API key authorization: apiToken
            config.Token ="YOUR_API_KEY";
            // Configure OAuth2 access token for authorization: oauth2
            config.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new DeviceAccessApi(config);
            var desktopMFARecoveryPinOrgSetting = new DesktopMFARecoveryPinOrgSetting(); // DesktopMFARecoveryPinOrgSetting | 

            try
            {
                // Replace the Desktop MFA Recovery PIN org setting
                DesktopMFARecoveryPinOrgSetting result = apiInstance.ReplaceDesktopMFARecoveryPinOrgSetting(desktopMFARecoveryPinOrgSetting);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling DeviceAccessApi.ReplaceDesktopMFARecoveryPinOrgSetting: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
desktopMFARecoveryPinOrgSettingDesktopMFARecoveryPinOrgSetting

Return type

DesktopMFARecoveryPinOrgSetting

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad Request-
403Forbidden-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]