Okta.Sdk.Api.RiskProviderApi
October 22, 2025 ยท View on GitHub
All URIs are relative to https://subdomain.okta.com
| Method | HTTP request | Description |
|---|---|---|
| CreateRiskProvider | POST /api/v1/risk/providers | Create a risk provider |
| DeleteRiskProvider | DELETE /api/v1/risk/providers/{riskProviderId} | Delete a risk provider |
| GetRiskProvider | GET /api/v1/risk/providers/{riskProviderId} | Retrieve a risk provider |
| ListRiskProviders | GET /api/v1/risk/providers | List all risk providers |
| ReplaceRiskProvider | PUT /api/v1/risk/providers/{riskProviderId} | Replace a risk provider |
CreateRiskProvider
RiskProvider CreateRiskProvider (RiskProvider instance)
Create a risk provider
Creates a risk provider object. You can create a maximum of three risk provider objects.
Example
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class CreateRiskProviderExample
{
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 RiskProviderApi(config);
var instance = new RiskProvider(); // RiskProvider |
try
{
// Create a risk provider
RiskProvider result = apiInstance.CreateRiskProvider(instance);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RiskProviderApi.CreateRiskProvider: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| instance | RiskProvider |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| 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]
DeleteRiskProvider
void DeleteRiskProvider (string riskProviderId)
Delete a risk provider
Deletes a risk provider object by its ID
Example
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class DeleteRiskProviderExample
{
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 RiskProviderApi(config);
var riskProviderId = 00rp12r4skkjkjgsn; // string | `id` of the risk provider object
try
{
// Delete a risk provider
apiInstance.DeleteRiskProvider(riskProviderId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RiskProviderApi.DeleteRiskProvider: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| riskProviderId | string | `id` of the risk provider object |
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| 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]
GetRiskProvider
RiskProvider GetRiskProvider (string riskProviderId)
Retrieve a risk provider
Retrieves a risk provider object by ID
Example
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class GetRiskProviderExample
{
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 RiskProviderApi(config);
var riskProviderId = 00rp12r4skkjkjgsn; // string | `id` of the risk provider object
try
{
// Retrieve a risk provider
RiskProvider result = apiInstance.GetRiskProvider(riskProviderId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RiskProviderApi.GetRiskProvider: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| riskProviderId | string | `id` of the risk provider object |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| 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]
ListRiskProviders
List<RiskProvider> ListRiskProviders ()
List all risk providers
Lists all risk provider objects
Example
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ListRiskProvidersExample
{
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 RiskProviderApi(config);
try
{
// List all risk providers
List<RiskProvider> result = apiInstance.ListRiskProviders().ToListAsync();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RiskProviderApi.ListRiskProviders: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| 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]
ReplaceRiskProvider
RiskProvider ReplaceRiskProvider (string riskProviderId, RiskProvider instance)
Replace a risk provider
Replaces the properties for a given risk provider object ID
Example
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ReplaceRiskProviderExample
{
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 RiskProviderApi(config);
var riskProviderId = 00rp12r4skkjkjgsn; // string | `id` of the risk provider object
var instance = new RiskProvider(); // RiskProvider |
try
{
// Replace a risk provider
RiskProvider result = apiInstance.ReplaceRiskProvider(riskProviderId, instance);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling RiskProviderApi.ReplaceRiskProvider: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| riskProviderId | string | `id` of the risk provider object | |
| instance | RiskProvider |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| 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]