Okta.Sdk.Api.LinkedObjectApi
October 22, 2025 ยท View on GitHub
All URIs are relative to https://subdomain.okta.com
| Method | HTTP request | Description |
|---|---|---|
| CreateLinkedObjectDefinition | POST /api/v1/meta/schemas/user/linkedObjects | Create a linked object definition |
| DeleteLinkedObjectDefinition | DELETE /api/v1/meta/schemas/user/linkedObjects/{linkedObjectName} | Delete a linked object definition |
| GetLinkedObjectDefinition | GET /api/v1/meta/schemas/user/linkedObjects/{linkedObjectName} | Retrieve a linked object definition |
| ListLinkedObjectDefinitions | GET /api/v1/meta/schemas/user/linkedObjects | List all linked object definitions |
CreateLinkedObjectDefinition
LinkedObject CreateLinkedObjectDefinition (LinkedObject linkedObject)
Create a linked object definition
Creates a Linked Object definition
Example
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class CreateLinkedObjectDefinitionExample
{
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 LinkedObjectApi(config);
var linkedObject = new LinkedObject(); // LinkedObject |
try
{
// Create a linked object definition
LinkedObject result = apiInstance.CreateLinkedObjectDefinition(linkedObject);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling LinkedObjectApi.CreateLinkedObjectDefinition: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| linkedObject | LinkedObject |
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 | - |
| 409 | Conflict | - |
| 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteLinkedObjectDefinition
void DeleteLinkedObjectDefinition (string linkedObjectName)
Delete a linked object definition
Deletes the Linked Object definition specified by either the primary or associated name. The entire definition is removed, regardless of which name that you specify.
Example
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class DeleteLinkedObjectDefinitionExample
{
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 LinkedObjectApi(config);
var linkedObjectName = "linkedObjectName_example"; // string | Primary or Associated name
try
{
// Delete a linked object definition
apiInstance.DeleteLinkedObjectDefinition(linkedObjectName);
}
catch (ApiException e)
{
Debug.Print("Exception when calling LinkedObjectApi.DeleteLinkedObjectDefinition: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| linkedObjectName | string | Primary or Associated name |
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]
GetLinkedObjectDefinition
LinkedObject GetLinkedObjectDefinition (string linkedObjectName)
Retrieve a linked object definition
Retrieves a Linked Object definition
Example
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class GetLinkedObjectDefinitionExample
{
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 LinkedObjectApi(config);
var linkedObjectName = "linkedObjectName_example"; // string | Primary or Associated name
try
{
// Retrieve a linked object definition
LinkedObject result = apiInstance.GetLinkedObjectDefinition(linkedObjectName);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling LinkedObjectApi.GetLinkedObjectDefinition: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| linkedObjectName | string | Primary or Associated name |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| 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]
ListLinkedObjectDefinitions
List<LinkedObject> ListLinkedObjectDefinitions ()
List all linked object definitions
Lists all Linked Object definitions
Example
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ListLinkedObjectDefinitionsExample
{
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 LinkedObjectApi(config);
try
{
// List all linked object definitions
List<LinkedObject> result = apiInstance.ListLinkedObjectDefinitions().ToListAsync();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling LinkedObjectApi.ListLinkedObjectDefinitions: " + 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 | Success | - |
| 403 | Forbidden | - |
| 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]