All URIs are relative to https://subdomain.okta.com
| Method | HTTP request | Description |
|---|---|---|
| GetOrgSettings | GET /api/v1/org | Retrieve the Org general settings |
| ReplaceOrgSettings | PUT /api/v1/org | Replace the Org general settings |
| UpdateOrgSettings | POST /api/v1/org | Update the Org general settings |
OrgSetting GetOrgSettings ()
Retrieve the Org general settings
Retrieves the Org General Settings
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class GetOrgSettingsExample
{
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 OrgSettingGeneralApi(config);
try
{
// Retrieve the Org general settings
OrgSetting result = apiInstance.GetOrgSettings();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OrgSettingGeneralApi.GetOrgSettings: " + 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]
OrgSetting ReplaceOrgSettings (OrgSetting orgSetting)
Replace the Org general settings
Replaces the Org General Settings for your Okta org
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ReplaceOrgSettingsExample
{
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 OrgSettingGeneralApi(config);
var orgSetting = new OrgSetting(); // OrgSetting |
try
{
// Replace the Org general settings
OrgSetting result = apiInstance.ReplaceOrgSettings(orgSetting);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OrgSettingGeneralApi.ReplaceOrgSettings: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| orgSetting | OrgSetting |
- 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]
OrgSetting UpdateOrgSettings (OrgSetting orgSetting = null)
Update the Org general settings
Updates partial Org General Settings
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class UpdateOrgSettingsExample
{
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 OrgSettingGeneralApi(config);
var orgSetting = new OrgSetting(); // OrgSetting | (optional)
try
{
// Update the Org general settings
OrgSetting result = apiInstance.UpdateOrgSettings(orgSetting);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OrgSettingGeneralApi.UpdateOrgSettings: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| orgSetting | OrgSetting | [optional] |
- 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]