All URIs are relative to https://subdomain.okta.com
Method | HTTP request | Description |
---|---|---|
DeleteCustomizedErrorPage | DELETE /api/v1/brands/{brandId}/pages/error/customized | Delete the Customized Error Page |
DeleteCustomizedSignInPage | DELETE /api/v1/brands/{brandId}/pages/sign-in/customized | Delete the Customized Sign-in Page |
DeletePreviewErrorPage | DELETE /api/v1/brands/{brandId}/pages/error/preview | Delete the Preview Error Page |
DeletePreviewSignInPage | DELETE /api/v1/brands/{brandId}/pages/sign-in/preview | Delete the Preview Sign-in Page |
GetCustomizedErrorPage | GET /api/v1/brands/{brandId}/pages/error/customized | Retrieve the Customized Error Page |
GetCustomizedSignInPage | GET /api/v1/brands/{brandId}/pages/sign-in/customized | Retrieve the Customized Sign-in Page |
GetDefaultErrorPage | GET /api/v1/brands/{brandId}/pages/error/default | Retrieve the Default Error Page |
GetDefaultSignInPage | GET /api/v1/brands/{brandId}/pages/sign-in/default | Retrieve the Default Sign-in Page |
GetErrorPage | GET /api/v1/brands/{brandId}/pages/error | Retrieve the Error Page Sub-Resources |
GetPreviewErrorPage | GET /api/v1/brands/{brandId}/pages/error/preview | Retrieve the Preview Error Page Preview |
GetPreviewSignInPage | GET /api/v1/brands/{brandId}/pages/sign-in/preview | Retrieve the Preview Sign-in Page Preview |
GetSignInPage | GET /api/v1/brands/{brandId}/pages/sign-in | Retrieve the Sign-in Page Sub-Resources |
GetSignOutPageSettings | GET /api/v1/brands/{brandId}/pages/sign-out/customized | Retrieve the Sign-out Page Settings |
ListAllSignInWidgetVersions | GET /api/v1/brands/{brandId}/pages/sign-in/widget-versions | List all Sign-in Widget Versions |
ReplaceCustomizedErrorPage | PUT /api/v1/brands/{brandId}/pages/error/customized | Replace the Customized Error Page |
ReplaceCustomizedSignInPage | PUT /api/v1/brands/{brandId}/pages/sign-in/customized | Replace the Customized Sign-in Page |
ReplacePreviewErrorPage | PUT /api/v1/brands/{brandId}/pages/error/preview | Replace the Preview Error Page |
ReplacePreviewSignInPage | PUT /api/v1/brands/{brandId}/pages/sign-in/preview | Replace the Preview Sign-in Page |
ReplaceSignOutPageSettings | PUT /api/v1/brands/{brandId}/pages/sign-out/customized | Replace the Sign-out Page Settings |
void DeleteCustomizedErrorPage (string brandId)
Delete the Customized Error Page
Deletes the customized error page. As a result, the default error page appears in your live environment.
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class DeleteCustomizedErrorPageExample
{
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 CustomPagesApi(config);
var brandId = "brandId_example"; // string | The ID of the brand
try
{
// Delete the Customized Error Page
apiInstance.DeleteCustomizedErrorPage(brandId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CustomPagesApi.DeleteCustomizedErrorPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
brandId | string | The ID of the brand |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | Successfully deleted the customized error page. | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteCustomizedSignInPage (string brandId)
Delete the Customized Sign-in Page
Deletes the customized sign-in page. As a result, the default sign-in page appears in your live environment.
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class DeleteCustomizedSignInPageExample
{
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 CustomPagesApi(config);
var brandId = "brandId_example"; // string | The ID of the brand
try
{
// Delete the Customized Sign-in Page
apiInstance.DeleteCustomizedSignInPage(brandId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CustomPagesApi.DeleteCustomizedSignInPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
brandId | string | The ID of the brand |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | Successfully deleted the sign-in page. | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeletePreviewErrorPage (string brandId)
Delete the Preview Error Page
Deletes the preview error page. The preview error page contains unpublished changes and isn't shown in your live environment. Preview it at ${yourOktaDomain}/error/preview
.
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class DeletePreviewErrorPageExample
{
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 CustomPagesApi(config);
var brandId = "brandId_example"; // string | The ID of the brand
try
{
// Delete the Preview Error Page
apiInstance.DeletePreviewErrorPage(brandId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CustomPagesApi.DeletePreviewErrorPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
brandId | string | The ID of the brand |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | Successfully deleted the preview error page. | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeletePreviewSignInPage (string brandId)
Delete the Preview Sign-in Page
Deletes the preview sign-in page. The preview sign-in page contains unpublished changes and isn't shown in your live environment. Preview it at ${yourOktaDomain}/login/preview
.
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class DeletePreviewSignInPageExample
{
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 CustomPagesApi(config);
var brandId = "brandId_example"; // string | The ID of the brand
try
{
// Delete the Preview Sign-in Page
apiInstance.DeletePreviewSignInPage(brandId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CustomPagesApi.DeletePreviewSignInPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
brandId | string | The ID of the brand |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | Successfully deleted the preview sign-in page. | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ErrorPage GetCustomizedErrorPage (string brandId)
Retrieve the Customized Error Page
Retrieves the customized error page. The customized error page appears in your live environment.
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class GetCustomizedErrorPageExample
{
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 CustomPagesApi(config);
var brandId = "brandId_example"; // string | The ID of the brand
try
{
// Retrieve the Customized Error Page
ErrorPage result = apiInstance.GetCustomizedErrorPage(brandId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CustomPagesApi.GetCustomizedErrorPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
brandId | string | The ID of the brand |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successfully retrieved the customized error page. | * Location - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SignInPage GetCustomizedSignInPage (string brandId)
Retrieve the Customized Sign-in Page
Retrieves the customized sign-in page. The customized sign-in page appears in your live environment.
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class GetCustomizedSignInPageExample
{
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 CustomPagesApi(config);
var brandId = "brandId_example"; // string | The ID of the brand
try
{
// Retrieve the Customized Sign-in Page
SignInPage result = apiInstance.GetCustomizedSignInPage(brandId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CustomPagesApi.GetCustomizedSignInPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
brandId | string | The ID of the brand |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successfully retrieved the customized sign-in page. | * Location - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ErrorPage GetDefaultErrorPage (string brandId)
Retrieve the Default Error Page
Retrieves the default error page. The default error page appears when no customized error page exists.
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class GetDefaultErrorPageExample
{
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 CustomPagesApi(config);
var brandId = "brandId_example"; // string | The ID of the brand
try
{
// Retrieve the Default Error Page
ErrorPage result = apiInstance.GetDefaultErrorPage(brandId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CustomPagesApi.GetDefaultErrorPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
brandId | string | The ID of the brand |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successfully retrieved the default error page. | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SignInPage GetDefaultSignInPage (string brandId)
Retrieve the Default Sign-in Page
Retrieves the default sign-in page. The default sign-in page appears when no customized sign-in page exists.
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class GetDefaultSignInPageExample
{
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 CustomPagesApi(config);
var brandId = "brandId_example"; // string | The ID of the brand
try
{
// Retrieve the Default Sign-in Page
SignInPage result = apiInstance.GetDefaultSignInPage(brandId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CustomPagesApi.GetDefaultSignInPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
brandId | string | The ID of the brand |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successfully retrieved the default sign-in page. | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PageRoot GetErrorPage (string brandId, List expand = null)
Retrieve the Error Page Sub-Resources
Retrieves the error page sub-resources. The expand
query parameter specifies which sub-resources to include in the response.
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class GetErrorPageExample
{
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 CustomPagesApi(config);
var brandId = "brandId_example"; // string | The ID of the brand
var expand = new List<string>(); // List<string> | Specifies additional metadata to be included in the response (optional)
try
{
// Retrieve the Error Page Sub-Resources
PageRoot result = apiInstance.GetErrorPage(brandId, expand);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CustomPagesApi.GetErrorPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
brandId | string | The ID of the brand | |
expand | List<string> | Specifies additional metadata to be included in the response | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successfully retrieved the error page. | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ErrorPage GetPreviewErrorPage (string brandId)
Retrieve the Preview Error Page Preview
Retrieves the preview error page. The preview error page contains unpublished changes and isn't shown in your live environment. Preview it at ${yourOktaDomain}/error/preview
.
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class GetPreviewErrorPageExample
{
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 CustomPagesApi(config);
var brandId = "brandId_example"; // string | The ID of the brand
try
{
// Retrieve the Preview Error Page Preview
ErrorPage result = apiInstance.GetPreviewErrorPage(brandId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CustomPagesApi.GetPreviewErrorPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
brandId | string | The ID of the brand |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successfully retrieved the preview error page. | * Location - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SignInPage GetPreviewSignInPage (string brandId)
Retrieve the Preview Sign-in Page Preview
Retrieves the preview sign-in page. The preview sign-in page contains unpublished changes and isn't shown in your live environment. Preview it at ${yourOktaDomain}/login/preview
.
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class GetPreviewSignInPageExample
{
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 CustomPagesApi(config);
var brandId = "brandId_example"; // string | The ID of the brand
try
{
// Retrieve the Preview Sign-in Page Preview
SignInPage result = apiInstance.GetPreviewSignInPage(brandId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CustomPagesApi.GetPreviewSignInPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
brandId | string | The ID of the brand |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successfully retrieved the preview sign-in page. | * Location - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PageRoot GetSignInPage (string brandId, List expand = null)
Retrieve the Sign-in Page Sub-Resources
Retrieves the sign-in page sub-resources. The expand
query parameter specifies which sub-resources to include in the response.
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class GetSignInPageExample
{
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 CustomPagesApi(config);
var brandId = "brandId_example"; // string | The ID of the brand
var expand = new List<string>(); // List<string> | Specifies additional metadata to be included in the response (optional)
try
{
// Retrieve the Sign-in Page Sub-Resources
PageRoot result = apiInstance.GetSignInPage(brandId, expand);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CustomPagesApi.GetSignInPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
brandId | string | The ID of the brand | |
expand | List<string> | Specifies additional metadata to be included in the response | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successfully retrieved the sign-in page. | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
HostedPage GetSignOutPageSettings (string brandId)
Retrieve the Sign-out Page Settings
Retrieves the sign-out page settings
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class GetSignOutPageSettingsExample
{
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 CustomPagesApi(config);
var brandId = "brandId_example"; // string | The ID of the brand
try
{
// Retrieve the Sign-out Page Settings
HostedPage result = apiInstance.GetSignOutPageSettings(brandId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CustomPagesApi.GetSignOutPageSettings: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
brandId | string | The ID of the brand |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successfully retrieved the sign-out page settings. | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<string> ListAllSignInWidgetVersions (string brandId)
List all Sign-in Widget Versions
Lists all sign-in widget versions supported by the current org
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ListAllSignInWidgetVersionsExample
{
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 CustomPagesApi(config);
var brandId = "brandId_example"; // string | The ID of the brand
try
{
// List all Sign-in Widget Versions
List<string> result = apiInstance.ListAllSignInWidgetVersions(brandId).ToListAsync();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CustomPagesApi.ListAllSignInWidgetVersions: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
brandId | string | The ID of the brand |
List
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successfully listed the sign-in widget versions. | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ErrorPage ReplaceCustomizedErrorPage (string brandId, ErrorPage errorPage)
Replace the Customized Error Page
Replaces the customized error page. The customized error page appears in your live environment.
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ReplaceCustomizedErrorPageExample
{
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 CustomPagesApi(config);
var brandId = "brandId_example"; // string | The ID of the brand
var errorPage = new ErrorPage(); // ErrorPage |
try
{
// Replace the Customized Error Page
ErrorPage result = apiInstance.ReplaceCustomizedErrorPage(brandId, errorPage);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CustomPagesApi.ReplaceCustomizedErrorPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
brandId | string | The ID of the brand | |
errorPage | ErrorPage |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successfully replaced the customized error page. | * Location - |
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]
SignInPage ReplaceCustomizedSignInPage (string brandId, SignInPage signInPage)
Replace the Customized Sign-in Page
Replaces the customized sign-in page. The customized sign-in page appears in your live environment.
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ReplaceCustomizedSignInPageExample
{
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 CustomPagesApi(config);
var brandId = "brandId_example"; // string | The ID of the brand
var signInPage = new SignInPage(); // SignInPage |
try
{
// Replace the Customized Sign-in Page
SignInPage result = apiInstance.ReplaceCustomizedSignInPage(brandId, signInPage);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CustomPagesApi.ReplaceCustomizedSignInPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
brandId | string | The ID of the brand | |
signInPage | SignInPage |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successfully replaced the customized sign-in page. | * Location - |
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]
ErrorPage ReplacePreviewErrorPage (string brandId, ErrorPage errorPage)
Replace the Preview Error Page
Replaces the preview error page. The preview error page contains unpublished changes and isn't shown in your live environment. Preview it at ${yourOktaDomain}/error/preview
.
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ReplacePreviewErrorPageExample
{
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 CustomPagesApi(config);
var brandId = "brandId_example"; // string | The ID of the brand
var errorPage = new ErrorPage(); // ErrorPage |
try
{
// Replace the Preview Error Page
ErrorPage result = apiInstance.ReplacePreviewErrorPage(brandId, errorPage);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CustomPagesApi.ReplacePreviewErrorPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
brandId | string | The ID of the brand | |
errorPage | ErrorPage |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successfully replaced the preview error page. | * Location - |
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]
SignInPage ReplacePreviewSignInPage (string brandId, SignInPage signInPage)
Replace the Preview Sign-in Page
Replaces the preview sign-in page. The preview sign-in page contains unpublished changes and isn't shown in your live environment. Preview it at ${yourOktaDomain}/login/preview
.
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ReplacePreviewSignInPageExample
{
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 CustomPagesApi(config);
var brandId = "brandId_example"; // string | The ID of the brand
var signInPage = new SignInPage(); // SignInPage |
try
{
// Replace the Preview Sign-in Page
SignInPage result = apiInstance.ReplacePreviewSignInPage(brandId, signInPage);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CustomPagesApi.ReplacePreviewSignInPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
brandId | string | The ID of the brand | |
signInPage | SignInPage |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successfully replaced the preview sign-in page. | * Location - |
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]
HostedPage ReplaceSignOutPageSettings (string brandId, HostedPage hostedPage)
Replace the Sign-out Page Settings
Replaces the sign-out page settings
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ReplaceSignOutPageSettingsExample
{
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 CustomPagesApi(config);
var brandId = "brandId_example"; // string | The ID of the brand
var hostedPage = new HostedPage(); // HostedPage |
try
{
// Replace the Sign-out Page Settings
HostedPage result = apiInstance.ReplaceSignOutPageSettings(brandId, hostedPage);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CustomPagesApi.ReplaceSignOutPageSettings: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
brandId | string | The ID of the brand | |
hostedPage | HostedPage |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successfully replaced the sign-out page settings. | - |
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]