All URIs are relative to https://subdomain.okta.com
| Method | HTTP request | Description |
|---|---|---|
| CreateCaptchaInstance | POST /api/v1/captchas | Create a CAPTCHA instance |
| DeleteCaptchaInstance | DELETE /api/v1/captchas/{captchaId} | Delete a CAPTCHA instance |
| DeleteOrgCaptchaSettings | DELETE /api/v1/org/captcha | Delete the org-wide CAPTCHA settings |
| GetCaptchaInstance | GET /api/v1/captchas/{captchaId} | Retrieve a CAPTCHA instance |
| GetOrgCaptchaSettings | GET /api/v1/org/captcha | Retrieve the org-wide CAPTCHA settings |
| ListCaptchaInstances | GET /api/v1/captchas | List all CAPTCHA instances |
| ReplaceCaptchaInstance | PUT /api/v1/captchas/{captchaId} | Replace a CAPTCHA instance |
| ReplacesOrgCaptchaSettings | PUT /api/v1/org/captcha | Replace the org-wide CAPTCHA settings |
| UpdateCaptchaInstance | POST /api/v1/captchas/{captchaId} | Update a CAPTCHA instance |
CAPTCHAInstance CreateCaptchaInstance (CAPTCHAInstance instance)
Create a CAPTCHA instance
Creates a new CAPTCHA instance. Currently, an org can only configure a single CAPTCHA instance.
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class CreateCaptchaInstanceExample
{
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 CAPTCHAApi(config);
var instance = new CAPTCHAInstance(); // CAPTCHAInstance |
try
{
// Create a CAPTCHA instance
CAPTCHAInstance result = apiInstance.CreateCaptchaInstance(instance);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CAPTCHAApi.CreateCaptchaInstance: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| instance | CAPTCHAInstance |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Created | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteCaptchaInstance (string captchaId)
Delete a CAPTCHA instance
Deletes a specified CAPTCHA instance > Note: If your CAPTCHA instance is still associated with your org, the request fails. You must first update your Org-wide CAPTCHA settings to remove the CAPTCHA instance.
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class DeleteCaptchaInstanceExample
{
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 CAPTCHAApi(config);
var captchaId = "captchaId_example"; // string | The unique key used to identify your CAPTCHA instance
try
{
// Delete a CAPTCHA instance
apiInstance.DeleteCaptchaInstance(captchaId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CAPTCHAApi.DeleteCaptchaInstance: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| captchaId | string | The unique key used to identify your CAPTCHA instance |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | No Content | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteOrgCaptchaSettings ()
Delete the org-wide CAPTCHA settings
Deletes the CAPTCHA settings object for your organization
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class DeleteOrgCaptchaSettingsExample
{
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 CAPTCHAApi(config);
try
{
// Delete the org-wide CAPTCHA settings
apiInstance.DeleteOrgCaptchaSettings();
}
catch (ApiException e)
{
Debug.Print("Exception when calling CAPTCHAApi.DeleteOrgCaptchaSettings: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This endpoint does not need any parameter.
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | No Content | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CAPTCHAInstance GetCaptchaInstance (string captchaId)
Retrieve a CAPTCHA instance
Retrieves the properties of a specified CAPTCHA instance
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class GetCaptchaInstanceExample
{
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 CAPTCHAApi(config);
var captchaId = "captchaId_example"; // string | The unique key used to identify your CAPTCHA instance
try
{
// Retrieve a CAPTCHA instance
CAPTCHAInstance result = apiInstance.GetCaptchaInstance(captchaId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CAPTCHAApi.GetCaptchaInstance: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| captchaId | string | The unique key used to identify your CAPTCHA instance |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgCAPTCHASettings GetOrgCaptchaSettings ()
Retrieve the org-wide CAPTCHA settings
Retrieves the CAPTCHA settings object for your organization > Note: If the current organization hasn't configured CAPTCHA Settings, the request returns an empty object.
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class GetOrgCaptchaSettingsExample
{
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 CAPTCHAApi(config);
try
{
// Retrieve the org-wide CAPTCHA settings
OrgCAPTCHASettings result = apiInstance.GetOrgCaptchaSettings();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CAPTCHAApi.GetOrgCaptchaSettings: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success | - |
| 403 | Forbidden | - |
| 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<CAPTCHAInstance> ListCaptchaInstances ()
List all CAPTCHA instances
Lists all CAPTCHA instances with pagination support. A subset of CAPTCHA instances can be returned that match a supported filter expression or query.
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ListCaptchaInstancesExample
{
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 CAPTCHAApi(config);
try
{
// List all CAPTCHA instances
List<CAPTCHAInstance> result = apiInstance.ListCaptchaInstances().ToListAsync();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CAPTCHAApi.ListCaptchaInstances: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 403 | Forbidden | - |
| 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CAPTCHAInstance ReplaceCaptchaInstance (string captchaId, CAPTCHAInstance instance)
Replace a CAPTCHA instance
Replaces the properties for a specified CAPTCHA instance
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ReplaceCaptchaInstanceExample
{
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 CAPTCHAApi(config);
var captchaId = "captchaId_example"; // string | The unique key used to identify your CAPTCHA instance
var instance = new CAPTCHAInstance(); // CAPTCHAInstance |
try
{
// Replace a CAPTCHA instance
CAPTCHAInstance result = apiInstance.ReplaceCaptchaInstance(captchaId, instance);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CAPTCHAApi.ReplaceCaptchaInstance: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| captchaId | string | The unique key used to identify your CAPTCHA instance | |
| instance | CAPTCHAInstance |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgCAPTCHASettings ReplacesOrgCaptchaSettings (OrgCAPTCHASettings orgCAPTCHASettings)
Replace the org-wide CAPTCHA settings
Replaces the CAPTCHA settings object for your organization > Note: You can disable CAPTCHA for your organization by setting captchaId and enabledPages to null.
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ReplacesOrgCaptchaSettingsExample
{
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 CAPTCHAApi(config);
var orgCAPTCHASettings = new OrgCAPTCHASettings(); // OrgCAPTCHASettings |
try
{
// Replace the org-wide CAPTCHA settings
OrgCAPTCHASettings result = apiInstance.ReplacesOrgCaptchaSettings(orgCAPTCHASettings);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CAPTCHAApi.ReplacesOrgCaptchaSettings: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| orgCAPTCHASettings | OrgCAPTCHASettings |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CAPTCHAInstance UpdateCaptchaInstance (string captchaId, CAPTCHAInstance instance)
Update a CAPTCHA instance
Partially updates the properties of a specified CAPTCHA instance
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class UpdateCaptchaInstanceExample
{
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 CAPTCHAApi(config);
var captchaId = "captchaId_example"; // string | The unique key used to identify your CAPTCHA instance
var instance = new CAPTCHAInstance(); // CAPTCHAInstance |
try
{
// Update a CAPTCHA instance
CAPTCHAInstance result = apiInstance.UpdateCaptchaInstance(captchaId, instance);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CAPTCHAApi.UpdateCaptchaInstance: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| captchaId | string | The unique key used to identify your CAPTCHA instance | |
| instance | CAPTCHAInstance |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]