Okta.Sdk.Api.GroupPushMappingApi

October 22, 2025 ยท View on GitHub

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

MethodHTTP requestDescription
CreateGroupPushMappingPOST /api/v1/apps/{appId}/group-push/mappingsCreate a group push mapping
DeleteGroupPushMappingDELETE /api/v1/apps/{appId}/group-push/mappings/{mappingId}Delete a group push mapping
GetGroupPushMappingGET /api/v1/apps/{appId}/group-push/mappings/{mappingId}Retrieve a group push mapping
ListGroupPushMappingsGET /api/v1/apps/{appId}/group-push/mappingsList all group push mappings
UpdateGroupPushMappingPATCH /api/v1/apps/{appId}/group-push/mappings/{mappingId}Update a group push mapping

CreateGroupPushMapping

GroupPushMapping CreateGroupPushMapping (string appId, CreateGroupPushMappingRequest body)

Create a group push mapping

Creates or links a group push mapping. Note: Either targetGroupId or targetGroupName must be provided, but not both. If targetGroupId is provided, it links to an existing group. If targetGroupName is provided, it creates a new group.

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class CreateGroupPushMappingExample
    {
        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 GroupPushMappingApi(config);
            var appId = 0oafxqCAJWWGELFTYASJ;  // string | Application ID
            var body = new CreateGroupPushMappingRequest(); // CreateGroupPushMappingRequest | 

            try
            {
                // Create a group push mapping
                GroupPushMapping result = apiInstance.CreateGroupPushMapping(appId, body);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling GroupPushMappingApi.CreateGroupPushMapping: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
appIdstringApplication ID
bodyCreateGroupPushMappingRequest

Return type

GroupPushMapping

Authorization

apiToken, oauth2

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
201Created-
400Bad Request-
401Unauthorized-
403Forbidden-
429Too Many Requests-

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

DeleteGroupPushMapping

void DeleteGroupPushMapping (string appId, string mappingId, bool deleteTargetGroup)

Delete a group push mapping

Deletes a specific group push mapping. The group push mapping must be in an INACTIVE state.

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class DeleteGroupPushMappingExample
    {
        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 GroupPushMappingApi(config);
            var appId = 0oafxqCAJWWGELFTYASJ;  // string | Application ID
            var mappingId = gPm00000000000000000;  // string | Group push mapping ID
            var deleteTargetGroup = false;  // bool | If set to `true`, the target group is also deleted. If set to `false`, the target group isn't deleted. (default to false)

            try
            {
                // Delete a group push mapping
                apiInstance.DeleteGroupPushMapping(appId, mappingId, deleteTargetGroup);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling GroupPushMappingApi.DeleteGroupPushMapping: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
appIdstringApplication ID
mappingIdstringGroup push mapping ID
deleteTargetGroupboolIf set to `true`, the target group is also deleted. If set to `false`, the target group isn't deleted.[default to false]

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-
401Unauthorized-
403Forbidden-
404Not Found-
429Too Many Requests-

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

GetGroupPushMapping

GroupPushMapping GetGroupPushMapping (string appId, string mappingId)

Retrieve a group push mapping

Retrieves a group push mapping by ID

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class GetGroupPushMappingExample
    {
        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 GroupPushMappingApi(config);
            var appId = 0oafxqCAJWWGELFTYASJ;  // string | Application ID
            var mappingId = gPm00000000000000000;  // string | Group push mapping ID

            try
            {
                // Retrieve a group push mapping
                GroupPushMapping result = apiInstance.GetGroupPushMapping(appId, mappingId);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling GroupPushMappingApi.GetGroupPushMapping: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
appIdstringApplication ID
mappingIdstringGroup push mapping ID

Return type

GroupPushMapping

Authorization

apiToken, oauth2

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200OK-
401Unauthorized-
403Forbidden-
404Not Found-
429Too Many Requests-

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

ListGroupPushMappings

List<GroupPushMapping> ListGroupPushMappings (string appId, string after = null, int? limit = null, string lastUpdated = null, string sourceGroupId = null, GroupPushMappingStatus? status = null)

List all group push mappings

Lists all group push mappings with pagination support

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class ListGroupPushMappingsExample
    {
        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 GroupPushMappingApi(config);
            var appId = 0oafxqCAJWWGELFTYASJ;  // string | Application ID
            var after = "after_example";  // string | Specifies the pagination cursor for the next page of mappings (optional) 
            var limit = 100;  // int? | Specifies the number of results returned (optional)  (default to 100)
            var lastUpdated = 2025-01-01T00:00:00Z;  // string | Filters group push mappings by last updated date. The `lastUpdated` parameter supports the following format: `YYYY-MM-DDTHH:mm:ssZ`. This filters mappings updated on or after the specified date and time in UTC.  If you don't specify a value, all group push mappings are returned. (optional) 
            var sourceGroupId = 00g00000000000000000;  // string | Filters group push mappings by source group ID. If you don't specify a value, all group push mappings are returned. (optional) 
            var status = (GroupPushMappingStatus) "ACTIVE";  // GroupPushMappingStatus? | Filters group push mappings by status. If you don't specify a value, all group push mappings are returned. (optional) 

            try
            {
                // List all group push mappings
                List<GroupPushMapping> result = apiInstance.ListGroupPushMappings(appId, after, limit, lastUpdated, sourceGroupId, status).ToListAsync();
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling GroupPushMappingApi.ListGroupPushMappings: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
appIdstringApplication ID
afterstringSpecifies the pagination cursor for the next page of mappings[optional]
limitint?Specifies the number of results returned[optional] [default to 100]
lastUpdatedstringFilters group push mappings by last updated date. The `lastUpdated` parameter supports the following format: `YYYY-MM-DDTHH:mm:ssZ`. This filters mappings updated on or after the specified date and time in UTC. If you don't specify a value, all group push mappings are returned.[optional]
sourceGroupIdstringFilters group push mappings by source group ID. If you don't specify a value, all group push mappings are returned.[optional]
statusGroupPushMappingStatus?Filters group push mappings by status. If you don't specify a value, all group push mappings are returned.[optional]

Return type

List<GroupPushMapping>

Authorization

apiToken, oauth2

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200OK-
401Unauthorized-
403Forbidden-
429Too Many Requests-

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

UpdateGroupPushMapping

GroupPushMapping UpdateGroupPushMapping (string appId, string mappingId, UpdateGroupPushMappingRequest body)

Update a group push mapping

Updates the status of a group push mapping

Example

using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;

namespace Example
{
    public class UpdateGroupPushMappingExample
    {
        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 GroupPushMappingApi(config);
            var appId = 0oafxqCAJWWGELFTYASJ;  // string | Application ID
            var mappingId = gPm00000000000000000;  // string | Group push mapping ID
            var body = new UpdateGroupPushMappingRequest(); // UpdateGroupPushMappingRequest | 

            try
            {
                // Update a group push mapping
                GroupPushMapping result = apiInstance.UpdateGroupPushMapping(appId, mappingId, body);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling GroupPushMappingApi.UpdateGroupPushMapping: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

NameTypeDescriptionNotes
appIdstringApplication ID
mappingIdstringGroup push mapping ID
bodyUpdateGroupPushMappingRequest

Return type

GroupPushMapping

Authorization

apiToken, oauth2

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Success-
400Bad Request-
401Unauthorized-
403Forbidden-
404Not Found-
429Too Many Requests-

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