All URIs are relative to https://subdomain.okta.com
Method | HTTP request | Description |
---|---|---|
CreateUISchema | POST /api/v1/meta/uischemas | Create a UI Schema |
DeleteUISchemas | DELETE /api/v1/meta/uischemas/{id} | Delete a UI Schema |
GetUISchema | GET /api/v1/meta/uischemas/{id} | Retrieve a UI Schema |
ListUISchemas | GET /api/v1/meta/uischemas | List all UI Schemas |
ReplaceUISchemas | PUT /api/v1/meta/uischemas/{id} | Replace a UI Schema |
UISchemasResponseObject CreateUISchema (CreateUISchema uischemabody)
Create a UI Schema
Creates an input for an enrollment form
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class CreateUISchemaExample
{
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 UISchemaApi(config);
var uischemabody = new CreateUISchema(); // CreateUISchema |
try
{
// Create a UI Schema
UISchemasResponseObject result = apiInstance.CreateUISchema(uischemabody);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling UISchemaApi.CreateUISchema: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
uischemabody | CreateUISchema |
- 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]
void DeleteUISchemas (string id)
Delete a UI Schema
Deletes a UI Schema by id
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class DeleteUISchemasExample
{
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 UISchemaApi(config);
var id = uis4a7liocgcRgcxZ0g7; // string | The unique ID of the UI Schema
try
{
// Delete a UI Schema
apiInstance.DeleteUISchemas(id);
}
catch (ApiException e)
{
Debug.Print("Exception when calling UISchemaApi.DeleteUISchemas: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | The unique ID of the UI Schema |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
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]
UISchemasResponseObject GetUISchema (string id)
Retrieve a UI Schema
Retrieves a UI Schema by id
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class GetUISchemaExample
{
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 UISchemaApi(config);
var id = uis4a7liocgcRgcxZ0g7; // string | The unique ID of the UI Schema
try
{
// Retrieve a UI Schema
UISchemasResponseObject result = apiInstance.GetUISchema(id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling UISchemaApi.GetUISchema: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | The unique ID of the UI Schema |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<UISchemasResponseObject> ListUISchemas ()
List all UI Schemas
Lists all UI Schemas in your org
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ListUISchemasExample
{
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 UISchemaApi(config);
try
{
// List all UI Schemas
List<UISchemasResponseObject> result = apiInstance.ListUISchemas().ToListAsync();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling UISchemaApi.ListUISchemas: " + 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]
UISchemasResponseObject ReplaceUISchemas (string id, UpdateUISchema updateUISchemaBody)
Replace a UI Schema
Replaces a UI Schema by id
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ReplaceUISchemasExample
{
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 UISchemaApi(config);
var id = uis4a7liocgcRgcxZ0g7; // string | The unique ID of the UI Schema
var updateUISchemaBody = new UpdateUISchema(); // UpdateUISchema |
try
{
// Replace a UI Schema
UISchemasResponseObject result = apiInstance.ReplaceUISchemas(id, updateUISchemaBody);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling UISchemaApi.ReplaceUISchemas: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | The unique ID of the UI Schema | |
updateUISchemaBody | UpdateUISchema |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
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]