Okta.Sdk.Api.LinkedObjectApi

October 22, 2025 ยท View on GitHub

All URIs are relative to https://subdomain.okta.com

MethodHTTP requestDescription
CreateLinkedObjectDefinitionPOST /api/v1/meta/schemas/user/linkedObjectsCreate a linked object definition
DeleteLinkedObjectDefinitionDELETE /api/v1/meta/schemas/user/linkedObjects/{linkedObjectName}Delete a linked object definition
GetLinkedObjectDefinitionGET /api/v1/meta/schemas/user/linkedObjects/{linkedObjectName}Retrieve a linked object definition
ListLinkedObjectDefinitionsGET /api/v1/meta/schemas/user/linkedObjectsList 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

NameTypeDescriptionNotes
linkedObjectLinkedObject

Return type

LinkedObject

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
201Created-
400Bad Request-
403Forbidden-
409Conflict-
429Too 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

NameTypeDescriptionNotes
linkedObjectNamestringPrimary or Associated name

Return type

void (empty response body)

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
204No Content-
403Forbidden-
404Not Found-
429Too 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

NameTypeDescriptionNotes
linkedObjectNamestringPrimary or Associated name

Return type

LinkedObject

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Success-
403Forbidden-
404Not Found-
429Too 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

List<LinkedObject>

Authorization

apiToken, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Success-
403Forbidden-
429Too Many Requests-

[Back to top] [Back to API list] [Back to Model list] [Back to README]