diff --git a/.github/ISSUE_TEMPLATE/ask-question.yml b/.github/ISSUE_TEMPLATE/ask-question.yml
index 3da173f..6a3c282 100644
--- a/.github/ISSUE_TEMPLATE/ask-question.yml
+++ b/.github/ISSUE_TEMPLATE/ask-question.yml
@@ -1,7 +1,7 @@
name: 🙋♂️ Ask a question
description: Tell us what's on your mind
-title: "[question]: "
-labels: ["triage"]
+title: "[Question]: "
+labels: ["Question"]
body:
- type: markdown
attributes:
@@ -22,4 +22,4 @@ body:
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/OneSignal/api/blob/main/CONTRIBUTING.md)
options:
- label: I agree to follow this project's Code of Conduct
- required: true
\ No newline at end of file
+ required: true
diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml
index f274813..f99d9f6 100644
--- a/.github/ISSUE_TEMPLATE/bug-report.yml
+++ b/.github/ISSUE_TEMPLATE/bug-report.yml
@@ -1,7 +1,7 @@
name: 🪳 Bug report
description: File a bug report
title: "[Bug]: "
-labels: ["bug", "triage"]
+labels: ["Bug"]
body:
- type: markdown
attributes:
@@ -48,4 +48,4 @@ body:
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/OneSignal/api/blob/main/CONTRIBUTING.md)
options:
- label: I agree to follow this project's Code of Conduct
- required: true
\ No newline at end of file
+ required: true
diff --git a/.github/ISSUE_TEMPLATE/general-feedback.yml b/.github/ISSUE_TEMPLATE/general-feedback.yml
index e632759..704514e 100644
--- a/.github/ISSUE_TEMPLATE/general-feedback.yml
+++ b/.github/ISSUE_TEMPLATE/general-feedback.yml
@@ -1,7 +1,7 @@
name: 📣 General feedback
description: Tell us what's on your mind
-title: "[Bug]: "
-labels: ["triage"]
+title: "[Feedback]: "
+labels: ["Feedback"]
body:
- type: markdown
attributes:
@@ -22,4 +22,4 @@ body:
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/OneSignal/api/blob/main/CONTRIBUTING.md)
options:
- label: I agree to follow this project's Code of Conduct
- required: true
\ No newline at end of file
+ required: true
diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml
new file mode 100644
index 0000000..69960fe
--- /dev/null
+++ b/.github/workflows/project.yml
@@ -0,0 +1,17 @@
+name: Add issues to project
+
+on:
+ issues:
+ types:
+ - opened
+
+jobs:
+ add-to-project:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Add issue to project
+ uses: actions/add-to-project@v1.0.2
+ with:
+ # SDK Server Project
+ project-url: https://github.com/orgs/OneSignal/projects/11
+ github-token: ${{ secrets.GH_PROJECTS_TOKEN }}
diff --git a/README.md b/README.md
index 36383bb..a2164b6 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
-- API version: 1.4.0
-- SDK version: 2.2.0
+- API version: 5.0.1
+- SDK version: 5.0.0-beta1
- Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen
For more information, please visit [https://onesignal.com](https://onesignal.com)
@@ -73,7 +73,7 @@ namespace Example
// that require the OneSignal User Auth Key.
var userConfig = new Configuration();
userConfig.BasePath = "https://api.onesignal.com";
- userConfig.AccessToken = "ORGANIZATION_KEY"; // Organization key is only required for creating new apps and other top-level endpoints
+ userConfig.AccessToken = "USER_AUTH_KEY";
var userInstance = new DefaultApi(userConfig);
@@ -96,7 +96,7 @@ namespace Example
// that require the OneSignal App REST API Key.
var appConfig = new Configuration();
appConfig.BasePath = "https://api.onesignal.com";
- appConfig.AccessToken = "REST_API_KEY"; // App REST API key required for most endpoints
+ appConfig.AccessToken = "REST_API_KEY";
var appInstance = new DefaultApi(appConfig);
@@ -126,41 +126,34 @@ All URIs are relative to *https://api.onesignal.com*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
-*DefaultApi* | [**BeginLiveActivity**](docs/DefaultApi.md#beginliveactivity) | **POST** /apps/{app_id}/live_activities/{activity_id}/token | Start Live Activity
*DefaultApi* | [**CancelNotification**](docs/DefaultApi.md#cancelnotification) | **DELETE** /notifications/{notification_id} | Stop a scheduled or currently outgoing notification
+*DefaultApi* | [**CreateAlias**](docs/DefaultApi.md#createalias) | **PATCH** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity |
+*DefaultApi* | [**CreateAliasBySubscription**](docs/DefaultApi.md#createaliasbysubscription) | **PATCH** /apps/{app_id}/subscriptions/{subscription_id}/user/identity |
*DefaultApi* | [**CreateApp**](docs/DefaultApi.md#createapp) | **POST** /apps | Create an app
*DefaultApi* | [**CreateNotification**](docs/DefaultApi.md#createnotification) | **POST** /notifications | Create notification
-*DefaultApi* | [**CreatePlayer**](docs/DefaultApi.md#createplayer) | **POST** /players | Add a device
-*DefaultApi* | [**CreateSegments**](docs/DefaultApi.md#createsegments) | **POST** /apps/{app_id}/segments | Create Segments
+*DefaultApi* | [**CreateSegment**](docs/DefaultApi.md#createsegment) | **POST** /apps/{app_id}/segments | Create Segment
*DefaultApi* | [**CreateSubscription**](docs/DefaultApi.md#createsubscription) | **POST** /apps/{app_id}/users/by/{alias_label}/{alias_id}/subscriptions |
*DefaultApi* | [**CreateUser**](docs/DefaultApi.md#createuser) | **POST** /apps/{app_id}/users |
*DefaultApi* | [**DeleteAlias**](docs/DefaultApi.md#deletealias) | **DELETE** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity/{alias_label_to_delete} |
-*DefaultApi* | [**DeletePlayer**](docs/DefaultApi.md#deleteplayer) | **DELETE** /players/{player_id} | Delete a user record
-*DefaultApi* | [**DeleteSegments**](docs/DefaultApi.md#deletesegments) | **DELETE** /apps/{app_id}/segments/{segment_id} | Delete Segments
+*DefaultApi* | [**DeleteSegment**](docs/DefaultApi.md#deletesegment) | **DELETE** /apps/{app_id}/segments/{segment_id} | Delete Segment
*DefaultApi* | [**DeleteSubscription**](docs/DefaultApi.md#deletesubscription) | **DELETE** /apps/{app_id}/subscriptions/{subscription_id} |
*DefaultApi* | [**DeleteUser**](docs/DefaultApi.md#deleteuser) | **DELETE** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
-*DefaultApi* | [**EndLiveActivity**](docs/DefaultApi.md#endliveactivity) | **DELETE** /apps/{app_id}/live_activities/{activity_id}/token/{subscription_id} | Stop Live Activity
*DefaultApi* | [**ExportEvents**](docs/DefaultApi.md#exportevents) | **POST** /notifications/{notification_id}/export_events?app_id={app_id} | Export CSV of Events
-*DefaultApi* | [**ExportPlayers**](docs/DefaultApi.md#exportplayers) | **POST** /players/csv_export?app_id={app_id} | Export CSV of Players
-*DefaultApi* | [**FetchAliases**](docs/DefaultApi.md#fetchaliases) | **GET** /apps/{app_id}/subscriptions/{subscription_id}/user/identity |
-*DefaultApi* | [**FetchUser**](docs/DefaultApi.md#fetchuser) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
-*DefaultApi* | [**FetchUserIdentity**](docs/DefaultApi.md#fetchuseridentity) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity |
+*DefaultApi* | [**ExportSubscriptions**](docs/DefaultApi.md#exportsubscriptions) | **POST** /players/csv_export?app_id={app_id} | Export CSV of Subscriptions
+*DefaultApi* | [**GetAliases**](docs/DefaultApi.md#getaliases) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity |
+*DefaultApi* | [**GetAliasesBySubscription**](docs/DefaultApi.md#getaliasesbysubscription) | **GET** /apps/{app_id}/subscriptions/{subscription_id}/user/identity |
*DefaultApi* | [**GetApp**](docs/DefaultApi.md#getapp) | **GET** /apps/{app_id} | View an app
*DefaultApi* | [**GetApps**](docs/DefaultApi.md#getapps) | **GET** /apps | View apps
-*DefaultApi* | [**GetEligibleIams**](docs/DefaultApi.md#geteligibleiams) | **GET** /apps/{app_id}/subscriptions/{subscription_id}/iams |
*DefaultApi* | [**GetNotification**](docs/DefaultApi.md#getnotification) | **GET** /notifications/{notification_id} | View notification
*DefaultApi* | [**GetNotificationHistory**](docs/DefaultApi.md#getnotificationhistory) | **POST** /notifications/{notification_id}/history | Notification History
*DefaultApi* | [**GetNotifications**](docs/DefaultApi.md#getnotifications) | **GET** /notifications | View notifications
*DefaultApi* | [**GetOutcomes**](docs/DefaultApi.md#getoutcomes) | **GET** /apps/{app_id}/outcomes | View Outcomes
-*DefaultApi* | [**GetPlayer**](docs/DefaultApi.md#getplayer) | **GET** /players/{player_id} | View device
-*DefaultApi* | [**GetPlayers**](docs/DefaultApi.md#getplayers) | **GET** /players | View devices
-*DefaultApi* | [**IdentifyUserByAlias**](docs/DefaultApi.md#identifyuserbyalias) | **PATCH** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity |
-*DefaultApi* | [**IdentifyUserBySubscriptionId**](docs/DefaultApi.md#identifyuserbysubscriptionid) | **PATCH** /apps/{app_id}/subscriptions/{subscription_id}/user/identity |
+*DefaultApi* | [**GetSegments**](docs/DefaultApi.md#getsegments) | **GET** /apps/{app_id}/segments | Get Segments
+*DefaultApi* | [**GetUser**](docs/DefaultApi.md#getuser) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
*DefaultApi* | [**TransferSubscription**](docs/DefaultApi.md#transfersubscription) | **PATCH** /apps/{app_id}/subscriptions/{subscription_id}/owner |
+*DefaultApi* | [**UnsubscribeEmailWithToken**](docs/DefaultApi.md#unsubscribeemailwithtoken) | **POST** /apps/{app_id}/notifications/{notification_id}/unsubscribe | Unsubscribe with token
*DefaultApi* | [**UpdateApp**](docs/DefaultApi.md#updateapp) | **PUT** /apps/{app_id} | Update an app
*DefaultApi* | [**UpdateLiveActivity**](docs/DefaultApi.md#updateliveactivity) | **POST** /apps/{app_id}/live_activities/{activity_id}/notifications | Update a Live Activity via Push
-*DefaultApi* | [**UpdatePlayer**](docs/DefaultApi.md#updateplayer) | **PUT** /players/{player_id} | Edit device
-*DefaultApi* | [**UpdatePlayerTags**](docs/DefaultApi.md#updateplayertags) | **PUT** /apps/{app_id}/users/{external_user_id} | Edit tags with external user id
*DefaultApi* | [**UpdateSubscription**](docs/DefaultApi.md#updatesubscription) | **PATCH** /apps/{app_id}/subscriptions/{subscription_id} |
*DefaultApi* | [**UpdateUser**](docs/DefaultApi.md#updateuser) | **PATCH** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
@@ -172,37 +165,25 @@ Class | Method | HTTP request | Description
- [Model.BasicNotification](docs/BasicNotification.md)
- [Model.BasicNotificationAllOf](docs/BasicNotificationAllOf.md)
- [Model.BasicNotificationAllOfAndroidBackgroundLayout](docs/BasicNotificationAllOfAndroidBackgroundLayout.md)
- - [Model.BeginLiveActivityRequest](docs/BeginLiveActivityRequest.md)
- [Model.Button](docs/Button.md)
- - [Model.CancelNotificationSuccessResponse](docs/CancelNotificationSuccessResponse.md)
- [Model.CreateNotificationSuccessResponse](docs/CreateNotificationSuccessResponse.md)
- - [Model.CreatePlayerSuccessResponse](docs/CreatePlayerSuccessResponse.md)
- [Model.CreateSegmentConflictResponse](docs/CreateSegmentConflictResponse.md)
- [Model.CreateSegmentSuccessResponse](docs/CreateSegmentSuccessResponse.md)
- - [Model.CreateSubscriptionRequestBody](docs/CreateSubscriptionRequestBody.md)
- [Model.CreateUserConflictResponse](docs/CreateUserConflictResponse.md)
- [Model.CreateUserConflictResponseErrorsInner](docs/CreateUserConflictResponseErrorsInner.md)
- [Model.CreateUserConflictResponseErrorsItemsMeta](docs/CreateUserConflictResponseErrorsItemsMeta.md)
- - [Model.DeletePlayerNotFoundResponse](docs/DeletePlayerNotFoundResponse.md)
- - [Model.DeletePlayerSuccessResponse](docs/DeletePlayerSuccessResponse.md)
- - [Model.DeleteSegmentNotFoundResponse](docs/DeleteSegmentNotFoundResponse.md)
- - [Model.DeleteSegmentSuccessResponse](docs/DeleteSegmentSuccessResponse.md)
- [Model.DeliveryData](docs/DeliveryData.md)
- [Model.ExportEventsSuccessResponse](docs/ExportEventsSuccessResponse.md)
- - [Model.ExportPlayersRequestBody](docs/ExportPlayersRequestBody.md)
- - [Model.ExportPlayersSuccessResponse](docs/ExportPlayersSuccessResponse.md)
+ - [Model.ExportSubscriptionsRequestBody](docs/ExportSubscriptionsRequestBody.md)
+ - [Model.ExportSubscriptionsSuccessResponse](docs/ExportSubscriptionsSuccessResponse.md)
- [Model.Filter](docs/Filter.md)
- - [Model.FilterExpressions](docs/FilterExpressions.md)
+ - [Model.FilterExpression](docs/FilterExpression.md)
- [Model.GenericError](docs/GenericError.md)
- - [Model.GenericErrorErrorsInner](docs/GenericErrorErrorsInner.md)
- - [Model.GetNotificationRequestBody](docs/GetNotificationRequestBody.md)
- - [Model.InlineResponse200](docs/InlineResponse200.md)
- - [Model.InlineResponse2003](docs/InlineResponse2003.md)
- - [Model.InlineResponse201](docs/InlineResponse201.md)
- - [Model.InlineResponse202](docs/InlineResponse202.md)
- - [Model.InvalidIdentifierError](docs/InvalidIdentifierError.md)
+ - [Model.GenericSuccessBoolResponse](docs/GenericSuccessBoolResponse.md)
+ - [Model.GetNotificationHistoryRequestBody](docs/GetNotificationHistoryRequestBody.md)
+ - [Model.GetSegmentsSuccessResponse](docs/GetSegmentsSuccessResponse.md)
+ - [Model.LanguageStringMap](docs/LanguageStringMap.md)
- [Model.Notification](docs/Notification.md)
- - [Model.Notification200Errors](docs/Notification200Errors.md)
- [Model.NotificationAllOf](docs/NotificationAllOf.md)
- [Model.NotificationHistorySuccessResponse](docs/NotificationHistorySuccessResponse.md)
- [Model.NotificationSlice](docs/NotificationSlice.md)
@@ -215,42 +196,36 @@ Class | Method | HTTP request | Description
- [Model.PlatformDeliveryData](docs/PlatformDeliveryData.md)
- [Model.PlatformDeliveryDataEmailAllOf](docs/PlatformDeliveryDataEmailAllOf.md)
- [Model.PlatformDeliveryDataSmsAllOf](docs/PlatformDeliveryDataSmsAllOf.md)
- - [Model.Player](docs/Player.md)
- - [Model.PlayerNotificationTarget](docs/PlayerNotificationTarget.md)
- - [Model.PlayerNotificationTargetIncludeAliases](docs/PlayerNotificationTargetIncludeAliases.md)
- - [Model.PlayerSlice](docs/PlayerSlice.md)
+ - [Model.PropertiesBody](docs/PropertiesBody.md)
- [Model.PropertiesDeltas](docs/PropertiesDeltas.md)
- [Model.PropertiesObject](docs/PropertiesObject.md)
- [Model.Purchase](docs/Purchase.md)
- - [Model.RateLimiterError](docs/RateLimiterError.md)
+ - [Model.RateLimitError](docs/RateLimitError.md)
- [Model.Segment](docs/Segment.md)
+ - [Model.SegmentData](docs/SegmentData.md)
- [Model.SegmentNotificationTarget](docs/SegmentNotificationTarget.md)
- - [Model.StringMap](docs/StringMap.md)
- - [Model.SubscriptionObject](docs/SubscriptionObject.md)
+ - [Model.Subscription](docs/Subscription.md)
+ - [Model.SubscriptionBody](docs/SubscriptionBody.md)
+ - [Model.SubscriptionNotificationTarget](docs/SubscriptionNotificationTarget.md)
- [Model.TransferSubscriptionRequestBody](docs/TransferSubscriptionRequestBody.md)
- [Model.UpdateLiveActivityRequest](docs/UpdateLiveActivityRequest.md)
- [Model.UpdateLiveActivitySuccessResponse](docs/UpdateLiveActivitySuccessResponse.md)
- - [Model.UpdatePlayerSuccessResponse](docs/UpdatePlayerSuccessResponse.md)
- - [Model.UpdatePlayerTagsRequestBody](docs/UpdatePlayerTagsRequestBody.md)
- - [Model.UpdatePlayerTagsSuccessResponse](docs/UpdatePlayerTagsSuccessResponse.md)
- - [Model.UpdateSubscriptionRequestBody](docs/UpdateSubscriptionRequestBody.md)
- [Model.UpdateUserRequest](docs/UpdateUserRequest.md)
- [Model.User](docs/User.md)
- - [Model.UserIdentityRequestBody](docs/UserIdentityRequestBody.md)
- - [Model.UserIdentityResponse](docs/UserIdentityResponse.md)
- - [Model.UserSubscriptionOptions](docs/UserSubscriptionOptions.md)
+ - [Model.UserIdentityBody](docs/UserIdentityBody.md)
+ - [Model.WebButton](docs/WebButton.md)
## Documentation for Authorization
-
-### app_key
+
+### rest_api_key
- **Type**: Bearer Authentication
-
-### user_key
+
+### user_auth_key
- **Type**: Bearer Authentication
diff --git a/docs/BasicNotification.md b/docs/BasicNotification.md
index 07047ac..b8d93a3 100644
--- a/docs/BasicNotification.md
+++ b/docs/BasicNotification.md
@@ -6,17 +6,16 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**IncludedSegments** | **List<string>** | The segment names you want to target. Users in these segments will receive a notification. This targeting parameter is only compatible with excluded_segments. Example: [\"Active Users\", \"Inactive Users\"] | [optional]
**ExcludedSegments** | **List<string>** | Segment that will be excluded when sending. Users in these segments will not receive a notification, even if they were included in included_segments. This targeting parameter is only compatible with included_segments. Example: [\"Active Users\", \"Inactive Users\"] | [optional]
-**IncludePlayerIds** | **List<string>** | Specific playerids to send your notification to. _Does not require API Auth Key. Do not combine with other targeting parameters. Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call | [optional]
-**IncludeExternalUserIds** | **List<string>** | Target specific devices by custom user IDs assigned via API. Not compatible with any other targeting parameters Example: [\"custom-id-assigned-by-api\"] REQUIRED: REST API Key Authentication Limit of 2,000 entries per REST API call. Note: If targeting push, email, or sms subscribers with same ids, use with channel_for_external_user_ids to indicate you are sending a push or email or sms. | [optional]
+**IncludeSubscriptionIds** | **List<string>** | Specific subscription ids to send your notification to. _Does not require API Auth Key._ Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call | [optional]
**IncludeEmailTokens** | **List<string>** | Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts Limit of 2,000 entries per REST API call | [optional]
**IncludePhoneNumbers** | **List<string>** | Recommended for Sending SMS - Target specific phone numbers. The phone number should be in the E.164 format. Phone number should be an existing subscriber on OneSignal. Refer our docs to learn how to add phone numbers to OneSignal. Example phone number: +1999999999 Limit of 2,000 entries per REST API call | [optional]
-**IncludeIosTokens** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using iOS device tokens. Warning: Only works with Production tokens. All non-alphanumeric characters must be removed from each token. If a token does not correspond to an existing user, a new user will be created. Example: ce777617da7f548fe7a9ab6febb56cf39fba6d38203... Limit of 2,000 entries per REST API call | [optional]
-**IncludeWpWnsUris** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Windows URIs. If a token does not correspond to an existing user, a new user will be created. Example: http://s.notify.live.net/u/1/bn1/HmQAAACPaLDr-... Limit of 2,000 entries per REST API call | [optional]
-**IncludeAmazonRegIds** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Amazon ADM registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: amzn1.adm-registration.v1.XpvSSUk0Rc3hTVVV... Limit of 2,000 entries per REST API call | [optional]
-**IncludeChromeRegIds** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Chrome App registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
-**IncludeChromeWebRegIds** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Chrome Web Push registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
-**IncludeAndroidRegIds** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
-**IncludeAliases** | [**PlayerNotificationTargetIncludeAliases**](PlayerNotificationTargetIncludeAliases.md) | | [optional]
+**IncludeIosTokens** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using iOS device tokens. Warning: Only works with Production tokens. All non-alphanumeric characters must be removed from each token. If a token does not correspond to an existing user, a new user will be created. Example: ce777617da7f548fe7a9ab6febb56cf39fba6d38203... Limit of 2,000 entries per REST API call | [optional]
+**IncludeWpWnsUris** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Windows URIs. If a token does not correspond to an existing user, a new user will be created. Example: http://s.notify.live.net/u/1/bn1/HmQAAACPaLDr-... Limit of 2,000 entries per REST API call | [optional]
+**IncludeAmazonRegIds** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Amazon ADM registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: amzn1.adm-registration.v1.XpvSSUk0Rc3hTVVV... Limit of 2,000 entries per REST API call | [optional]
+**IncludeChromeRegIds** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Chrome App registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
+**IncludeChromeWebRegIds** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Chrome Web Push registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
+**IncludeAndroidRegIds** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
+**IncludeAliases** | **Dictionary<string, List<string>>** | Target specific users by aliases assigned via API. An alias can be an external_id, onesignal_id, or a custom alias. Accepts an object where keys are alias labels and values are arrays of alias IDs to include Example usage: { \"external_id\": [\"exId1\", \"extId2\"], \"internal_label\": [\"id1\", \"id2\"] } Not compatible with any other targeting parameters. REQUIRED: REST API Key Authentication Limit of 2,000 entries per REST API call Note: If targeting push, email, or sms subscribers with same ids, use with target_channel to indicate you are sending a push or email or sms. | [optional]
**TargetChannel** | **string** | | [optional]
**Id** | **string** | | [optional]
**Value** | **int** | | [optional] [readonly]
@@ -32,13 +31,12 @@ Name | Type | Description | Notes
**IsWPWNS** | **bool?** | Indicates whether to send to all devices registered under your app's Windows platform. | [optional]
**IsAdm** | **bool?** | Indicates whether to send to all devices registered under your app's Amazon Fire platform. | [optional]
**IsChrome** | **bool?** | This flag is not used for web push Please see isChromeWeb for sending to web push users. This flag only applies to Google Chrome Apps & Extensions. Indicates whether to send to all devices registered under your app's Google Chrome Apps & Extension platform. | [optional]
-**ChannelForExternalUserIds** | **string** | Indicates if the message type when targeting with include_external_user_ids for cases where an email, sms, and/or push subscribers have the same external user id. Example: Use the string \"push\" to indicate you are sending a push notification or the string \"email\"for sending emails or \"sms\"for sending SMS. | [optional]
**AppId** | **string** | Required: Your OneSignal Application ID, which can be found in Keys & IDs. It is a UUID and looks similar to 8250eaf6-1a58-489e-b136-7c74a864b434. |
**ExternalId** | **string** | [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional]
**IdempotencyKey** | **string** | Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional]
-**Contents** | [**StringMap**](StringMap.md) | | [optional]
-**Headings** | [**StringMap**](StringMap.md) | | [optional]
-**Subtitle** | [**StringMap**](StringMap.md) | | [optional]
+**Contents** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional]
+**Headings** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional]
+**Subtitle** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional]
**Data** | **Object** | Channel: Push Notifications Platform: Huawei A custom map of data that is passed back to your app. Same as using Additional Data within the dashboard. Can use up to 2048 bytes of data. Example: {\"abc\": 123, \"foo\": \"bar\", \"event_performed\": true, \"amount\": 12.1} | [optional]
**HuaweiMsgType** | **string** | Channel: Push Notifications Platform: Huawei Use \"data\" or \"message\" depending on the type of notification you are sending. More details in Data & Background Notifications. | [optional]
**Url** | **string** | Channel: Push Notifications Platform: All The URL to open in the browser when a user clicks on the notification. Note: iOS needs https or updated NSAppTransportSecurity in plist This field supports inline substitutions. Omit if including web_url or app_url Example: https://onesignal.com | [optional]
@@ -55,7 +53,7 @@ Name | Type | Description | Notes
**ChromeBigPicture** | **string** | Channel: Push Notifications Platform: ChromeApp Large picture to display below the notification text. Must be a local URL. | [optional]
**ChromeWebImage** | **string** | Channel: Push Notifications Platform: Chrome 56+ Sets the web push notification's large image to be shown below the notification's title and text. Please see Web Push Notification Icons. | [optional]
**Buttons** | [**List<Button>**](Button.md) | Channel: Push Notifications Platform: iOS 8.0+, Android 4.1+, and derivatives like Amazon Buttons to add to the notification. Icon only works for Android. Buttons show in reverse order of array position i.e. Last item in array shows as first button on device. Example: [{\"id\": \"id2\", \"text\": \"second button\", \"icon\": \"ic_menu_share\"}, {\"id\": \"id1\", \"text\": \"first button\", \"icon\": \"ic_menu_send\"}] | [optional]
-**WebButtons** | [**List<Button>**](Button.md) | Channel: Push Notifications Platform: Chrome 48+ Add action buttons to the notification. The id field is required. Example: [{\"id\": \"like-button\", \"text\": \"Like\", \"icon\": \"http://i.imgur.com/N8SN8ZS.png\", \"url\": \"https://yoursite.com\"}, {\"id\": \"read-more-button\", \"text\": \"Read more\", \"icon\": \"http://i.imgur.com/MIxJp1L.png\", \"url\": \"https://yoursite.com\"}] | [optional]
+**WebButtons** | [**List<WebButton>**](WebButton.md) | Channel: Push Notifications Platform: Chrome 48+ Add action buttons to the notification. The id field is required. Example: [{\"id\": \"like-button\", \"text\": \"Like\", \"icon\": \"http://i.imgur.com/N8SN8ZS.png\", \"url\": \"https://yoursite.com\"}, {\"id\": \"read-more-button\", \"text\": \"Read more\", \"icon\": \"http://i.imgur.com/MIxJp1L.png\", \"url\": \"https://yoursite.com\"}] | [optional]
**IosCategory** | **string** | Channel: Push Notifications Platform: iOS Category APS payload, use with registerUserNotificationSettings:categories in your Objective-C / Swift code. Example: calendar category which contains actions like accept and decline iOS 10+ This will trigger your UNNotificationContentExtension whose ID matches this category. | [optional]
**AndroidChannelId** | **string** | Channel: Push Notifications Platform: Android The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it's id. | [optional]
**HuaweiChannelId** | **string** | Channel: Push Notifications Platform: Huawei The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it's id. | [optional]
@@ -101,6 +99,8 @@ Name | Type | Description | Notes
**ThreadId** | **string** | Channel: Push Notifications Platform: iOS 12+ This parameter is supported in iOS 12 and above. It allows you to group related notifications together. If two notifications have the same thread-id, they will both be added to the same group. | [optional]
**SummaryArg** | **string** | Channel: Push Notifications Platform: iOS 12+ When using thread_id to create grouped notifications in iOS 12+, you can also control the summary. For example, a grouped notification can say \"12 more notifications from John Doe\". The summary_arg lets you set the name of the person/thing the notifications are coming from, and will show up as \"X more notifications from summary_arg\" | [optional]
**SummaryArgCount** | **int** | Channel: Push Notifications Platform: iOS 12+ When using thread_id, you can also control the count of the number of notifications in the group. For example, if the group already has 12 notifications, and you send a new notification with summary_arg_count = 2, the new total will be 14 and the summary will be \"14 more notifications from summary_arg\" | [optional]
+**IosRelevanceScore** | **decimal?** | Channel: Push Notifications Platform: iOS 15+ A score to be set per notification to indicate how it should be displayed when grouped. Use a float between 0-1. | [optional]
+**IosInterruptionLevel** | **string** | Channel: Push Notifications Platform: iOS 15+ Focus Modes and Interruption Levels indicate the priority and delivery timing of a notification, to \"interrupt\" the user. Can choose from options: ['active', 'passive', 'time_sensitive', 'critical']. Default is active. | [optional]
**EmailSubject** | **string** | Channel: Email Required. The subject of the email. | [optional]
**EmailBody** | **string** | Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. | [optional]
**EmailFromName** | **string** | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional]
@@ -109,7 +109,7 @@ Name | Type | Description | Notes
**IncludeUnsubscribed** | **bool** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional]
**SmsFrom** | **string** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional]
**SmsMediaUrls** | **List<string>** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional]
-**Filters** | [**List<Filter>**](Filter.md) | | [optional]
+**Filters** | [**List<FilterExpression>**](FilterExpression.md) | | [optional]
**CustomData** | **Object** | Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/BasicNotificationAllOf.md b/docs/BasicNotificationAllOf.md
index d04d9c1..da6aa6d 100644
--- a/docs/BasicNotificationAllOf.md
+++ b/docs/BasicNotificationAllOf.md
@@ -18,13 +18,12 @@ Name | Type | Description | Notes
**IsWPWNS** | **bool?** | Indicates whether to send to all devices registered under your app's Windows platform. | [optional]
**IsAdm** | **bool?** | Indicates whether to send to all devices registered under your app's Amazon Fire platform. | [optional]
**IsChrome** | **bool?** | This flag is not used for web push Please see isChromeWeb for sending to web push users. This flag only applies to Google Chrome Apps & Extensions. Indicates whether to send to all devices registered under your app's Google Chrome Apps & Extension platform. | [optional]
-**ChannelForExternalUserIds** | **string** | Indicates if the message type when targeting with include_external_user_ids for cases where an email, sms, and/or push subscribers have the same external user id. Example: Use the string \"push\" to indicate you are sending a push notification or the string \"email\"for sending emails or \"sms\"for sending SMS. | [optional]
**AppId** | **string** | Required: Your OneSignal Application ID, which can be found in Keys & IDs. It is a UUID and looks similar to 8250eaf6-1a58-489e-b136-7c74a864b434. | [optional]
**ExternalId** | **string** | [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional]
**IdempotencyKey** | **string** | Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional]
-**Contents** | [**StringMap**](StringMap.md) | | [optional]
-**Headings** | [**StringMap**](StringMap.md) | | [optional]
-**Subtitle** | [**StringMap**](StringMap.md) | | [optional]
+**Contents** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional]
+**Headings** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional]
+**Subtitle** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional]
**Data** | **Object** | Channel: Push Notifications Platform: Huawei A custom map of data that is passed back to your app. Same as using Additional Data within the dashboard. Can use up to 2048 bytes of data. Example: {\"abc\": 123, \"foo\": \"bar\", \"event_performed\": true, \"amount\": 12.1} | [optional]
**HuaweiMsgType** | **string** | Channel: Push Notifications Platform: Huawei Use \"data\" or \"message\" depending on the type of notification you are sending. More details in Data & Background Notifications. | [optional]
**Url** | **string** | Channel: Push Notifications Platform: All The URL to open in the browser when a user clicks on the notification. Note: iOS needs https or updated NSAppTransportSecurity in plist This field supports inline substitutions. Omit if including web_url or app_url Example: https://onesignal.com | [optional]
@@ -41,7 +40,7 @@ Name | Type | Description | Notes
**ChromeBigPicture** | **string** | Channel: Push Notifications Platform: ChromeApp Large picture to display below the notification text. Must be a local URL. | [optional]
**ChromeWebImage** | **string** | Channel: Push Notifications Platform: Chrome 56+ Sets the web push notification's large image to be shown below the notification's title and text. Please see Web Push Notification Icons. | [optional]
**Buttons** | [**List<Button>**](Button.md) | Channel: Push Notifications Platform: iOS 8.0+, Android 4.1+, and derivatives like Amazon Buttons to add to the notification. Icon only works for Android. Buttons show in reverse order of array position i.e. Last item in array shows as first button on device. Example: [{\"id\": \"id2\", \"text\": \"second button\", \"icon\": \"ic_menu_share\"}, {\"id\": \"id1\", \"text\": \"first button\", \"icon\": \"ic_menu_send\"}] | [optional]
-**WebButtons** | [**List<Button>**](Button.md) | Channel: Push Notifications Platform: Chrome 48+ Add action buttons to the notification. The id field is required. Example: [{\"id\": \"like-button\", \"text\": \"Like\", \"icon\": \"http://i.imgur.com/N8SN8ZS.png\", \"url\": \"https://yoursite.com\"}, {\"id\": \"read-more-button\", \"text\": \"Read more\", \"icon\": \"http://i.imgur.com/MIxJp1L.png\", \"url\": \"https://yoursite.com\"}] | [optional]
+**WebButtons** | [**List<WebButton>**](WebButton.md) | Channel: Push Notifications Platform: Chrome 48+ Add action buttons to the notification. The id field is required. Example: [{\"id\": \"like-button\", \"text\": \"Like\", \"icon\": \"http://i.imgur.com/N8SN8ZS.png\", \"url\": \"https://yoursite.com\"}, {\"id\": \"read-more-button\", \"text\": \"Read more\", \"icon\": \"http://i.imgur.com/MIxJp1L.png\", \"url\": \"https://yoursite.com\"}] | [optional]
**IosCategory** | **string** | Channel: Push Notifications Platform: iOS Category APS payload, use with registerUserNotificationSettings:categories in your Objective-C / Swift code. Example: calendar category which contains actions like accept and decline iOS 10+ This will trigger your UNNotificationContentExtension whose ID matches this category. | [optional]
**AndroidChannelId** | **string** | Channel: Push Notifications Platform: Android The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it's id. | [optional]
**HuaweiChannelId** | **string** | Channel: Push Notifications Platform: Huawei The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it's id. | [optional]
@@ -87,6 +86,8 @@ Name | Type | Description | Notes
**ThreadId** | **string** | Channel: Push Notifications Platform: iOS 12+ This parameter is supported in iOS 12 and above. It allows you to group related notifications together. If two notifications have the same thread-id, they will both be added to the same group. | [optional]
**SummaryArg** | **string** | Channel: Push Notifications Platform: iOS 12+ When using thread_id to create grouped notifications in iOS 12+, you can also control the summary. For example, a grouped notification can say \"12 more notifications from John Doe\". The summary_arg lets you set the name of the person/thing the notifications are coming from, and will show up as \"X more notifications from summary_arg\" | [optional]
**SummaryArgCount** | **int** | Channel: Push Notifications Platform: iOS 12+ When using thread_id, you can also control the count of the number of notifications in the group. For example, if the group already has 12 notifications, and you send a new notification with summary_arg_count = 2, the new total will be 14 and the summary will be \"14 more notifications from summary_arg\" | [optional]
+**IosRelevanceScore** | **decimal?** | Channel: Push Notifications Platform: iOS 15+ A score to be set per notification to indicate how it should be displayed when grouped. Use a float between 0-1. | [optional]
+**IosInterruptionLevel** | **string** | Channel: Push Notifications Platform: iOS 15+ Focus Modes and Interruption Levels indicate the priority and delivery timing of a notification, to \"interrupt\" the user. Can choose from options: ['active', 'passive', 'time_sensitive', 'critical']. Default is active. | [optional]
**EmailSubject** | **string** | Channel: Email Required. The subject of the email. | [optional]
**EmailBody** | **string** | Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. | [optional]
**EmailFromName** | **string** | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional]
@@ -95,7 +96,7 @@ Name | Type | Description | Notes
**IncludeUnsubscribed** | **bool** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional]
**SmsFrom** | **string** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional]
**SmsMediaUrls** | **List<string>** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional]
-**Filters** | [**List<Filter>**](Filter.md) | | [optional]
+**Filters** | [**List<FilterExpression>**](FilterExpression.md) | | [optional]
**CustomData** | **Object** | Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/CreateNotificationSuccessResponse.md b/docs/CreateNotificationSuccessResponse.md
index f9710ca..9898307 100644
--- a/docs/CreateNotificationSuccessResponse.md
+++ b/docs/CreateNotificationSuccessResponse.md
@@ -5,9 +5,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **string** | | [optional]
-**Recipients** | **int** | Estimated number of subscribers targetted by notification. | [optional]
**ExternalId** | **string** | | [optional]
-**Errors** | [**Notification200Errors**](Notification200Errors.md) | | [optional]
+**Errors** | **Object** | Errors include the identifiers that are invalid, or that there are no subscribers. | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/CreatePlayerSuccessResponse.md b/docs/CreatePlayerSuccessResponse.md
deleted file mode 100644
index 1a0edd0..0000000
--- a/docs/CreatePlayerSuccessResponse.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# OneSignalApi.Model.CreatePlayerSuccessResponse
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Success** | **bool** | | [optional]
-**Id** | **string** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/CreateSubscriptionRequestBody.md b/docs/CreateSubscriptionRequestBody.md
deleted file mode 100644
index b28aed6..0000000
--- a/docs/CreateSubscriptionRequestBody.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# OneSignalApi.Model.CreateSubscriptionRequestBody
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Subscription** | [**SubscriptionObject**](SubscriptionObject.md) | | [optional]
-**RetainPreviousOwner** | **bool** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md
index a4d34b8..a7a3817 100644
--- a/docs/DefaultApi.md
+++ b/docs/DefaultApi.md
@@ -4,52 +4,45 @@ All URIs are relative to *https://api.onesignal.com*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**BeginLiveActivity**](DefaultApi.md#beginliveactivity) | **POST** /apps/{app_id}/live_activities/{activity_id}/token | Start Live Activity
[**CancelNotification**](DefaultApi.md#cancelnotification) | **DELETE** /notifications/{notification_id} | Stop a scheduled or currently outgoing notification
+[**CreateAlias**](DefaultApi.md#createalias) | **PATCH** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity |
+[**CreateAliasBySubscription**](DefaultApi.md#createaliasbysubscription) | **PATCH** /apps/{app_id}/subscriptions/{subscription_id}/user/identity |
[**CreateApp**](DefaultApi.md#createapp) | **POST** /apps | Create an app
[**CreateNotification**](DefaultApi.md#createnotification) | **POST** /notifications | Create notification
-[**CreatePlayer**](DefaultApi.md#createplayer) | **POST** /players | Add a device
-[**CreateSegments**](DefaultApi.md#createsegments) | **POST** /apps/{app_id}/segments | Create Segments
+[**CreateSegment**](DefaultApi.md#createsegment) | **POST** /apps/{app_id}/segments | Create Segment
[**CreateSubscription**](DefaultApi.md#createsubscription) | **POST** /apps/{app_id}/users/by/{alias_label}/{alias_id}/subscriptions |
[**CreateUser**](DefaultApi.md#createuser) | **POST** /apps/{app_id}/users |
[**DeleteAlias**](DefaultApi.md#deletealias) | **DELETE** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity/{alias_label_to_delete} |
-[**DeletePlayer**](DefaultApi.md#deleteplayer) | **DELETE** /players/{player_id} | Delete a user record
-[**DeleteSegments**](DefaultApi.md#deletesegments) | **DELETE** /apps/{app_id}/segments/{segment_id} | Delete Segments
+[**DeleteSegment**](DefaultApi.md#deletesegment) | **DELETE** /apps/{app_id}/segments/{segment_id} | Delete Segment
[**DeleteSubscription**](DefaultApi.md#deletesubscription) | **DELETE** /apps/{app_id}/subscriptions/{subscription_id} |
[**DeleteUser**](DefaultApi.md#deleteuser) | **DELETE** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
-[**EndLiveActivity**](DefaultApi.md#endliveactivity) | **DELETE** /apps/{app_id}/live_activities/{activity_id}/token/{subscription_id} | Stop Live Activity
[**ExportEvents**](DefaultApi.md#exportevents) | **POST** /notifications/{notification_id}/export_events?app_id={app_id} | Export CSV of Events
-[**ExportPlayers**](DefaultApi.md#exportplayers) | **POST** /players/csv_export?app_id={app_id} | Export CSV of Players
-[**FetchAliases**](DefaultApi.md#fetchaliases) | **GET** /apps/{app_id}/subscriptions/{subscription_id}/user/identity |
-[**FetchUser**](DefaultApi.md#fetchuser) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
-[**FetchUserIdentity**](DefaultApi.md#fetchuseridentity) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity |
+[**ExportSubscriptions**](DefaultApi.md#exportsubscriptions) | **POST** /players/csv_export?app_id={app_id} | Export CSV of Subscriptions
+[**GetAliases**](DefaultApi.md#getaliases) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity |
+[**GetAliasesBySubscription**](DefaultApi.md#getaliasesbysubscription) | **GET** /apps/{app_id}/subscriptions/{subscription_id}/user/identity |
[**GetApp**](DefaultApi.md#getapp) | **GET** /apps/{app_id} | View an app
[**GetApps**](DefaultApi.md#getapps) | **GET** /apps | View apps
-[**GetEligibleIams**](DefaultApi.md#geteligibleiams) | **GET** /apps/{app_id}/subscriptions/{subscription_id}/iams |
[**GetNotification**](DefaultApi.md#getnotification) | **GET** /notifications/{notification_id} | View notification
[**GetNotificationHistory**](DefaultApi.md#getnotificationhistory) | **POST** /notifications/{notification_id}/history | Notification History
[**GetNotifications**](DefaultApi.md#getnotifications) | **GET** /notifications | View notifications
[**GetOutcomes**](DefaultApi.md#getoutcomes) | **GET** /apps/{app_id}/outcomes | View Outcomes
-[**GetPlayer**](DefaultApi.md#getplayer) | **GET** /players/{player_id} | View device
-[**GetPlayers**](DefaultApi.md#getplayers) | **GET** /players | View devices
-[**IdentifyUserByAlias**](DefaultApi.md#identifyuserbyalias) | **PATCH** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity |
-[**IdentifyUserBySubscriptionId**](DefaultApi.md#identifyuserbysubscriptionid) | **PATCH** /apps/{app_id}/subscriptions/{subscription_id}/user/identity |
+[**GetSegments**](DefaultApi.md#getsegments) | **GET** /apps/{app_id}/segments | Get Segments
+[**GetUser**](DefaultApi.md#getuser) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
[**TransferSubscription**](DefaultApi.md#transfersubscription) | **PATCH** /apps/{app_id}/subscriptions/{subscription_id}/owner |
+[**UnsubscribeEmailWithToken**](DefaultApi.md#unsubscribeemailwithtoken) | **POST** /apps/{app_id}/notifications/{notification_id}/unsubscribe | Unsubscribe with token
[**UpdateApp**](DefaultApi.md#updateapp) | **PUT** /apps/{app_id} | Update an app
[**UpdateLiveActivity**](DefaultApi.md#updateliveactivity) | **POST** /apps/{app_id}/live_activities/{activity_id}/notifications | Update a Live Activity via Push
-[**UpdatePlayer**](DefaultApi.md#updateplayer) | **PUT** /players/{player_id} | Edit device
-[**UpdatePlayerTags**](DefaultApi.md#updateplayertags) | **PUT** /apps/{app_id}/users/{external_user_id} | Edit tags with external user id
[**UpdateSubscription**](DefaultApi.md#updatesubscription) | **PATCH** /apps/{app_id}/subscriptions/{subscription_id} |
[**UpdateUser**](DefaultApi.md#updateuser) | **PATCH** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
-
-# **BeginLiveActivity**
-> void BeginLiveActivity (string appId, string activityId, BeginLiveActivityRequest beginLiveActivityRequest)
+
+# **CancelNotification**
+> GenericSuccessBoolResponse CancelNotification (string appId, string notificationId)
-Start Live Activity
+Stop a scheduled or currently outgoing notification
-Starts a Live Activity
+Used to stop a scheduled or currently outgoing notification
### Example
```csharp
@@ -61,28 +54,28 @@ using OneSignalApi.Model;
namespace Example
{
- public class BeginLiveActivityExample
+ public class CancelNotificationExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
- var appId = "appId_example"; // string | The OneSignal App ID for your app. Available in Keys & IDs.
- var activityId = "activityId_example"; // string | Live Activity record ID
- var beginLiveActivityRequest = new BeginLiveActivityRequest(); // BeginLiveActivityRequest |
+ var appId = "appId_example"; // string |
+ var notificationId = "notificationId_example"; // string |
try
{
- // Start Live Activity
- apiInstance.BeginLiveActivity(appId, activityId, beginLiveActivityRequest);
+ // Stop a scheduled or currently outgoing notification
+ GenericSuccessBoolResponse result = apiInstance.CancelNotification(appId, notificationId);
+ Debug.WriteLine(result);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling DefaultApi.BeginLiveActivity: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.CancelNotification: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -95,40 +88,40 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **appId** | **string**| The OneSignal App ID for your app. Available in Keys & IDs. |
- **activityId** | **string**| Live Activity record ID |
- **beginLiveActivityRequest** | [**BeginLiveActivityRequest**](BeginLiveActivityRequest.md)| |
+ **appId** | **string**| |
+ **notificationId** | **string**| |
### Return type
-void (empty response body)
+[**GenericSuccessBoolResponse**](GenericSuccessBoolResponse.md)
### Authorization
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
- - **Content-Type**: application/json
+ - **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **204** | OK | - |
+| **200** | OK | - |
| **400** | Bad Request | - |
+| **404** | Not Found | - |
| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **CancelNotification**
-> CancelNotificationSuccessResponse CancelNotification (string appId, string notificationId)
+
+# **CreateAlias**
+> UserIdentityBody CreateAlias (string appId, string aliasLabel, string aliasId, UserIdentityBody userIdentityBody)
-Stop a scheduled or currently outgoing notification
-Used to stop a scheduled or currently outgoing notification
+
+Upserts one or more Aliases to an existing User identified by (:alias_label, :alias_id).
### Example
```csharp
@@ -140,28 +133,29 @@ using OneSignalApi.Model;
namespace Example
{
- public class CancelNotificationExample
+ public class CreateAliasExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
var appId = "appId_example"; // string |
- var notificationId = "notificationId_example"; // string |
+ var aliasLabel = "aliasLabel_example"; // string |
+ var aliasId = "aliasId_example"; // string |
+ var userIdentityBody = new UserIdentityBody(); // UserIdentityBody |
try
{
- // Stop a scheduled or currently outgoing notification
- CancelNotificationSuccessResponse result = apiInstance.CancelNotification(appId, notificationId);
+ UserIdentityBody result = apiInstance.CreateAlias(appId, aliasLabel, aliasId, userIdentityBody);
Debug.WriteLine(result);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling DefaultApi.CancelNotification: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.CreateAlias: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -175,19 +169,21 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**appId** | **string**| |
- **notificationId** | **string**| |
+ **aliasLabel** | **string**| |
+ **aliasId** | **string**| |
+ **userIdentityBody** | [**UserIdentityBody**](UserIdentityBody.md)| |
### Return type
-[**CancelNotificationSuccessResponse**](CancelNotificationSuccessResponse.md)
+[**UserIdentityBody**](UserIdentityBody.md)
### Authorization
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
- - **Content-Type**: Not defined
+ - **Content-Type**: application/json
- **Accept**: application/json
@@ -196,17 +192,19 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
+| **404** | Not Found | - |
+| **409** | Conflict | - |
| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **CreateApp**
-> App CreateApp (App app)
+
+# **CreateAliasBySubscription**
+> UserIdentityBody CreateAliasBySubscription (string appId, string subscriptionId, UserIdentityBody userIdentityBody)
-Create an app
-Creates a new OneSignal app
+
+Upserts one or more Aliases for the User identified by :subscription_id.
### Example
```csharp
@@ -218,27 +216,28 @@ using OneSignalApi.Model;
namespace Example
{
- public class CreateAppExample
+ public class CreateAliasBySubscriptionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: user_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
- var app = new App(); // App |
+ var appId = "appId_example"; // string |
+ var subscriptionId = "subscriptionId_example"; // string |
+ var userIdentityBody = new UserIdentityBody(); // UserIdentityBody |
try
{
- // Create an app
- App result = apiInstance.CreateApp(app);
+ UserIdentityBody result = apiInstance.CreateAliasBySubscription(appId, subscriptionId, userIdentityBody);
Debug.WriteLine(result);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling DefaultApi.CreateApp: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.CreateAliasBySubscription: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -251,15 +250,17 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **app** | [**App**](App.md)| |
+ **appId** | **string**| |
+ **subscriptionId** | **string**| |
+ **userIdentityBody** | [**UserIdentityBody**](UserIdentityBody.md)| |
### Return type
-[**App**](App.md)
+[**UserIdentityBody**](UserIdentityBody.md)
### Authorization
-[user_key](../README.md#user_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
@@ -272,17 +273,19 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
+| **404** | Not Found | - |
+| **409** | Conflict | - |
| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **CreateNotification**
-> CreateNotificationSuccessResponse CreateNotification (Notification notification)
+
+# **CreateApp**
+> App CreateApp (App app)
-Create notification
+Create an app
-Sends notifications to your users
+Creates a new OneSignal app
### Example
```csharp
@@ -294,27 +297,27 @@ using OneSignalApi.Model;
namespace Example
{
- public class CreateNotificationExample
+ public class CreateAppExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: user_auth_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
- var notification = new Notification(); // Notification |
+ var app = new App(); // App |
try
{
- // Create notification
- CreateNotificationSuccessResponse result = apiInstance.CreateNotification(notification);
+ // Create an app
+ App result = apiInstance.CreateApp(app);
Debug.WriteLine(result);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling DefaultApi.CreateNotification: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.CreateApp: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -327,15 +330,15 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **notification** | [**Notification**](Notification.md)| |
+ **app** | [**App**](App.md)| |
### Return type
-[**CreateNotificationSuccessResponse**](CreateNotificationSuccessResponse.md)
+[**App**](App.md)
### Authorization
-[app_key](../README.md#app_key)
+[user_auth_key](../README.md#user_auth_key)
### HTTP request headers
@@ -346,19 +349,19 @@ Name | Type | Description | Notes
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | OK, invalid_player_ids, invalid_external_user_ids or No Subscribed Players If a message was successfully created, you will get a 200 response and an id for the notification. If the 200 response contains \"invalid_player_ids\" or \"invalid_external_user_ids\" this will mark devices that exist in the provided app_id but are no longer subscribed. If no id is returned, then a message was not created and the targeted User IDs do not exist under the provided app_id. Any User IDs sent in the request that do not exist under the specified app_id will be ignored. | - |
+| **200** | OK | - |
| **400** | Bad Request | - |
| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **CreatePlayer**
-> CreatePlayerSuccessResponse CreatePlayer (Player player)
+
+# **CreateNotification**
+> CreateNotificationSuccessResponse CreateNotification (Notification notification)
-Add a device
+Create notification
-Register a new device to one of your OneSignal apps 🚧 Don't use this This API endpoint is designed to be used from our open source Mobile and Web Push SDKs. It is not designed for developers to use it directly, unless instructed to do so by OneSignal support. If you use this method instead of our SDKs, many OneSignal features such as conversion tracking, timezone tracking, language detection, and rich-push won't work out of the box. It will also make it harder to identify possible setup issues. This method is used to register a new device with OneSignal. If a device is already registered with the specified identifier, then this will update the existing device record instead of creating a new one. The returned player is a player / user ID. Use the returned ID to send push notifications to this specific user later, or to include this player when sending to a set of users. 🚧 iOS Must set test_type to 1 when building your iOS app as development. Omit this field in your production app builds.
+Sends notifications to your users
### Example
```csharp
@@ -370,27 +373,27 @@ using OneSignalApi.Model;
namespace Example
{
- public class CreatePlayerExample
+ public class CreateNotificationExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
- var player = new Player(); // Player |
+ var notification = new Notification(); // Notification |
try
{
- // Add a device
- CreatePlayerSuccessResponse result = apiInstance.CreatePlayer(player);
+ // Create notification
+ CreateNotificationSuccessResponse result = apiInstance.CreateNotification(notification);
Debug.WriteLine(result);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling DefaultApi.CreatePlayer: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.CreateNotification: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -403,15 +406,15 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **player** | [**Player**](Player.md)| |
+ **notification** | [**Notification**](Notification.md)| |
### Return type
-[**CreatePlayerSuccessResponse**](CreatePlayerSuccessResponse.md)
+[**CreateNotificationSuccessResponse**](CreateNotificationSuccessResponse.md)
### Authorization
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
@@ -422,20 +425,19 @@ Name | Type | Description | Notes
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | OK | - |
+| **200** | OK, invalid_aliases, or No Subscribed Players If a message was successfully created, you will get a 200 response and an id for the notification. If the 200 response contains \"invalid_aliases\" this will mark devices that exist in the provided app_id but are no longer subscribed. If no id is returned, then a message was not created and the targeted User IDs do not exist under the provided app_id. Any User IDs sent in the request that do not exist under the specified app_id will be ignored. | - |
| **400** | Bad Request | - |
-| **409** | Conflict | - |
| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **CreateSegments**
-> CreateSegmentSuccessResponse CreateSegments (string appId, Segment segment = null)
+
+# **CreateSegment**
+> CreateSegmentSuccessResponse CreateSegment (string appId, Segment segment = null)
-Create Segments
+Create Segment
-Create segments visible and usable in the dashboard and API - Required: OneSignal Paid Plan The Create Segment method is used when you want your server to programmatically create a segment instead of using the OneSignal Dashboard UI. Just like creating Segments from the dashboard you can pass in filters with multiple \"AND\" or \"OR\" operator's. 🚧 Does Not Update Segments This endpoint will only create segments, it does not edit or update currently created Segments. You will need to use the Delete Segments endpoint and re-create it with this endpoint to edit.
+Create a segment visible and usable in the dashboard and API - Required: OneSignal Paid Plan The Create Segment method is used when you want your server to programmatically create a segment instead of using the OneSignal Dashboard UI. Just like creating Segments from the dashboard you can pass in filters with multiple \"AND\" or \"OR\" operator's. 🚧 Does Not Update Segments This endpoint will only create segments, it does not edit or update currently created Segments. You will need to use the Delete Segment endpoint and re-create it with this endpoint to edit.
### Example
```csharp
@@ -447,13 +449,13 @@ using OneSignalApi.Model;
namespace Example
{
- public class CreateSegmentsExample
+ public class CreateSegmentExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
@@ -462,13 +464,13 @@ namespace Example
try
{
- // Create Segments
- CreateSegmentSuccessResponse result = apiInstance.CreateSegments(appId, segment);
+ // Create Segment
+ CreateSegmentSuccessResponse result = apiInstance.CreateSegment(appId, segment);
Debug.WriteLine(result);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling DefaultApi.CreateSegments: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.CreateSegment: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -490,7 +492,7 @@ Name | Type | Description | Notes
### Authorization
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
@@ -510,7 +512,7 @@ Name | Type | Description | Notes
# **CreateSubscription**
-> InlineResponse201 CreateSubscription (string appId, string aliasLabel, string aliasId, CreateSubscriptionRequestBody createSubscriptionRequestBody)
+> SubscriptionBody CreateSubscription (string appId, string aliasLabel, string aliasId, SubscriptionBody subscriptionBody)
@@ -532,18 +534,18 @@ namespace Example
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
var appId = "appId_example"; // string |
var aliasLabel = "aliasLabel_example"; // string |
var aliasId = "aliasId_example"; // string |
- var createSubscriptionRequestBody = new CreateSubscriptionRequestBody(); // CreateSubscriptionRequestBody |
+ var subscriptionBody = new SubscriptionBody(); // SubscriptionBody |
try
{
- InlineResponse201 result = apiInstance.CreateSubscription(appId, aliasLabel, aliasId, createSubscriptionRequestBody);
+ SubscriptionBody result = apiInstance.CreateSubscription(appId, aliasLabel, aliasId, subscriptionBody);
Debug.WriteLine(result);
}
catch (ApiException e)
@@ -564,15 +566,15 @@ Name | Type | Description | Notes
**appId** | **string**| |
**aliasLabel** | **string**| |
**aliasId** | **string**| |
- **createSubscriptionRequestBody** | [**CreateSubscriptionRequestBody**](CreateSubscriptionRequestBody.md)| |
+ **subscriptionBody** | [**SubscriptionBody**](SubscriptionBody.md)| |
### Return type
-[**InlineResponse201**](InlineResponse201.md)
+[**SubscriptionBody**](SubscriptionBody.md)
### Authorization
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
@@ -586,6 +588,7 @@ Name | Type | Description | Notes
| **201** | CREATED | - |
| **202** | ACCEPTED | - |
| **400** | Bad Request | - |
+| **404** | Not Found | - |
| **409** | Operation is not permitted due to user having the maximum number of subscriptions assigned | - |
| **429** | Rate Limit Exceeded | - |
@@ -615,7 +618,7 @@ namespace Example
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
@@ -651,7 +654,7 @@ Name | Type | Description | Notes
### Authorization
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
@@ -673,7 +676,7 @@ Name | Type | Description | Notes
# **DeleteAlias**
-> InlineResponse200 DeleteAlias (string appId, string aliasLabel, string aliasId, string aliasLabelToDelete)
+> UserIdentityBody DeleteAlias (string appId, string aliasLabel, string aliasId, string aliasLabelToDelete)
@@ -695,7 +698,7 @@ namespace Example
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
@@ -706,7 +709,7 @@ namespace Example
try
{
- InlineResponse200 result = apiInstance.DeleteAlias(appId, aliasLabel, aliasId, aliasLabelToDelete);
+ UserIdentityBody result = apiInstance.DeleteAlias(appId, aliasLabel, aliasId, aliasLabelToDelete);
Debug.WriteLine(result);
}
catch (ApiException e)
@@ -731,90 +734,11 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse200**](InlineResponse200.md)
-
-### Authorization
-
-[app_key](../README.md#app_key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | OK | - |
-| **400** | Bad Request | - |
-| **409** | Conflict | - |
-| **429** | Rate Limit Exceeded | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-
-# **DeletePlayer**
-> DeletePlayerSuccessResponse DeletePlayer (string appId, string playerId)
-
-Delete a user record
-
-Delete player - Required: Used to delete a single, specific Player ID record from a specific OneSignal app.
-
-### Example
-```csharp
-using System.Collections.Generic;
-using System.Diagnostics;
-using OneSignalApi.Api;
-using OneSignalApi.Client;
-using OneSignalApi.Model;
-
-namespace Example
-{
- public class DeletePlayerExample
- {
- public static void Main()
- {
- Configuration config = new Configuration();
- config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
- config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var apiInstance = new DefaultApi(config);
- var appId = "appId_example"; // string | The OneSignal App ID for your app. Available in Keys & IDs.
- var playerId = "playerId_example"; // string | The OneSignal player_id
-
- try
- {
- // Delete a user record
- DeletePlayerSuccessResponse result = apiInstance.DeletePlayer(appId, playerId);
- Debug.WriteLine(result);
- }
- catch (ApiException e)
- {
- Debug.Print("Exception when calling DefaultApi.DeletePlayer: " + e.Message );
- Debug.Print("Status Code: "+ e.ErrorCode);
- Debug.Print(e.StackTrace);
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **appId** | **string**| The OneSignal App ID for your app. Available in Keys & IDs. |
- **playerId** | **string**| The OneSignal player_id |
-
-### Return type
-
-[**DeletePlayerSuccessResponse**](DeletePlayerSuccessResponse.md)
+[**UserIdentityBody**](UserIdentityBody.md)
### Authorization
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
@@ -828,17 +752,18 @@ Name | Type | Description | Notes
| **200** | OK | - |
| **400** | Bad Request | - |
| **404** | Not Found | - |
+| **409** | Conflict | - |
| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **DeleteSegments**
-> DeleteSegmentSuccessResponse DeleteSegments (string appId, string segmentId)
+
+# **DeleteSegment**
+> GenericSuccessBoolResponse DeleteSegment (string appId, string segmentId)
-Delete Segments
+Delete Segment
-Delete segments (not user devices) - Required: OneSignal Paid Plan You can delete a segment under your app by calling this API. You must provide an API key in the Authorization header that has admin access on the app. The segment_id can be found in the URL of the segment when viewing it in the dashboard.
+Delete a segment (not user devices) - Required: OneSignal Paid Plan You can delete a segment under your app by calling this API. You must provide an API key in the Authorization header that has admin access on the app. The segment_id can be found in the URL of the segment when viewing it in the dashboard.
### Example
```csharp
@@ -850,13 +775,13 @@ using OneSignalApi.Model;
namespace Example
{
- public class DeleteSegmentsExample
+ public class DeleteSegmentExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
@@ -865,13 +790,13 @@ namespace Example
try
{
- // Delete Segments
- DeleteSegmentSuccessResponse result = apiInstance.DeleteSegments(appId, segmentId);
+ // Delete Segment
+ GenericSuccessBoolResponse result = apiInstance.DeleteSegment(appId, segmentId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling DefaultApi.DeleteSegments: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.DeleteSegment: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -889,11 +814,11 @@ Name | Type | Description | Notes
### Return type
-[**DeleteSegmentSuccessResponse**](DeleteSegmentSuccessResponse.md)
+[**GenericSuccessBoolResponse**](GenericSuccessBoolResponse.md)
### Authorization
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
@@ -935,7 +860,7 @@ namespace Example
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
@@ -970,7 +895,7 @@ void (empty response body)
### Authorization
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
@@ -983,6 +908,7 @@ void (empty response body)
|-------------|-------------|------------------|
| **202** | ACCEPTED | - |
| **400** | Bad Request | - |
+| **404** | Not Found | - |
| **409** | Conflict | - |
| **429** | Rate Limit Exceeded | - |
@@ -1012,7 +938,7 @@ namespace Example
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
@@ -1049,7 +975,7 @@ void (empty response body)
### Authorization
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
@@ -1067,13 +993,13 @@ void (empty response body)
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **EndLiveActivity**
-> void EndLiveActivity (string appId, string activityId, string subscriptionId)
+
+# **ExportEvents**
+> ExportEventsSuccessResponse ExportEvents (string notificationId, string appId)
-Stop Live Activity
+Export CSV of Events
-Stops a Live Activity
+Generate a compressed CSV report of all of the events data for a notification. This will return a URL immediately upon success but it may take several minutes for the CSV to become available at that URL depending on the volume of data. Only one export can be in-progress per OneSignal account at any given time.
### Example
```csharp
@@ -1085,28 +1011,28 @@ using OneSignalApi.Model;
namespace Example
{
- public class EndLiveActivityExample
+ public class ExportEventsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
- var appId = "appId_example"; // string | The OneSignal App ID for your app. Available in Keys & IDs.
- var activityId = "activityId_example"; // string | Live Activity record ID
- var subscriptionId = "subscriptionId_example"; // string | Subscription ID
+ var notificationId = "notificationId_example"; // string | The ID of the notification to export events from.
+ var appId = "appId_example"; // string | The ID of the app that the notification belongs to.
try
{
- // Stop Live Activity
- apiInstance.EndLiveActivity(appId, activityId, subscriptionId);
+ // Export CSV of Events
+ ExportEventsSuccessResponse result = apiInstance.ExportEvents(notificationId, appId);
+ Debug.WriteLine(result);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling DefaultApi.EndLiveActivity: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.ExportEvents: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -1119,17 +1045,16 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **appId** | **string**| The OneSignal App ID for your app. Available in Keys & IDs. |
- **activityId** | **string**| Live Activity record ID |
- **subscriptionId** | **string**| Subscription ID |
+ **notificationId** | **string**| The ID of the notification to export events from. |
+ **appId** | **string**| The ID of the app that the notification belongs to. |
### Return type
-void (empty response body)
+[**ExportEventsSuccessResponse**](ExportEventsSuccessResponse.md)
### Authorization
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
@@ -1140,19 +1065,20 @@ void (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **204** | OK | - |
+| **200** | OK | - |
| **400** | Bad Request | - |
+| **404** | Not Found | - |
| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **ExportEvents**
-> ExportEventsSuccessResponse ExportEvents (string notificationId, string appId)
+
+# **ExportSubscriptions**
+> ExportSubscriptionsSuccessResponse ExportSubscriptions (string appId, ExportSubscriptionsRequestBody exportSubscriptionsRequestBody = null)
-Export CSV of Events
+Export CSV of Subscriptions
-Generate a compressed CSV report of all of the events data for a notification. This will return a URL immediately upon success but it may take several minutes for the CSV to become available at that URL depending on the volume of data. Only one export can be in-progress per OneSignal account at any given time.
+Generate a compressed CSV export of all of your current user data This method can be used to generate a compressed CSV export of all of your current user data. It is a much faster alternative than retrieving this data using the /players API endpoint. The file will be compressed using GZip. The file may take several minutes to generate depending on the number of users in your app. The URL generated will be available for 3 days and includes random v4 uuid as part of the resource name to be unguessable. 🚧 403 Error Responses You can test if it is complete by making a GET request to the csv_file_url value. This file may take time to generate depending on how many device records are being pulled. If the file is not ready, a 403 error will be returned. Otherwise the file itself will be returned. 🚧 Requires Authentication Key Requires your OneSignal App's REST API Key, available in Keys & IDs. 🚧 Concurrent Exports Only one concurrent export is allowed per OneSignal account. Please ensure you have successfully downloaded the .csv.gz file before exporting another app. CSV File Format: - Default Columns: | Field | Details | | - -- | - -- | | id | OneSignal Player Id | | identifier | Push Token | | session_count | Number of times they visited the app or site | language | Device language code | | timezone | Number of seconds away from UTC. Example: -28800 | | game_version | Version of your mobile app gathered from Android Studio versionCode in your App/build.gradle and iOS uses kCFBundleVersionKey in Xcode. | | device_os | Device Operating System Version. Example: 80 = Chrome 80, 9 = Android 9 | | device_type | Device Operating System Type | | device_model | Device Hardware String Code. Example: Mobile Web Subscribers will have `Linux armv` | | ad_id | Based on the Google Advertising Id for Android, identifierForVendor for iOS. OptedOut means user turned off Advertising tracking on the device. | | tags | Current OneSignal Data Tags on the device. | | last_active | Date and time the user last opened the mobile app or visited the site. | | playtime | Total amount of time in seconds the user had the mobile app open. | | amount_spent | Mobile only - amount spent in USD on In-App Purchases. | | created_at | Date and time the device record was created in OneSignal. Mobile - first time they opened the app with OneSignal SDK. Web - first time the user subscribed to the site. | | invalid_identifier | t = unsubscribed, f = subscibed | | badge_count | Current number of badges on the device | - Extra Columns: | Field | Details | | - -- | - -- | | external_user_id | Your User Id set on the device | | notification_types | Notification types | | location | Location points (Latitude and Longitude) set on the device. | | country | Country code | | rooted | Android device rooted or not | | ip | IP Address of the device if being tracked. See Handling Personal Data. | | web_auth | Web Only authorization key. | | web_p256 | Web Only p256 key. |
### Example
```csharp
@@ -1164,28 +1090,28 @@ using OneSignalApi.Model;
namespace Example
{
- public class ExportEventsExample
+ public class ExportSubscriptionsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
- var notificationId = "notificationId_example"; // string | The ID of the notification to export events from.
- var appId = "appId_example"; // string | The ID of the app that the notification belongs to.
+ var appId = "appId_example"; // string | The app ID that you want to export devices from
+ var exportSubscriptionsRequestBody = new ExportSubscriptionsRequestBody(); // ExportSubscriptionsRequestBody | (optional)
try
{
- // Export CSV of Events
- ExportEventsSuccessResponse result = apiInstance.ExportEvents(notificationId, appId);
+ // Export CSV of Subscriptions
+ ExportSubscriptionsSuccessResponse result = apiInstance.ExportSubscriptions(appId, exportSubscriptionsRequestBody);
Debug.WriteLine(result);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling DefaultApi.ExportEvents: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.ExportSubscriptions: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -1198,20 +1124,20 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **notificationId** | **string**| The ID of the notification to export events from. |
- **appId** | **string**| The ID of the app that the notification belongs to. |
+ **appId** | **string**| The app ID that you want to export devices from |
+ **exportSubscriptionsRequestBody** | [**ExportSubscriptionsRequestBody**](ExportSubscriptionsRequestBody.md)| | [optional]
### Return type
-[**ExportEventsSuccessResponse**](ExportEventsSuccessResponse.md)
+[**ExportSubscriptionsSuccessResponse**](ExportSubscriptionsSuccessResponse.md)
### Authorization
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
- - **Content-Type**: Not defined
+ - **Content-Type**: application/json
- **Accept**: application/json
@@ -1220,18 +1146,17 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
-| **404** | Not Found | - |
| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **ExportPlayers**
-> ExportPlayersSuccessResponse ExportPlayers (string appId, ExportPlayersRequestBody exportPlayersRequestBody = null)
+
+# **GetAliases**
+> UserIdentityBody GetAliases (string appId, string aliasLabel, string aliasId)
-Export CSV of Players
-Generate a compressed CSV export of all of your current user data This method can be used to generate a compressed CSV export of all of your current user data. It is a much faster alternative than retrieving this data using the /players API endpoint. The file will be compressed using GZip. The file may take several minutes to generate depending on the number of users in your app. The URL generated will be available for 3 days and includes random v4 uuid as part of the resource name to be unguessable. 🚧 403 Error Responses You can test if it is complete by making a GET request to the csv_file_url value. This file may take time to generate depending on how many device records are being pulled. If the file is not ready, a 403 error will be returned. Otherwise the file itself will be returned. 🚧 Requires Authentication Key Requires your OneSignal App's REST API Key, available in Keys & IDs. 🚧 Concurrent Exports Only one concurrent export is allowed per OneSignal account. Please ensure you have successfully downloaded the .csv.gz file before exporting another app. CSV File Format: - Default Columns: | Field | Details | | - -- | - -- | | id | OneSignal Player Id | | identifier | Push Token | | session_count | Number of times they visited the app or site | language | Device language code | | timezone | Number of seconds away from UTC. Example: -28800 | | game_version | Version of your mobile app gathered from Android Studio versionCode in your App/build.gradle and iOS uses kCFBundleVersionKey in Xcode. | | device_os | Device Operating System Version. Example: 80 = Chrome 80, 9 = Android 9 | | device_type | Device Operating System Type | | device_model | Device Hardware String Code. Example: Mobile Web Subscribers will have `Linux armv` | | ad_id | Based on the Google Advertising Id for Android, identifierForVendor for iOS. OptedOut means user turned off Advertising tracking on the device. | | tags | Current OneSignal Data Tags on the device. | | last_active | Date and time the user last opened the mobile app or visited the site. | | playtime | Total amount of time in seconds the user had the mobile app open. | | amount_spent | Mobile only - amount spent in USD on In-App Purchases. | | created_at | Date and time the device record was created in OneSignal. Mobile - first time they opened the app with OneSignal SDK. Web - first time the user subscribed to the site. | | invalid_identifier | t = unsubscribed, f = subscibed | | badge_count | Current number of badges on the device | - Extra Columns: | Field | Details | | - -- | - -- | | external_user_id | Your User Id set on the device | | notification_types | Notification types | | location | Location points (Latitude and Longitude) set on the device. | | country | Country code | | rooted | Android device rooted or not | | ip | IP Address of the device if being tracked. See Handling Personal Data. | | web_auth | Web Only authorization key. | | web_p256 | Web Only p256 key. |
+
+Lists all Aliases for the User identified by (:alias_label, :alias_id).
### Example
```csharp
@@ -1243,28 +1168,28 @@ using OneSignalApi.Model;
namespace Example
{
- public class ExportPlayersExample
+ public class GetAliasesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
- var appId = "appId_example"; // string | The app ID that you want to export devices from
- var exportPlayersRequestBody = new ExportPlayersRequestBody(); // ExportPlayersRequestBody | (optional)
+ var appId = "appId_example"; // string |
+ var aliasLabel = "aliasLabel_example"; // string |
+ var aliasId = "aliasId_example"; // string |
try
{
- // Export CSV of Players
- ExportPlayersSuccessResponse result = apiInstance.ExportPlayers(appId, exportPlayersRequestBody);
+ UserIdentityBody result = apiInstance.GetAliases(appId, aliasLabel, aliasId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling DefaultApi.ExportPlayers: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.GetAliases: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -1277,20 +1202,21 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **appId** | **string**| The app ID that you want to export devices from |
- **exportPlayersRequestBody** | [**ExportPlayersRequestBody**](ExportPlayersRequestBody.md)| | [optional]
+ **appId** | **string**| |
+ **aliasLabel** | **string**| |
+ **aliasId** | **string**| |
### Return type
-[**ExportPlayersSuccessResponse**](ExportPlayersSuccessResponse.md)
+[**UserIdentityBody**](UserIdentityBody.md)
### Authorization
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
- - **Content-Type**: application/json
+ - **Content-Type**: Not defined
- **Accept**: application/json
@@ -1299,13 +1225,14 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
+| **404** | Not Found | - |
| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **FetchAliases**
-> UserIdentityResponse FetchAliases (string appId, string subscriptionId)
+
+# **GetAliasesBySubscription**
+> UserIdentityBody GetAliasesBySubscription (string appId, string subscriptionId)
@@ -1321,13 +1248,13 @@ using OneSignalApi.Model;
namespace Example
{
- public class FetchAliasesExample
+ public class GetAliasesBySubscriptionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
@@ -1336,12 +1263,12 @@ namespace Example
try
{
- UserIdentityResponse result = apiInstance.FetchAliases(appId, subscriptionId);
+ UserIdentityBody result = apiInstance.GetAliasesBySubscription(appId, subscriptionId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling DefaultApi.FetchAliases: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.GetAliasesBySubscription: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -1359,11 +1286,11 @@ Name | Type | Description | Notes
### Return type
-[**UserIdentityResponse**](UserIdentityResponse.md)
+[**UserIdentityBody**](UserIdentityBody.md)
### Authorization
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
@@ -1376,16 +1303,17 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
+| **404** | Not Found | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **FetchUser**
-> User FetchUser (string appId, string aliasLabel, string aliasId)
-
+
+# **GetApp**
+> App GetApp (string appId)
+View an app
-Returns the User’s properties, Aliases, and Subscriptions.
+View the details of a single OneSignal app
### Example
```csharp
@@ -1397,28 +1325,27 @@ using OneSignalApi.Model;
namespace Example
{
- public class FetchUserExample
+ public class GetAppExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: user_auth_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
- var appId = "appId_example"; // string |
- var aliasLabel = "aliasLabel_example"; // string |
- var aliasId = "aliasId_example"; // string |
+ var appId = "appId_example"; // string | An app id
try
{
- User result = apiInstance.FetchUser(appId, aliasLabel, aliasId);
+ // View an app
+ App result = apiInstance.GetApp(appId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling DefaultApi.FetchUser: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.GetApp: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -1431,17 +1358,15 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **appId** | **string**| |
- **aliasLabel** | **string**| |
- **aliasId** | **string**| |
+ **appId** | **string**| An app id |
### Return type
-[**User**](User.md)
+[**App**](App.md)
### Authorization
-[app_key](../README.md#app_key)
+[user_auth_key](../README.md#user_auth_key)
### HTTP request headers
@@ -1458,13 +1383,13 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **FetchUserIdentity**
-> InlineResponse200 FetchUserIdentity (string appId, string aliasLabel, string aliasId)
-
+
+# **GetApps**
+> List<App> GetApps ()
+View apps
-Lists all Aliases for the User identified by (:alias_label, :alias_id).
+View the details of all of your current OneSignal apps
### Example
```csharp
@@ -1476,168 +1401,13 @@ using OneSignalApi.Model;
namespace Example
{
- public class FetchUserIdentityExample
+ public class GetAppsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
- config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var apiInstance = new DefaultApi(config);
- var appId = "appId_example"; // string |
- var aliasLabel = "aliasLabel_example"; // string |
- var aliasId = "aliasId_example"; // string |
-
- try
- {
- InlineResponse200 result = apiInstance.FetchUserIdentity(appId, aliasLabel, aliasId);
- Debug.WriteLine(result);
- }
- catch (ApiException e)
- {
- Debug.Print("Exception when calling DefaultApi.FetchUserIdentity: " + e.Message );
- Debug.Print("Status Code: "+ e.ErrorCode);
- Debug.Print(e.StackTrace);
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **appId** | **string**| |
- **aliasLabel** | **string**| |
- **aliasId** | **string**| |
-
-### Return type
-
-[**InlineResponse200**](InlineResponse200.md)
-
-### Authorization
-
-[app_key](../README.md#app_key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | OK | - |
-| **400** | Bad Request | - |
-| **429** | Rate Limit Exceeded | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-
-# **GetApp**
-> App GetApp (string appId)
-
-View an app
-
-View the details of a single OneSignal app
-
-### Example
-```csharp
-using System.Collections.Generic;
-using System.Diagnostics;
-using OneSignalApi.Api;
-using OneSignalApi.Client;
-using OneSignalApi.Model;
-
-namespace Example
-{
- public class GetAppExample
- {
- public static void Main()
- {
- Configuration config = new Configuration();
- config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: user_key
- config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var apiInstance = new DefaultApi(config);
- var appId = "appId_example"; // string | An app id
-
- try
- {
- // View an app
- App result = apiInstance.GetApp(appId);
- Debug.WriteLine(result);
- }
- catch (ApiException e)
- {
- Debug.Print("Exception when calling DefaultApi.GetApp: " + e.Message );
- Debug.Print("Status Code: "+ e.ErrorCode);
- Debug.Print(e.StackTrace);
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **appId** | **string**| An app id |
-
-### Return type
-
-[**App**](App.md)
-
-### Authorization
-
-[user_key](../README.md#user_key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | OK | - |
-| **400** | Bad Request | - |
-| **429** | Rate Limit Exceeded | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-
-# **GetApps**
-> List<App> GetApps ()
-
-View apps
-
-View the details of all of your current OneSignal apps
-
-### Example
-```csharp
-using System.Collections.Generic;
-using System.Diagnostics;
-using OneSignalApi.Api;
-using OneSignalApi.Client;
-using OneSignalApi.Model;
-
-namespace Example
-{
- public class GetAppsExample
- {
- public static void Main()
- {
- Configuration config = new Configuration();
- config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: user_key
+ // Configure Bearer token for authorization: user_auth_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
@@ -1668,84 +1438,7 @@ This endpoint does not need any parameter.
### Authorization
-[user_key](../README.md#user_key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | OK | - |
-| **400** | Bad Request | - |
-| **429** | Rate Limit Exceeded | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-
-# **GetEligibleIams**
-> InlineResponse2003 GetEligibleIams (string appId, string subscriptionId)
-
-
-
-Manifest of In-App Messages the Subscription is eligible to display by the SDK.
-
-### Example
-```csharp
-using System.Collections.Generic;
-using System.Diagnostics;
-using OneSignalApi.Api;
-using OneSignalApi.Client;
-using OneSignalApi.Model;
-
-namespace Example
-{
- public class GetEligibleIamsExample
- {
- public static void Main()
- {
- Configuration config = new Configuration();
- config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
- config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var apiInstance = new DefaultApi(config);
- var appId = "appId_example"; // string |
- var subscriptionId = "subscriptionId_example"; // string |
-
- try
- {
- InlineResponse2003 result = apiInstance.GetEligibleIams(appId, subscriptionId);
- Debug.WriteLine(result);
- }
- catch (ApiException e)
- {
- Debug.Print("Exception when calling DefaultApi.GetEligibleIams: " + e.Message );
- Debug.Print("Status Code: "+ e.ErrorCode);
- Debug.Print(e.StackTrace);
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **appId** | **string**| |
- **subscriptionId** | **string**| |
-
-### Return type
-
-[**InlineResponse2003**](InlineResponse2003.md)
-
-### Authorization
-
-[app_key](../README.md#app_key)
+[user_auth_key](../README.md#user_auth_key)
### HTTP request headers
@@ -1786,7 +1479,7 @@ namespace Example
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
@@ -1823,7 +1516,7 @@ Name | Type | Description | Notes
### Authorization
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
@@ -1836,13 +1529,14 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
+| **404** | Not Found | - |
| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **GetNotificationHistory**
-> NotificationHistorySuccessResponse GetNotificationHistory (string notificationId, GetNotificationRequestBody getNotificationRequestBody)
+> NotificationHistorySuccessResponse GetNotificationHistory (string notificationId, GetNotificationHistoryRequestBody getNotificationHistoryRequestBody)
Notification History
@@ -1864,17 +1558,17 @@ namespace Example
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
var notificationId = "notificationId_example"; // string | The \"id\" of the message found in the Notification object
- var getNotificationRequestBody = new GetNotificationRequestBody(); // GetNotificationRequestBody |
+ var getNotificationHistoryRequestBody = new GetNotificationHistoryRequestBody(); // GetNotificationHistoryRequestBody |
try
{
// Notification History
- NotificationHistorySuccessResponse result = apiInstance.GetNotificationHistory(notificationId, getNotificationRequestBody);
+ NotificationHistorySuccessResponse result = apiInstance.GetNotificationHistory(notificationId, getNotificationHistoryRequestBody);
Debug.WriteLine(result);
}
catch (ApiException e)
@@ -1893,7 +1587,7 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**notificationId** | **string**| The \"id\" of the message found in the Notification object |
- **getNotificationRequestBody** | [**GetNotificationRequestBody**](GetNotificationRequestBody.md)| |
+ **getNotificationHistoryRequestBody** | [**GetNotificationHistoryRequestBody**](GetNotificationHistoryRequestBody.md)| |
### Return type
@@ -1901,7 +1595,7 @@ Name | Type | Description | Notes
### Authorization
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
@@ -1914,6 +1608,7 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
+| **404** | Not Found | - |
| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -1942,7 +1637,7 @@ namespace Example
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
@@ -1983,7 +1678,7 @@ Name | Type | Description | Notes
### Authorization
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
@@ -2024,7 +1719,7 @@ namespace Example
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
@@ -2069,87 +1764,7 @@ Name | Type | Description | Notes
### Authorization
-[app_key](../README.md#app_key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | OK | - |
-| **400** | Bad Request | - |
-| **429** | Rate Limit Exceeded | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-
-# **GetPlayer**
-> Player GetPlayer (string appId, string playerId, string emailAuthHash = null)
-
-View device
-
-View the details of an existing device in one of your OneSignal apps
-
-### Example
-```csharp
-using System.Collections.Generic;
-using System.Diagnostics;
-using OneSignalApi.Api;
-using OneSignalApi.Client;
-using OneSignalApi.Model;
-
-namespace Example
-{
- public class GetPlayerExample
- {
- public static void Main()
- {
- Configuration config = new Configuration();
- config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
- config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var apiInstance = new DefaultApi(config);
- var appId = "appId_example"; // string | Your app_id for this device
- var playerId = "playerId_example"; // string | Player's OneSignal ID
- var emailAuthHash = "emailAuthHash_example"; // string | Email - Only required if you have enabled Identity Verification and device_type is email (11). (optional)
-
- try
- {
- // View device
- Player result = apiInstance.GetPlayer(appId, playerId, emailAuthHash);
- Debug.WriteLine(result);
- }
- catch (ApiException e)
- {
- Debug.Print("Exception when calling DefaultApi.GetPlayer: " + e.Message );
- Debug.Print("Status Code: "+ e.ErrorCode);
- Debug.Print(e.StackTrace);
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **appId** | **string**| Your app_id for this device |
- **playerId** | **string**| Player's OneSignal ID |
- **emailAuthHash** | **string**| Email - Only required if you have enabled Identity Verification and device_type is email (11). | [optional]
-
-### Return type
-
-[**Player**](Player.md)
-
-### Authorization
-
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
@@ -2166,13 +1781,13 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **GetPlayers**
-> PlayerSlice GetPlayers (string appId, int? limit = null, int? offset = null)
+
+# **GetSegments**
+> GetSegmentsSuccessResponse GetSegments (string appId, int? offset = null, int? limit = null)
-View devices
+Get Segments
-View the details of multiple devices in one of your OneSignal apps Unavailable for Apps Over 80,000 Users For performance reasons, this method is not available for larger apps. Larger apps should use the CSV export API endpoint, which is much more performant.
+Returns an array of segments from an app.
### Example
```csharp
@@ -2184,29 +1799,29 @@ using OneSignalApi.Model;
namespace Example
{
- public class GetPlayersExample
+ public class GetSegmentsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
- var appId = "appId_example"; // string | The app ID that you want to view players from
- var limit = 56; // int? | How many devices to return. Max is 300. Default is 300 (optional)
- var offset = 56; // int? | Result offset. Default is 0. Results are sorted by id; (optional)
+ var appId = "appId_example"; // string | The OneSignal App ID for your app. Available in Keys & IDs.
+ var offset = 56; // int? | Segments are listed in ascending order of created_at date. offset will omit that number of segments from the beginning of the list. Eg offset 5, will remove the 5 earliest created Segments. (optional)
+ var limit = 56; // int? | The amount of Segments in the response. Maximum 300. (optional)
try
{
- // View devices
- PlayerSlice result = apiInstance.GetPlayers(appId, limit, offset);
+ // Get Segments
+ GetSegmentsSuccessResponse result = apiInstance.GetSegments(appId, offset, limit);
Debug.WriteLine(result);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling DefaultApi.GetPlayers: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.GetSegments: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -2219,17 +1834,17 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **appId** | **string**| The app ID that you want to view players from |
- **limit** | **int?**| How many devices to return. Max is 300. Default is 300 | [optional]
- **offset** | **int?**| Result offset. Default is 0. Results are sorted by id; | [optional]
+ **appId** | **string**| The OneSignal App ID for your app. Available in Keys & IDs. |
+ **offset** | **int?**| Segments are listed in ascending order of created_at date. offset will omit that number of segments from the beginning of the list. Eg offset 5, will remove the 5 earliest created Segments. | [optional]
+ **limit** | **int?**| The amount of Segments in the response. Maximum 300. | [optional]
### Return type
-[**PlayerSlice**](PlayerSlice.md)
+[**GetSegmentsSuccessResponse**](GetSegmentsSuccessResponse.md)
### Authorization
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
@@ -2240,19 +1855,19 @@ Name | Type | Description | Notes
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | OK | - |
+| **201** | OK | - |
| **400** | Bad Request | - |
| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **IdentifyUserByAlias**
-> InlineResponse200 IdentifyUserByAlias (string appId, string aliasLabel, string aliasId, UserIdentityRequestBody userIdentityRequestBody)
+
+# **GetUser**
+> User GetUser (string appId, string aliasLabel, string aliasId)
-Upserts one or more Aliases to an existing User identified by (:alias_label, :alias_id).
+Returns the User’s properties, Aliases, and Subscriptions.
### Example
```csharp
@@ -2264,29 +1879,28 @@ using OneSignalApi.Model;
namespace Example
{
- public class IdentifyUserByAliasExample
+ public class GetUserExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
var appId = "appId_example"; // string |
var aliasLabel = "aliasLabel_example"; // string |
var aliasId = "aliasId_example"; // string |
- var userIdentityRequestBody = new UserIdentityRequestBody(); // UserIdentityRequestBody |
try
{
- InlineResponse200 result = apiInstance.IdentifyUserByAlias(appId, aliasLabel, aliasId, userIdentityRequestBody);
+ User result = apiInstance.GetUser(appId, aliasLabel, aliasId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling DefaultApi.IdentifyUserByAlias: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.GetUser: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -2302,19 +1916,18 @@ Name | Type | Description | Notes
**appId** | **string**| |
**aliasLabel** | **string**| |
**aliasId** | **string**| |
- **userIdentityRequestBody** | [**UserIdentityRequestBody**](UserIdentityRequestBody.md)| |
### Return type
-[**InlineResponse200**](InlineResponse200.md)
+[**User**](User.md)
### Authorization
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
- - **Content-Type**: application/json
+ - **Content-Type**: Not defined
- **Accept**: application/json
@@ -2323,18 +1936,18 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
-| **409** | Conflict | - |
+| **404** | Not Found | - |
| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **IdentifyUserBySubscriptionId**
-> UserIdentityResponse IdentifyUserBySubscriptionId (string appId, string subscriptionId, UserIdentityRequestBody userIdentityRequestBody)
+
+# **TransferSubscription**
+> UserIdentityBody TransferSubscription (string appId, string subscriptionId, TransferSubscriptionRequestBody transferSubscriptionRequestBody)
-Upserts one or more Aliases for the User identified by :subscription_id.
+Transfers this Subscription to the User identified by the identity in the payload.
### Example
```csharp
@@ -2346,28 +1959,28 @@ using OneSignalApi.Model;
namespace Example
{
- public class IdentifyUserBySubscriptionIdExample
+ public class TransferSubscriptionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
var appId = "appId_example"; // string |
var subscriptionId = "subscriptionId_example"; // string |
- var userIdentityRequestBody = new UserIdentityRequestBody(); // UserIdentityRequestBody |
+ var transferSubscriptionRequestBody = new TransferSubscriptionRequestBody(); // TransferSubscriptionRequestBody |
try
{
- UserIdentityResponse result = apiInstance.IdentifyUserBySubscriptionId(appId, subscriptionId, userIdentityRequestBody);
+ UserIdentityBody result = apiInstance.TransferSubscription(appId, subscriptionId, transferSubscriptionRequestBody);
Debug.WriteLine(result);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling DefaultApi.IdentifyUserBySubscriptionId: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.TransferSubscription: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -2382,15 +1995,15 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**appId** | **string**| |
**subscriptionId** | **string**| |
- **userIdentityRequestBody** | [**UserIdentityRequestBody**](UserIdentityRequestBody.md)| |
+ **transferSubscriptionRequestBody** | [**TransferSubscriptionRequestBody**](TransferSubscriptionRequestBody.md)| |
### Return type
-[**UserIdentityResponse**](UserIdentityResponse.md)
+[**UserIdentityBody**](UserIdentityBody.md)
### Authorization
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
@@ -2403,18 +2016,19 @@ Name | Type | Description | Notes
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
+| **404** | Not Found | - |
| **409** | Conflict | - |
| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **TransferSubscription**
-> UserIdentityResponse TransferSubscription (string appId, string subscriptionId, TransferSubscriptionRequestBody transferSubscriptionRequestBody)
-
+
+# **UnsubscribeEmailWithToken**
+> GenericSuccessBoolResponse UnsubscribeEmailWithToken (string appId, string notificationId, string token)
+Unsubscribe with token
-Transfers this Subscription to the User identified by the identity in the payload.
+Unsubscribe an email with a token when using your own custom email unsubscribe landing page
### Example
```csharp
@@ -2426,28 +2040,29 @@ using OneSignalApi.Model;
namespace Example
{
- public class TransferSubscriptionExample
+ public class UnsubscribeEmailWithTokenExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
- var appId = "appId_example"; // string |
- var subscriptionId = "subscriptionId_example"; // string |
- var transferSubscriptionRequestBody = new TransferSubscriptionRequestBody(); // TransferSubscriptionRequestBody |
+ var appId = "appId_example"; // string | The OneSignal App ID for your app. Available in Keys & IDs.
+ var notificationId = "notificationId_example"; // string | The id of the message found in the creation notification POST response, View Notifications GET response, or URL within the Message Report.
+ var token = "token_example"; // string | The unsubscribe token that is generated via liquid syntax in {{subscription.unsubscribe_token}} when personalizing an email.
try
{
- UserIdentityResponse result = apiInstance.TransferSubscription(appId, subscriptionId, transferSubscriptionRequestBody);
+ // Unsubscribe with token
+ GenericSuccessBoolResponse result = apiInstance.UnsubscribeEmailWithToken(appId, notificationId, token);
Debug.WriteLine(result);
}
catch (ApiException e)
{
- Debug.Print("Exception when calling DefaultApi.TransferSubscription: " + e.Message );
+ Debug.Print("Exception when calling DefaultApi.UnsubscribeEmailWithToken: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
@@ -2460,30 +2075,29 @@ namespace Example
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **appId** | **string**| |
- **subscriptionId** | **string**| |
- **transferSubscriptionRequestBody** | [**TransferSubscriptionRequestBody**](TransferSubscriptionRequestBody.md)| |
+ **appId** | **string**| The OneSignal App ID for your app. Available in Keys & IDs. |
+ **notificationId** | **string**| The id of the message found in the creation notification POST response, View Notifications GET response, or URL within the Message Report. |
+ **token** | **string**| The unsubscribe token that is generated via liquid syntax in {{subscription.unsubscribe_token}} when personalizing an email. |
### Return type
-[**UserIdentityResponse**](UserIdentityResponse.md)
+[**GenericSuccessBoolResponse**](GenericSuccessBoolResponse.md)
### Authorization
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
- - **Content-Type**: application/json
+ - **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | OK | - |
+| **202** | OK | - |
| **400** | Bad Request | - |
-| **409** | Conflict | - |
| **429** | Rate Limit Exceeded | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -2512,7 +2126,7 @@ namespace Example
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: user_key
+ // Configure Bearer token for authorization: user_auth_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
@@ -2549,7 +2163,7 @@ Name | Type | Description | Notes
### Authorization
-[user_key](../README.md#user_key)
+[user_auth_key](../README.md#user_auth_key)
### HTTP request headers
@@ -2590,7 +2204,7 @@ namespace Example
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
@@ -2629,7 +2243,7 @@ Name | Type | Description | Notes
### Authorization
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
@@ -2646,169 +2260,9 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **UpdatePlayer**
-> UpdatePlayerSuccessResponse UpdatePlayer (string playerId, Player player)
-
-Edit device
-
-Update an existing device in one of your OneSignal apps
-
-### Example
-```csharp
-using System.Collections.Generic;
-using System.Diagnostics;
-using OneSignalApi.Api;
-using OneSignalApi.Client;
-using OneSignalApi.Model;
-
-namespace Example
-{
- public class UpdatePlayerExample
- {
- public static void Main()
- {
- Configuration config = new Configuration();
- config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
- config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var apiInstance = new DefaultApi(config);
- var playerId = "playerId_example"; // string | Player's OneSignal ID
- var player = new Player(); // Player |
-
- try
- {
- // Edit device
- UpdatePlayerSuccessResponse result = apiInstance.UpdatePlayer(playerId, player);
- Debug.WriteLine(result);
- }
- catch (ApiException e)
- {
- Debug.Print("Exception when calling DefaultApi.UpdatePlayer: " + e.Message );
- Debug.Print("Status Code: "+ e.ErrorCode);
- Debug.Print(e.StackTrace);
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **playerId** | **string**| Player's OneSignal ID |
- **player** | [**Player**](Player.md)| |
-
-### Return type
-
-[**UpdatePlayerSuccessResponse**](UpdatePlayerSuccessResponse.md)
-
-### Authorization
-
-[app_key](../README.md#app_key)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | OK | - |
-| **400** | Bad Request | - |
-| **409** | Conflict | - |
-| **429** | Rate Limit Exceeded | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-
-# **UpdatePlayerTags**
-> UpdatePlayerTagsSuccessResponse UpdatePlayerTags (string appId, string externalUserId, UpdatePlayerTagsRequestBody updatePlayerTagsRequestBody = null)
-
-Edit tags with external user id
-
-Update an existing device's tags in one of your OneSignal apps using the External User ID. Warning - Android SDK Data Synchronization Tags added through the Android SDK tagging methods may not update if using the API to change or update the same tag. For example, if you use SDK method sendTag(\"key\", \"value1\") then update the tag value to \"value2\" with this API endpoint. You will not be able to set the value back to \"value1\" through the SDK, you will need to change it to something different through the SDK to be reset. Recommendations if using this Endpoint on Android Mobile Apps: 1 - Do not use the same tag keys for SDK and API updates 2 - If you want to use the same key for both SDK and API updates, call the SDK getTags method first to update the device's tags. This is only applicable on the Android Mobile App SDKs. 📘 Deleting Tags To delete a tag, include its key and set its value to blank. Omitting a key/value will not delete it. For example, if I wanted to delete two existing tags rank and category while simultaneously adding a new tag class, the tags JSON would look like the following: \"tags\": { \"rank\": \"\", \"category\": \"\", \"class\": \"my_new_value\" }
-
-### Example
-```csharp
-using System.Collections.Generic;
-using System.Diagnostics;
-using OneSignalApi.Api;
-using OneSignalApi.Client;
-using OneSignalApi.Model;
-
-namespace Example
-{
- public class UpdatePlayerTagsExample
- {
- public static void Main()
- {
- Configuration config = new Configuration();
- config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
- config.AccessToken = "YOUR_BEARER_TOKEN";
-
- var apiInstance = new DefaultApi(config);
- var appId = "appId_example"; // string | The OneSignal App ID the user record is found under.
- var externalUserId = "externalUserId_example"; // string | The External User ID mapped to teh device record in OneSignal. Must be actively set on the device to be updated.
- var updatePlayerTagsRequestBody = new UpdatePlayerTagsRequestBody(); // UpdatePlayerTagsRequestBody | (optional)
-
- try
- {
- // Edit tags with external user id
- UpdatePlayerTagsSuccessResponse result = apiInstance.UpdatePlayerTags(appId, externalUserId, updatePlayerTagsRequestBody);
- Debug.WriteLine(result);
- }
- catch (ApiException e)
- {
- Debug.Print("Exception when calling DefaultApi.UpdatePlayerTags: " + e.Message );
- Debug.Print("Status Code: "+ e.ErrorCode);
- Debug.Print(e.StackTrace);
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **appId** | **string**| The OneSignal App ID the user record is found under. |
- **externalUserId** | **string**| The External User ID mapped to teh device record in OneSignal. Must be actively set on the device to be updated. |
- **updatePlayerTagsRequestBody** | [**UpdatePlayerTagsRequestBody**](UpdatePlayerTagsRequestBody.md)| | [optional]
-
-### Return type
-
-[**UpdatePlayerTagsSuccessResponse**](UpdatePlayerTagsSuccessResponse.md)
-
-### Authorization
-
-[app_key](../README.md#app_key)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-| **200** | OK | - |
-| **400** | Bad Request | - |
-| **409** | Conflict | - |
-| **429** | Rate Limit Exceeded | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
# **UpdateSubscription**
-> void UpdateSubscription (string appId, string subscriptionId, UpdateSubscriptionRequestBody updateSubscriptionRequestBody)
+> void UpdateSubscription (string appId, string subscriptionId, SubscriptionBody subscriptionBody)
@@ -2830,17 +2284,17 @@ namespace Example
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
var appId = "appId_example"; // string |
var subscriptionId = "subscriptionId_example"; // string |
- var updateSubscriptionRequestBody = new UpdateSubscriptionRequestBody(); // UpdateSubscriptionRequestBody |
+ var subscriptionBody = new SubscriptionBody(); // SubscriptionBody |
try
{
- apiInstance.UpdateSubscription(appId, subscriptionId, updateSubscriptionRequestBody);
+ apiInstance.UpdateSubscription(appId, subscriptionId, subscriptionBody);
}
catch (ApiException e)
{
@@ -2859,7 +2313,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**appId** | **string**| |
**subscriptionId** | **string**| |
- **updateSubscriptionRequestBody** | [**UpdateSubscriptionRequestBody**](UpdateSubscriptionRequestBody.md)| |
+ **subscriptionBody** | [**SubscriptionBody**](SubscriptionBody.md)| |
### Return type
@@ -2867,7 +2321,7 @@ void (empty response body)
### Authorization
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
@@ -2878,8 +2332,9 @@ void (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **202** | ACCEPTED | - |
+| **200** | OK | - |
| **400** | Bad Request | - |
+| **404** | Not Found | - |
| **409** | Conflict | - |
| **429** | Rate Limit Exceeded | - |
@@ -2887,7 +2342,7 @@ void (empty response body)
# **UpdateUser**
-> InlineResponse202 UpdateUser (string appId, string aliasLabel, string aliasId, UpdateUserRequest updateUserRequest)
+> PropertiesBody UpdateUser (string appId, string aliasLabel, string aliasId, UpdateUserRequest updateUserRequest)
@@ -2909,7 +2364,7 @@ namespace Example
{
Configuration config = new Configuration();
config.BasePath = "https://api.onesignal.com";
- // Configure Bearer token for authorization: app_key
+ // Configure Bearer token for authorization: rest_api_key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new DefaultApi(config);
@@ -2920,7 +2375,7 @@ namespace Example
try
{
- InlineResponse202 result = apiInstance.UpdateUser(appId, aliasLabel, aliasId, updateUserRequest);
+ PropertiesBody result = apiInstance.UpdateUser(appId, aliasLabel, aliasId, updateUserRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
@@ -2945,11 +2400,11 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse202**](InlineResponse202.md)
+[**PropertiesBody**](PropertiesBody.md)
### Authorization
-[app_key](../README.md#app_key)
+[rest_api_key](../README.md#rest_api_key)
### HTTP request headers
diff --git a/docs/DeletePlayerNotFoundResponse.md b/docs/DeletePlayerNotFoundResponse.md
deleted file mode 100644
index 3a2efb6..0000000
--- a/docs/DeletePlayerNotFoundResponse.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# OneSignalApi.Model.DeletePlayerNotFoundResponse
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Success** | **bool** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/DeleteSegmentSuccessResponse.md b/docs/DeleteSegmentSuccessResponse.md
deleted file mode 100644
index a9073c4..0000000
--- a/docs/DeleteSegmentSuccessResponse.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# OneSignalApi.Model.DeleteSegmentSuccessResponse
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Success** | **bool** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/ExportPlayersRequestBody.md b/docs/ExportSubscriptionsRequestBody.md
similarity index 93%
rename from docs/ExportPlayersRequestBody.md
rename to docs/ExportSubscriptionsRequestBody.md
index a560d64..c65378e 100644
--- a/docs/ExportPlayersRequestBody.md
+++ b/docs/ExportSubscriptionsRequestBody.md
@@ -1,4 +1,4 @@
-# OneSignalApi.Model.ExportPlayersRequestBody
+# OneSignalApi.Model.ExportSubscriptionsRequestBody
## Properties
diff --git a/docs/ExportPlayersSuccessResponse.md b/docs/ExportSubscriptionsSuccessResponse.md
similarity index 85%
rename from docs/ExportPlayersSuccessResponse.md
rename to docs/ExportSubscriptionsSuccessResponse.md
index c12ffb6..f7acfc7 100644
--- a/docs/ExportPlayersSuccessResponse.md
+++ b/docs/ExportSubscriptionsSuccessResponse.md
@@ -1,4 +1,4 @@
-# OneSignalApi.Model.ExportPlayersSuccessResponse
+# OneSignalApi.Model.ExportSubscriptionsSuccessResponse
## Properties
diff --git a/docs/Filter.md b/docs/Filter.md
index 298f9a4..1f7c090 100644
--- a/docs/Filter.md
+++ b/docs/Filter.md
@@ -4,10 +4,14 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Field** | **string** | Name of the field to use as the first operand in the filter expression. |
+**Field** | **string** | Required. Name of the field to use as the first operand in the filter expression. | [optional]
**Key** | **string** | If `field` is `tag`, this field is *required* to specify `key` inside the tags. | [optional]
**Value** | **string** | Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator. | [optional]
-**Relation** | **string** | Operator of a filter expression. |
+**HoursAgo** | **string** | If `field` is session-related, this is *required* to specify the number of hours before or after the user's session. | [optional]
+**Radius** | **decimal** | If `field` is `location`, this will specify the radius in meters from a provided location point. Use with `lat` and `long`. | [optional]
+**Lat** | **decimal** | If `field` is `location`, this is *required* to specify the user's latitude. | [optional]
+**Long** | **decimal** | If `field` is `location`, this is *required* to specify the user's longitude. | [optional]
+**Relation** | **string** | Required. Operator of a filter expression. | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/FilterExpression.md b/docs/FilterExpression.md
new file mode 100644
index 0000000..feb9cd6
--- /dev/null
+++ b/docs/FilterExpression.md
@@ -0,0 +1,18 @@
+# OneSignalApi.Model.FilterExpression
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Field** | **string** | Required. Name of the field to use as the first operand in the filter expression. | [optional]
+**Key** | **string** | If `field` is `tag`, this field is *required* to specify `key` inside the tags. | [optional]
+**Value** | **string** | Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator. | [optional]
+**HoursAgo** | **string** | If `field` is session-related, this is *required* to specify the number of hours before or after the user's session. | [optional]
+**Radius** | **decimal** | If `field` is `location`, this will specify the radius in meters from a provided location point. Use with `lat` and `long`. | [optional]
+**Lat** | **decimal** | If `field` is `location`, this is *required* to specify the user's latitude. | [optional]
+**Long** | **decimal** | If `field` is `location`, this is *required* to specify the user's longitude. | [optional]
+**Relation** | **string** | Required. Operator of a filter expression. | [optional]
+**Operator** | **string** | Strictly, this must be either `\"OR\"`, or `\"AND\"`. It can be used to compose Filters as part of a Filters object. | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/FilterExpressions.md b/docs/FilterExpressions.md
deleted file mode 100644
index 840e535..0000000
--- a/docs/FilterExpressions.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# OneSignalApi.Model.FilterExpressions
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Field** | **string** | Name of the field to use as the first operand in the filter expression. |
-**Key** | **string** | If `field` is `tag`, this field is *required* to specify `key` inside the tags. | [optional]
-**Value** | **string** | Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator. | [optional]
-**Relation** | **string** | Operator of a filter expression. |
-**Operator** | **string** | Strictly, this must be either `\"OR\"`, or `\"AND\"`. It can be used to compose Filters as part of a Filters object. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/GenericError.md b/docs/GenericError.md
index 017d46f..81e5592 100644
--- a/docs/GenericError.md
+++ b/docs/GenericError.md
@@ -4,7 +4,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Errors** | [**List<GenericErrorErrorsInner>**](GenericErrorErrorsInner.md) | | [optional]
+**Errors** | **Object** | | [optional]
+**Success** | **bool** | | [optional]
+**Reference** | **Object** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/DeletePlayerSuccessResponse.md b/docs/GenericSuccessBoolResponse.md
similarity index 86%
rename from docs/DeletePlayerSuccessResponse.md
rename to docs/GenericSuccessBoolResponse.md
index 4cd5cc4..57f9e8e 100644
--- a/docs/DeletePlayerSuccessResponse.md
+++ b/docs/GenericSuccessBoolResponse.md
@@ -1,4 +1,4 @@
-# OneSignalApi.Model.DeletePlayerSuccessResponse
+# OneSignalApi.Model.GenericSuccessBoolResponse
## Properties
diff --git a/docs/GetNotificationRequestBody.md b/docs/GetNotificationHistoryRequestBody.md
similarity index 93%
rename from docs/GetNotificationRequestBody.md
rename to docs/GetNotificationHistoryRequestBody.md
index 876ac59..f38f8c9 100644
--- a/docs/GetNotificationRequestBody.md
+++ b/docs/GetNotificationHistoryRequestBody.md
@@ -1,4 +1,4 @@
-# OneSignalApi.Model.GetNotificationRequestBody
+# OneSignalApi.Model.GetNotificationHistoryRequestBody
## Properties
diff --git a/docs/GetSegmentsSuccessResponse.md b/docs/GetSegmentsSuccessResponse.md
new file mode 100644
index 0000000..17a9491
--- /dev/null
+++ b/docs/GetSegmentsSuccessResponse.md
@@ -0,0 +1,13 @@
+# OneSignalApi.Model.GetSegmentsSuccessResponse
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**TotalCount** | **int** | The number of Segments in the response. | [optional]
+**Offset** | **int** | Set with the offset query parameter. Default 0. | [optional]
+**Limit** | **int** | Maximum number of Segments returned. Default 300. | [optional]
+**Segments** | [**List<SegmentData>**](SegmentData.md) | An array containing the Segment information. | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/InlineResponse2003.md b/docs/InlineResponse2003.md
deleted file mode 100644
index 27919ec..0000000
--- a/docs/InlineResponse2003.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# OneSignalApi.Model.InlineResponse2003
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**InAppMessages** | **List<Object>** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/InlineResponse201.md b/docs/InlineResponse201.md
deleted file mode 100644
index 03b96ff..0000000
--- a/docs/InlineResponse201.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# OneSignalApi.Model.InlineResponse201
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Subscription** | [**SubscriptionObject**](SubscriptionObject.md) | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/InvalidIdentifierError.md b/docs/InvalidIdentifierError.md
deleted file mode 100644
index f8c907a..0000000
--- a/docs/InvalidIdentifierError.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# OneSignalApi.Model.InvalidIdentifierError
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**InvalidExternalUserIds** | **List<string>** | Returned if using include_external_user_ids | [optional]
-**InvalidPlayerIds** | **List<string>** | Returned if using include_player_ids and some were valid and others were not. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/StringMap.md b/docs/LanguageStringMap.md
similarity index 98%
rename from docs/StringMap.md
rename to docs/LanguageStringMap.md
index 00a3f43..3375489 100644
--- a/docs/StringMap.md
+++ b/docs/LanguageStringMap.md
@@ -1,4 +1,4 @@
-# OneSignalApi.Model.StringMap
+# OneSignalApi.Model.LanguageStringMap
## Properties
diff --git a/docs/Notification.md b/docs/Notification.md
index e38b924..cd1223a 100644
--- a/docs/Notification.md
+++ b/docs/Notification.md
@@ -6,17 +6,16 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**IncludedSegments** | **List<string>** | The segment names you want to target. Users in these segments will receive a notification. This targeting parameter is only compatible with excluded_segments. Example: [\"Active Users\", \"Inactive Users\"] | [optional]
**ExcludedSegments** | **List<string>** | Segment that will be excluded when sending. Users in these segments will not receive a notification, even if they were included in included_segments. This targeting parameter is only compatible with included_segments. Example: [\"Active Users\", \"Inactive Users\"] | [optional]
-**IncludePlayerIds** | **List<string>** | Specific playerids to send your notification to. _Does not require API Auth Key. Do not combine with other targeting parameters. Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call | [optional]
-**IncludeExternalUserIds** | **List<string>** | Target specific devices by custom user IDs assigned via API. Not compatible with any other targeting parameters Example: [\"custom-id-assigned-by-api\"] REQUIRED: REST API Key Authentication Limit of 2,000 entries per REST API call. Note: If targeting push, email, or sms subscribers with same ids, use with channel_for_external_user_ids to indicate you are sending a push or email or sms. | [optional]
+**IncludeSubscriptionIds** | **List<string>** | Specific subscription ids to send your notification to. _Does not require API Auth Key._ Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call | [optional]
**IncludeEmailTokens** | **List<string>** | Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts Limit of 2,000 entries per REST API call | [optional]
**IncludePhoneNumbers** | **List<string>** | Recommended for Sending SMS - Target specific phone numbers. The phone number should be in the E.164 format. Phone number should be an existing subscriber on OneSignal. Refer our docs to learn how to add phone numbers to OneSignal. Example phone number: +1999999999 Limit of 2,000 entries per REST API call | [optional]
-**IncludeIosTokens** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using iOS device tokens. Warning: Only works with Production tokens. All non-alphanumeric characters must be removed from each token. If a token does not correspond to an existing user, a new user will be created. Example: ce777617da7f548fe7a9ab6febb56cf39fba6d38203... Limit of 2,000 entries per REST API call | [optional]
-**IncludeWpWnsUris** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Windows URIs. If a token does not correspond to an existing user, a new user will be created. Example: http://s.notify.live.net/u/1/bn1/HmQAAACPaLDr-... Limit of 2,000 entries per REST API call | [optional]
-**IncludeAmazonRegIds** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Amazon ADM registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: amzn1.adm-registration.v1.XpvSSUk0Rc3hTVVV... Limit of 2,000 entries per REST API call | [optional]
-**IncludeChromeRegIds** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Chrome App registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
-**IncludeChromeWebRegIds** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Chrome Web Push registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
-**IncludeAndroidRegIds** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
-**IncludeAliases** | [**PlayerNotificationTargetIncludeAliases**](PlayerNotificationTargetIncludeAliases.md) | | [optional]
+**IncludeIosTokens** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using iOS device tokens. Warning: Only works with Production tokens. All non-alphanumeric characters must be removed from each token. If a token does not correspond to an existing user, a new user will be created. Example: ce777617da7f548fe7a9ab6febb56cf39fba6d38203... Limit of 2,000 entries per REST API call | [optional]
+**IncludeWpWnsUris** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Windows URIs. If a token does not correspond to an existing user, a new user will be created. Example: http://s.notify.live.net/u/1/bn1/HmQAAACPaLDr-... Limit of 2,000 entries per REST API call | [optional]
+**IncludeAmazonRegIds** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Amazon ADM registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: amzn1.adm-registration.v1.XpvSSUk0Rc3hTVVV... Limit of 2,000 entries per REST API call | [optional]
+**IncludeChromeRegIds** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Chrome App registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
+**IncludeChromeWebRegIds** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Chrome Web Push registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
+**IncludeAndroidRegIds** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
+**IncludeAliases** | **Dictionary<string, List<string>>** | Target specific users by aliases assigned via API. An alias can be an external_id, onesignal_id, or a custom alias. Accepts an object where keys are alias labels and values are arrays of alias IDs to include Example usage: { \"external_id\": [\"exId1\", \"extId2\"], \"internal_label\": [\"id1\", \"id2\"] } Not compatible with any other targeting parameters. REQUIRED: REST API Key Authentication Limit of 2,000 entries per REST API call Note: If targeting push, email, or sms subscribers with same ids, use with target_channel to indicate you are sending a push or email or sms. | [optional]
**TargetChannel** | **string** | | [optional]
**Id** | **string** | | [optional]
**Value** | **int** | | [optional] [readonly]
@@ -32,13 +31,12 @@ Name | Type | Description | Notes
**IsWPWNS** | **bool?** | Indicates whether to send to all devices registered under your app's Windows platform. | [optional]
**IsAdm** | **bool?** | Indicates whether to send to all devices registered under your app's Amazon Fire platform. | [optional]
**IsChrome** | **bool?** | This flag is not used for web push Please see isChromeWeb for sending to web push users. This flag only applies to Google Chrome Apps & Extensions. Indicates whether to send to all devices registered under your app's Google Chrome Apps & Extension platform. | [optional]
-**ChannelForExternalUserIds** | **string** | Indicates if the message type when targeting with include_external_user_ids for cases where an email, sms, and/or push subscribers have the same external user id. Example: Use the string \"push\" to indicate you are sending a push notification or the string \"email\"for sending emails or \"sms\"for sending SMS. | [optional]
**AppId** | **string** | Required: Your OneSignal Application ID, which can be found in Keys & IDs. It is a UUID and looks similar to 8250eaf6-1a58-489e-b136-7c74a864b434. |
**ExternalId** | **string** | [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional]
**IdempotencyKey** | **string** | Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional]
-**Contents** | [**StringMap**](StringMap.md) | | [optional]
-**Headings** | [**StringMap**](StringMap.md) | | [optional]
-**Subtitle** | [**StringMap**](StringMap.md) | | [optional]
+**Contents** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional]
+**Headings** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional]
+**Subtitle** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional]
**Data** | **Object** | Channel: Push Notifications Platform: Huawei A custom map of data that is passed back to your app. Same as using Additional Data within the dashboard. Can use up to 2048 bytes of data. Example: {\"abc\": 123, \"foo\": \"bar\", \"event_performed\": true, \"amount\": 12.1} | [optional]
**HuaweiMsgType** | **string** | Channel: Push Notifications Platform: Huawei Use \"data\" or \"message\" depending on the type of notification you are sending. More details in Data & Background Notifications. | [optional]
**Url** | **string** | Channel: Push Notifications Platform: All The URL to open in the browser when a user clicks on the notification. Note: iOS needs https or updated NSAppTransportSecurity in plist This field supports inline substitutions. Omit if including web_url or app_url Example: https://onesignal.com | [optional]
@@ -55,7 +53,7 @@ Name | Type | Description | Notes
**ChromeBigPicture** | **string** | Channel: Push Notifications Platform: ChromeApp Large picture to display below the notification text. Must be a local URL. | [optional]
**ChromeWebImage** | **string** | Channel: Push Notifications Platform: Chrome 56+ Sets the web push notification's large image to be shown below the notification's title and text. Please see Web Push Notification Icons. | [optional]
**Buttons** | [**List<Button>**](Button.md) | Channel: Push Notifications Platform: iOS 8.0+, Android 4.1+, and derivatives like Amazon Buttons to add to the notification. Icon only works for Android. Buttons show in reverse order of array position i.e. Last item in array shows as first button on device. Example: [{\"id\": \"id2\", \"text\": \"second button\", \"icon\": \"ic_menu_share\"}, {\"id\": \"id1\", \"text\": \"first button\", \"icon\": \"ic_menu_send\"}] | [optional]
-**WebButtons** | [**List<Button>**](Button.md) | Channel: Push Notifications Platform: Chrome 48+ Add action buttons to the notification. The id field is required. Example: [{\"id\": \"like-button\", \"text\": \"Like\", \"icon\": \"http://i.imgur.com/N8SN8ZS.png\", \"url\": \"https://yoursite.com\"}, {\"id\": \"read-more-button\", \"text\": \"Read more\", \"icon\": \"http://i.imgur.com/MIxJp1L.png\", \"url\": \"https://yoursite.com\"}] | [optional]
+**WebButtons** | [**List<WebButton>**](WebButton.md) | Channel: Push Notifications Platform: Chrome 48+ Add action buttons to the notification. The id field is required. Example: [{\"id\": \"like-button\", \"text\": \"Like\", \"icon\": \"http://i.imgur.com/N8SN8ZS.png\", \"url\": \"https://yoursite.com\"}, {\"id\": \"read-more-button\", \"text\": \"Read more\", \"icon\": \"http://i.imgur.com/MIxJp1L.png\", \"url\": \"https://yoursite.com\"}] | [optional]
**IosCategory** | **string** | Channel: Push Notifications Platform: iOS Category APS payload, use with registerUserNotificationSettings:categories in your Objective-C / Swift code. Example: calendar category which contains actions like accept and decline iOS 10+ This will trigger your UNNotificationContentExtension whose ID matches this category. | [optional]
**AndroidChannelId** | **string** | Channel: Push Notifications Platform: Android The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it's id. | [optional]
**HuaweiChannelId** | **string** | Channel: Push Notifications Platform: Huawei The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it's id. | [optional]
@@ -101,6 +99,8 @@ Name | Type | Description | Notes
**ThreadId** | **string** | Channel: Push Notifications Platform: iOS 12+ This parameter is supported in iOS 12 and above. It allows you to group related notifications together. If two notifications have the same thread-id, they will both be added to the same group. | [optional]
**SummaryArg** | **string** | Channel: Push Notifications Platform: iOS 12+ When using thread_id to create grouped notifications in iOS 12+, you can also control the summary. For example, a grouped notification can say \"12 more notifications from John Doe\". The summary_arg lets you set the name of the person/thing the notifications are coming from, and will show up as \"X more notifications from summary_arg\" | [optional]
**SummaryArgCount** | **int** | Channel: Push Notifications Platform: iOS 12+ When using thread_id, you can also control the count of the number of notifications in the group. For example, if the group already has 12 notifications, and you send a new notification with summary_arg_count = 2, the new total will be 14 and the summary will be \"14 more notifications from summary_arg\" | [optional]
+**IosRelevanceScore** | **decimal?** | Channel: Push Notifications Platform: iOS 15+ A score to be set per notification to indicate how it should be displayed when grouped. Use a float between 0-1. | [optional]
+**IosInterruptionLevel** | **string** | Channel: Push Notifications Platform: iOS 15+ Focus Modes and Interruption Levels indicate the priority and delivery timing of a notification, to \"interrupt\" the user. Can choose from options: ['active', 'passive', 'time_sensitive', 'critical']. Default is active. | [optional]
**EmailSubject** | **string** | Channel: Email Required. The subject of the email. | [optional]
**EmailBody** | **string** | Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. | [optional]
**EmailFromName** | **string** | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional]
@@ -109,7 +109,7 @@ Name | Type | Description | Notes
**IncludeUnsubscribed** | **bool** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional]
**SmsFrom** | **string** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional]
**SmsMediaUrls** | **List<string>** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional]
-**Filters** | [**List<Filter>**](Filter.md) | | [optional]
+**Filters** | [**List<FilterExpression>**](FilterExpression.md) | | [optional]
**CustomData** | **Object** | Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} | [optional]
**SendAfter** | **DateTime?** | Channel: All Schedule notification for future delivery. API defaults to UTC -1100 Examples: All examples are the exact same date & time. \"Thu Sep 24 2015 14:00:00 GMT-0700 (PDT)\" \"September 24th 2015, 2:00:00 pm UTC-07:00\" \"2015-09-24 14:00:00 GMT-0700\" \"Sept 24 2015 14:00:00 GMT-0700\" \"Thu Sep 24 2015 14:00:00 GMT-0700 (Pacific Daylight Time)\" Note: SMS currently only supports send_after parameter. | [optional]
diff --git a/docs/Notification200Errors.md b/docs/Notification200Errors.md
deleted file mode 100644
index 9af8114..0000000
--- a/docs/Notification200Errors.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# OneSignalApi.Model.Notification200Errors
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**InvalidExternalUserIds** | **List<string>** | Returned if using include_external_user_ids | [optional]
-**InvalidPlayerIds** | **List<string>** | Returned if using include_player_ids and some were valid and others were not. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/NotificationTarget.md b/docs/NotificationTarget.md
index 2ee6451..237d863 100644
--- a/docs/NotificationTarget.md
+++ b/docs/NotificationTarget.md
@@ -6,17 +6,16 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**IncludedSegments** | **List<string>** | The segment names you want to target. Users in these segments will receive a notification. This targeting parameter is only compatible with excluded_segments. Example: [\"Active Users\", \"Inactive Users\"] | [optional]
**ExcludedSegments** | **List<string>** | Segment that will be excluded when sending. Users in these segments will not receive a notification, even if they were included in included_segments. This targeting parameter is only compatible with included_segments. Example: [\"Active Users\", \"Inactive Users\"] | [optional]
-**IncludePlayerIds** | **List<string>** | Specific playerids to send your notification to. _Does not require API Auth Key. Do not combine with other targeting parameters. Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call | [optional]
-**IncludeExternalUserIds** | **List<string>** | Target specific devices by custom user IDs assigned via API. Not compatible with any other targeting parameters Example: [\"custom-id-assigned-by-api\"] REQUIRED: REST API Key Authentication Limit of 2,000 entries per REST API call. Note: If targeting push, email, or sms subscribers with same ids, use with channel_for_external_user_ids to indicate you are sending a push or email or sms. | [optional]
+**IncludeSubscriptionIds** | **List<string>** | Specific subscription ids to send your notification to. _Does not require API Auth Key._ Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call | [optional]
**IncludeEmailTokens** | **List<string>** | Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts Limit of 2,000 entries per REST API call | [optional]
**IncludePhoneNumbers** | **List<string>** | Recommended for Sending SMS - Target specific phone numbers. The phone number should be in the E.164 format. Phone number should be an existing subscriber on OneSignal. Refer our docs to learn how to add phone numbers to OneSignal. Example phone number: +1999999999 Limit of 2,000 entries per REST API call | [optional]
-**IncludeIosTokens** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using iOS device tokens. Warning: Only works with Production tokens. All non-alphanumeric characters must be removed from each token. If a token does not correspond to an existing user, a new user will be created. Example: ce777617da7f548fe7a9ab6febb56cf39fba6d38203... Limit of 2,000 entries per REST API call | [optional]
-**IncludeWpWnsUris** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Windows URIs. If a token does not correspond to an existing user, a new user will be created. Example: http://s.notify.live.net/u/1/bn1/HmQAAACPaLDr-... Limit of 2,000 entries per REST API call | [optional]
-**IncludeAmazonRegIds** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Amazon ADM registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: amzn1.adm-registration.v1.XpvSSUk0Rc3hTVVV... Limit of 2,000 entries per REST API call | [optional]
-**IncludeChromeRegIds** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Chrome App registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
-**IncludeChromeWebRegIds** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Chrome Web Push registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
-**IncludeAndroidRegIds** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
-**IncludeAliases** | [**PlayerNotificationTargetIncludeAliases**](PlayerNotificationTargetIncludeAliases.md) | | [optional]
+**IncludeIosTokens** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using iOS device tokens. Warning: Only works with Production tokens. All non-alphanumeric characters must be removed from each token. If a token does not correspond to an existing user, a new user will be created. Example: ce777617da7f548fe7a9ab6febb56cf39fba6d38203... Limit of 2,000 entries per REST API call | [optional]
+**IncludeWpWnsUris** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Windows URIs. If a token does not correspond to an existing user, a new user will be created. Example: http://s.notify.live.net/u/1/bn1/HmQAAACPaLDr-... Limit of 2,000 entries per REST API call | [optional]
+**IncludeAmazonRegIds** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Amazon ADM registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: amzn1.adm-registration.v1.XpvSSUk0Rc3hTVVV... Limit of 2,000 entries per REST API call | [optional]
+**IncludeChromeRegIds** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Chrome App registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
+**IncludeChromeWebRegIds** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Chrome Web Push registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
+**IncludeAndroidRegIds** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
+**IncludeAliases** | **Dictionary<string, List<string>>** | Target specific users by aliases assigned via API. An alias can be an external_id, onesignal_id, or a custom alias. Accepts an object where keys are alias labels and values are arrays of alias IDs to include Example usage: { \"external_id\": [\"exId1\", \"extId2\"], \"internal_label\": [\"id1\", \"id2\"] } Not compatible with any other targeting parameters. REQUIRED: REST API Key Authentication Limit of 2,000 entries per REST API call Note: If targeting push, email, or sms subscribers with same ids, use with target_channel to indicate you are sending a push or email or sms. | [optional]
**TargetChannel** | **string** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/NotificationWithMeta.md b/docs/NotificationWithMeta.md
index 04f44d6..67c5585 100644
--- a/docs/NotificationWithMeta.md
+++ b/docs/NotificationWithMeta.md
@@ -6,17 +6,16 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**IncludedSegments** | **List<string>** | The segment names you want to target. Users in these segments will receive a notification. This targeting parameter is only compatible with excluded_segments. Example: [\"Active Users\", \"Inactive Users\"] | [optional]
**ExcludedSegments** | **List<string>** | Segment that will be excluded when sending. Users in these segments will not receive a notification, even if they were included in included_segments. This targeting parameter is only compatible with included_segments. Example: [\"Active Users\", \"Inactive Users\"] | [optional]
-**IncludePlayerIds** | **List<string>** | Specific playerids to send your notification to. _Does not require API Auth Key. Do not combine with other targeting parameters. Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call | [optional]
-**IncludeExternalUserIds** | **List<string>** | Target specific devices by custom user IDs assigned via API. Not compatible with any other targeting parameters Example: [\"custom-id-assigned-by-api\"] REQUIRED: REST API Key Authentication Limit of 2,000 entries per REST API call. Note: If targeting push, email, or sms subscribers with same ids, use with channel_for_external_user_ids to indicate you are sending a push or email or sms. | [optional]
+**IncludeSubscriptionIds** | **List<string>** | Specific subscription ids to send your notification to. _Does not require API Auth Key._ Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call | [optional]
**IncludeEmailTokens** | **List<string>** | Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts Limit of 2,000 entries per REST API call | [optional]
**IncludePhoneNumbers** | **List<string>** | Recommended for Sending SMS - Target specific phone numbers. The phone number should be in the E.164 format. Phone number should be an existing subscriber on OneSignal. Refer our docs to learn how to add phone numbers to OneSignal. Example phone number: +1999999999 Limit of 2,000 entries per REST API call | [optional]
-**IncludeIosTokens** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using iOS device tokens. Warning: Only works with Production tokens. All non-alphanumeric characters must be removed from each token. If a token does not correspond to an existing user, a new user will be created. Example: ce777617da7f548fe7a9ab6febb56cf39fba6d38203... Limit of 2,000 entries per REST API call | [optional]
-**IncludeWpWnsUris** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Windows URIs. If a token does not correspond to an existing user, a new user will be created. Example: http://s.notify.live.net/u/1/bn1/HmQAAACPaLDr-... Limit of 2,000 entries per REST API call | [optional]
-**IncludeAmazonRegIds** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Amazon ADM registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: amzn1.adm-registration.v1.XpvSSUk0Rc3hTVVV... Limit of 2,000 entries per REST API call | [optional]
-**IncludeChromeRegIds** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Chrome App registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
-**IncludeChromeWebRegIds** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Chrome Web Push registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
-**IncludeAndroidRegIds** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
-**IncludeAliases** | [**PlayerNotificationTargetIncludeAliases**](PlayerNotificationTargetIncludeAliases.md) | | [optional]
+**IncludeIosTokens** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using iOS device tokens. Warning: Only works with Production tokens. All non-alphanumeric characters must be removed from each token. If a token does not correspond to an existing user, a new user will be created. Example: ce777617da7f548fe7a9ab6febb56cf39fba6d38203... Limit of 2,000 entries per REST API call | [optional]
+**IncludeWpWnsUris** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Windows URIs. If a token does not correspond to an existing user, a new user will be created. Example: http://s.notify.live.net/u/1/bn1/HmQAAACPaLDr-... Limit of 2,000 entries per REST API call | [optional]
+**IncludeAmazonRegIds** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Amazon ADM registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: amzn1.adm-registration.v1.XpvSSUk0Rc3hTVVV... Limit of 2,000 entries per REST API call | [optional]
+**IncludeChromeRegIds** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Chrome App registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
+**IncludeChromeWebRegIds** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Chrome Web Push registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
+**IncludeAndroidRegIds** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
+**IncludeAliases** | **Dictionary<string, List<string>>** | Target specific users by aliases assigned via API. An alias can be an external_id, onesignal_id, or a custom alias. Accepts an object where keys are alias labels and values are arrays of alias IDs to include Example usage: { \"external_id\": [\"exId1\", \"extId2\"], \"internal_label\": [\"id1\", \"id2\"] } Not compatible with any other targeting parameters. REQUIRED: REST API Key Authentication Limit of 2,000 entries per REST API call Note: If targeting push, email, or sms subscribers with same ids, use with target_channel to indicate you are sending a push or email or sms. | [optional]
**TargetChannel** | **string** | | [optional]
**Id** | **string** | | [optional]
**Value** | **int** | | [optional] [readonly]
@@ -32,13 +31,12 @@ Name | Type | Description | Notes
**IsWPWNS** | **bool?** | Indicates whether to send to all devices registered under your app's Windows platform. | [optional]
**IsAdm** | **bool?** | Indicates whether to send to all devices registered under your app's Amazon Fire platform. | [optional]
**IsChrome** | **bool?** | This flag is not used for web push Please see isChromeWeb for sending to web push users. This flag only applies to Google Chrome Apps & Extensions. Indicates whether to send to all devices registered under your app's Google Chrome Apps & Extension platform. | [optional]
-**ChannelForExternalUserIds** | **string** | Indicates if the message type when targeting with include_external_user_ids for cases where an email, sms, and/or push subscribers have the same external user id. Example: Use the string \"push\" to indicate you are sending a push notification or the string \"email\"for sending emails or \"sms\"for sending SMS. | [optional]
**AppId** | **string** | Required: Your OneSignal Application ID, which can be found in Keys & IDs. It is a UUID and looks similar to 8250eaf6-1a58-489e-b136-7c74a864b434. |
**ExternalId** | **string** | [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional]
**IdempotencyKey** | **string** | Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional]
-**Contents** | [**StringMap**](StringMap.md) | | [optional]
-**Headings** | [**StringMap**](StringMap.md) | | [optional]
-**Subtitle** | [**StringMap**](StringMap.md) | | [optional]
+**Contents** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional]
+**Headings** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional]
+**Subtitle** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional]
**Data** | **Object** | Channel: Push Notifications Platform: Huawei A custom map of data that is passed back to your app. Same as using Additional Data within the dashboard. Can use up to 2048 bytes of data. Example: {\"abc\": 123, \"foo\": \"bar\", \"event_performed\": true, \"amount\": 12.1} | [optional]
**HuaweiMsgType** | **string** | Channel: Push Notifications Platform: Huawei Use \"data\" or \"message\" depending on the type of notification you are sending. More details in Data & Background Notifications. | [optional]
**Url** | **string** | Channel: Push Notifications Platform: All The URL to open in the browser when a user clicks on the notification. Note: iOS needs https or updated NSAppTransportSecurity in plist This field supports inline substitutions. Omit if including web_url or app_url Example: https://onesignal.com | [optional]
@@ -55,7 +53,7 @@ Name | Type | Description | Notes
**ChromeBigPicture** | **string** | Channel: Push Notifications Platform: ChromeApp Large picture to display below the notification text. Must be a local URL. | [optional]
**ChromeWebImage** | **string** | Channel: Push Notifications Platform: Chrome 56+ Sets the web push notification's large image to be shown below the notification's title and text. Please see Web Push Notification Icons. | [optional]
**Buttons** | [**List<Button>**](Button.md) | Channel: Push Notifications Platform: iOS 8.0+, Android 4.1+, and derivatives like Amazon Buttons to add to the notification. Icon only works for Android. Buttons show in reverse order of array position i.e. Last item in array shows as first button on device. Example: [{\"id\": \"id2\", \"text\": \"second button\", \"icon\": \"ic_menu_share\"}, {\"id\": \"id1\", \"text\": \"first button\", \"icon\": \"ic_menu_send\"}] | [optional]
-**WebButtons** | [**List<Button>**](Button.md) | Channel: Push Notifications Platform: Chrome 48+ Add action buttons to the notification. The id field is required. Example: [{\"id\": \"like-button\", \"text\": \"Like\", \"icon\": \"http://i.imgur.com/N8SN8ZS.png\", \"url\": \"https://yoursite.com\"}, {\"id\": \"read-more-button\", \"text\": \"Read more\", \"icon\": \"http://i.imgur.com/MIxJp1L.png\", \"url\": \"https://yoursite.com\"}] | [optional]
+**WebButtons** | [**List<WebButton>**](WebButton.md) | Channel: Push Notifications Platform: Chrome 48+ Add action buttons to the notification. The id field is required. Example: [{\"id\": \"like-button\", \"text\": \"Like\", \"icon\": \"http://i.imgur.com/N8SN8ZS.png\", \"url\": \"https://yoursite.com\"}, {\"id\": \"read-more-button\", \"text\": \"Read more\", \"icon\": \"http://i.imgur.com/MIxJp1L.png\", \"url\": \"https://yoursite.com\"}] | [optional]
**IosCategory** | **string** | Channel: Push Notifications Platform: iOS Category APS payload, use with registerUserNotificationSettings:categories in your Objective-C / Swift code. Example: calendar category which contains actions like accept and decline iOS 10+ This will trigger your UNNotificationContentExtension whose ID matches this category. | [optional]
**AndroidChannelId** | **string** | Channel: Push Notifications Platform: Android The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it's id. | [optional]
**HuaweiChannelId** | **string** | Channel: Push Notifications Platform: Huawei The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it's id. | [optional]
@@ -101,6 +99,8 @@ Name | Type | Description | Notes
**ThreadId** | **string** | Channel: Push Notifications Platform: iOS 12+ This parameter is supported in iOS 12 and above. It allows you to group related notifications together. If two notifications have the same thread-id, they will both be added to the same group. | [optional]
**SummaryArg** | **string** | Channel: Push Notifications Platform: iOS 12+ When using thread_id to create grouped notifications in iOS 12+, you can also control the summary. For example, a grouped notification can say \"12 more notifications from John Doe\". The summary_arg lets you set the name of the person/thing the notifications are coming from, and will show up as \"X more notifications from summary_arg\" | [optional]
**SummaryArgCount** | **int** | Channel: Push Notifications Platform: iOS 12+ When using thread_id, you can also control the count of the number of notifications in the group. For example, if the group already has 12 notifications, and you send a new notification with summary_arg_count = 2, the new total will be 14 and the summary will be \"14 more notifications from summary_arg\" | [optional]
+**IosRelevanceScore** | **decimal?** | Channel: Push Notifications Platform: iOS 15+ A score to be set per notification to indicate how it should be displayed when grouped. Use a float between 0-1. | [optional]
+**IosInterruptionLevel** | **string** | Channel: Push Notifications Platform: iOS 15+ Focus Modes and Interruption Levels indicate the priority and delivery timing of a notification, to \"interrupt\" the user. Can choose from options: ['active', 'passive', 'time_sensitive', 'critical']. Default is active. | [optional]
**EmailSubject** | **string** | Channel: Email Required. The subject of the email. | [optional]
**EmailBody** | **string** | Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. | [optional]
**EmailFromName** | **string** | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional]
@@ -109,7 +109,7 @@ Name | Type | Description | Notes
**IncludeUnsubscribed** | **bool** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional]
**SmsFrom** | **string** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional]
**SmsMediaUrls** | **List<string>** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional]
-**Filters** | [**List<Filter>**](Filter.md) | | [optional]
+**Filters** | [**List<FilterExpression>**](FilterExpression.md) | | [optional]
**CustomData** | **Object** | Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} | [optional]
**Successful** | **int** | Number of notifications that were successfully delivered. | [optional]
**Failed** | **int** | Number of notifications that could not be delivered due to those devices being unsubscribed. | [optional]
diff --git a/docs/Player.md b/docs/Player.md
deleted file mode 100644
index 86fd3e9..0000000
--- a/docs/Player.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# OneSignalApi.Model.Player
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **string** | The device's OneSignal ID | [optional] [readonly]
-**InvalidIdentifier** | **bool** | If true, this is the equivalent of a user being Unsubscribed | [optional] [readonly]
-**AppId** | **string** | | [optional]
-**DeviceType** | **int** | Required The device's platform: 0 = iOS 1 = Android 2 = Amazon 3 = WindowsPhone (MPNS) 4 = Chrome Apps / Extensions 5 = Chrome Web Push 6 = Windows (WNS) 7 = Safari 8 = Firefox 9 = MacOS 10 = Alexa 11 = Email 13 = For Huawei App Gallery Builds SDK Setup. Not for Huawei Devices using FCM 14 = SMS |
-**ExternalUserId** | **string** | a custom user ID | [optional]
-**ExternalUserIdAuthHash** | **string** | Only required if you have enabled Identity Verification and device_type is NOT 11 email. | [optional]
-**EmailAuthHash** | **string** | Email - Only required if you have enabled Identity Verification and device_type is email (11). | [optional]
-**Identifier** | **string** | Recommended: For Push Notifications, this is the Push Token Identifier from Google or Apple. For Apple Push identifiers, you must strip all non alphanumeric characters. Examples: iOS: 7abcd558f29d0b1f048083e2834ad8ea4b3d87d8ad9c088b33c132706ff445f0 Android: APA91bHbYHk7aq-Uam_2pyJ2qbZvqllyyh2wjfPRaw5gLEX2SUlQBRvOc6sck1sa7H7nGeLNlDco8lXj83HWWwzV... For Email Addresses, set the full email address email@email.com and make sure to set device_type to 11. | [optional]
-**Language** | **string** | Language code. Typically lower case two letters, except for Chinese where it must be one of zh-Hans or zh-Hant. Example: en | [optional]
-**Timezone** | **int?** | Number of seconds away from UTC. Example: -28800 | [optional]
-**GameVersion** | **string** | Version of your app. Example: 1.1 | [optional]
-**DeviceModel** | **string** | Device make and model. Example: iPhone5,1 | [optional]
-**DeviceOs** | **string** | Device operating system version. Example: 7.0.4 | [optional]
-**AdId** | **string** | The ad id for the device's platform: Android = Advertising Id iOS = identifierForVendor WP8.0 = DeviceUniqueId WP8.1 = AdvertisingId | [optional]
-**Sdk** | **string** | Name and version of the sdk/plugin that's calling this API method (if any) | [optional]
-**SessionCount** | **int** | Number of times the user has played the game, defaults to 1 | [optional]
-**Tags** | **Object** | Custom tags for the player. Only support string and integer key value pairs. Does not support arrays or other nested objects. Setting a tag value to null or an empty string will remove the tag. Example: {\"foo\":\"bar\",\"this\":\"that\"} Limitations: - 100 tags per call - Android SDK users: tags cannot be removed or changed via API if set through SDK sendTag methods. Recommended to only tag devices with 1 kilobyte of data Please consider using your own Database to save more than 1 kilobyte of data. See: Internal Database & CRM | [optional]
-**AmountSpent** | **decimal** | Amount the user has spent in USD, up to two decimal places | [optional]
-**CreatedAt** | **long** | Unixtime when the player joined the game | [optional]
-**Playtime** | **long** | Seconds player was running your app. | [optional]
-**BadgeCount** | **int** | Current iOS badge count displayed on the app icon NOTE: Not supported for apps created after June 2018, since badge count for apps created after this date are handled on the client. | [optional]
-**LastActive** | **int** | Unixtime when the player was last active | [optional]
-**NotificationTypes** | **int** | 1 = subscribed -2 = unsubscribed iOS - These values are set each time the user opens the app from the SDK. Use the SDK function set Subscription instead. Android - You may set this but you can no longer use the SDK method setSubscription later in your app as it will create synchronization issues. | [optional]
-**TestType** | **int?** | This is used in deciding whether to use your iOS Sandbox or Production push certificate when sending a push when both have been uploaded. Set to the iOS provisioning profile that was used to build your app. 1 = Development 2 = Ad-Hoc Omit this field for App Store builds. | [optional]
-**Long** | **decimal** | Longitude of the device, used for geotagging to segment on. | [optional]
-**Lat** | **decimal** | Latitude of the device, used for geotagging to segment on. | [optional]
-**Country** | **string** | Country code in the ISO 3166-1 Alpha 2 format | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/PlayerNotificationTarget.md b/docs/PlayerNotificationTarget.md
deleted file mode 100644
index a8725fb..0000000
--- a/docs/PlayerNotificationTarget.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# OneSignalApi.Model.PlayerNotificationTarget
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**IncludePlayerIds** | **List<string>** | Specific playerids to send your notification to. _Does not require API Auth Key. Do not combine with other targeting parameters. Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call | [optional]
-**IncludeExternalUserIds** | **List<string>** | Target specific devices by custom user IDs assigned via API. Not compatible with any other targeting parameters Example: [\"custom-id-assigned-by-api\"] REQUIRED: REST API Key Authentication Limit of 2,000 entries per REST API call. Note: If targeting push, email, or sms subscribers with same ids, use with channel_for_external_user_ids to indicate you are sending a push or email or sms. | [optional]
-**IncludeEmailTokens** | **List<string>** | Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts Limit of 2,000 entries per REST API call | [optional]
-**IncludePhoneNumbers** | **List<string>** | Recommended for Sending SMS - Target specific phone numbers. The phone number should be in the E.164 format. Phone number should be an existing subscriber on OneSignal. Refer our docs to learn how to add phone numbers to OneSignal. Example phone number: +1999999999 Limit of 2,000 entries per REST API call | [optional]
-**IncludeIosTokens** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using iOS device tokens. Warning: Only works with Production tokens. All non-alphanumeric characters must be removed from each token. If a token does not correspond to an existing user, a new user will be created. Example: ce777617da7f548fe7a9ab6febb56cf39fba6d38203... Limit of 2,000 entries per REST API call | [optional]
-**IncludeWpWnsUris** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Windows URIs. If a token does not correspond to an existing user, a new user will be created. Example: http://s.notify.live.net/u/1/bn1/HmQAAACPaLDr-... Limit of 2,000 entries per REST API call | [optional]
-**IncludeAmazonRegIds** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Amazon ADM registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: amzn1.adm-registration.v1.XpvSSUk0Rc3hTVVV... Limit of 2,000 entries per REST API call | [optional]
-**IncludeChromeRegIds** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Chrome App registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
-**IncludeChromeWebRegIds** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Chrome Web Push registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
-**IncludeAndroidRegIds** | **List<string>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
-**IncludeAliases** | [**PlayerNotificationTargetIncludeAliases**](PlayerNotificationTargetIncludeAliases.md) | | [optional]
-**TargetChannel** | **string** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/PlayerNotificationTargetIncludeAliases.md b/docs/PlayerNotificationTargetIncludeAliases.md
deleted file mode 100644
index 4dc5562..0000000
--- a/docs/PlayerNotificationTargetIncludeAliases.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# OneSignalApi.Model.PlayerNotificationTargetIncludeAliases
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**AliasLabel** | **List<string>** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/PlayerSlice.md b/docs/PlayerSlice.md
deleted file mode 100644
index 4d7cc6e..0000000
--- a/docs/PlayerSlice.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# OneSignalApi.Model.PlayerSlice
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**TotalCount** | **int** | | [optional]
-**Offset** | **int** | | [optional]
-**Limit** | **int** | | [optional]
-**Players** | [**List<Player>**](Player.md) | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/InlineResponse202.md b/docs/PropertiesBody.md
similarity index 90%
rename from docs/InlineResponse202.md
rename to docs/PropertiesBody.md
index d571f53..aa9881c 100644
--- a/docs/InlineResponse202.md
+++ b/docs/PropertiesBody.md
@@ -1,4 +1,4 @@
-# OneSignalApi.Model.InlineResponse202
+# OneSignalApi.Model.PropertiesBody
## Properties
diff --git a/docs/PropertiesDeltas.md b/docs/PropertiesDeltas.md
index 4787e45..d0203ed 100644
--- a/docs/PropertiesDeltas.md
+++ b/docs/PropertiesDeltas.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**SessionTime** | **decimal** | | [optional]
-**SessionCount** | **decimal** | | [optional]
+**SessionTime** | **int** | | [optional]
+**SessionCount** | **int** | | [optional]
**Purchases** | [**List<Purchase>**](Purchase.md) | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/PropertiesObject.md b/docs/PropertiesObject.md
index 3270b93..2f53e95 100644
--- a/docs/PropertiesObject.md
+++ b/docs/PropertiesObject.md
@@ -10,8 +10,8 @@ Name | Type | Description | Notes
**Lat** | **decimal** | | [optional]
**Long** | **decimal** | | [optional]
**Country** | **string** | | [optional]
-**FirstActive** | **decimal** | | [optional]
-**LastActive** | **decimal** | | [optional]
+**FirstActive** | **int** | | [optional]
+**LastActive** | **int** | | [optional]
**AmountSpent** | **decimal** | | [optional]
**Purchases** | [**List<Purchase>**](Purchase.md) | | [optional]
**Ip** | **string** | | [optional]
diff --git a/docs/Purchase.md b/docs/Purchase.md
index d378a5b..1e4c90a 100644
--- a/docs/Purchase.md
+++ b/docs/Purchase.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Sku** | **string** | The unique identifier of the purchased item. |
**Amount** | **string** | The amount, in USD, spent purchasing the item. |
**Iso** | **string** | The 3-letter ISO 4217 currency code. Required for correct storage and conversion of amount. |
-**Count** | **decimal** | | [optional]
+**Count** | **int** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/BeginLiveActivityRequest.md b/docs/RateLimitError.md
similarity index 68%
rename from docs/BeginLiveActivityRequest.md
rename to docs/RateLimitError.md
index b587d7e..f8877a2 100644
--- a/docs/BeginLiveActivityRequest.md
+++ b/docs/RateLimitError.md
@@ -1,11 +1,11 @@
-# OneSignalApi.Model.BeginLiveActivityRequest
+# OneSignalApi.Model.RateLimitError
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**PushToken** | **string** | |
-**SubscriptionId** | **string** | |
+**Errors** | **List<string>** | | [optional]
+**Limit** | **string** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/Segment.md b/docs/Segment.md
index 68c91d5..f88cfeb 100644
--- a/docs/Segment.md
+++ b/docs/Segment.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **string** | UUID of the segment. If left empty, it will be assigned automaticaly. | [optional]
**Name** | **string** | Name of the segment. You'll see this name on the Web UI. |
-**Filters** | [**List<FilterExpressions>**](FilterExpressions.md) | Filter or operators the segment will have. For a list of available filters with details, please see Send to Users Based on Filters. |
+**Filters** | [**List<FilterExpression>**](FilterExpression.md) | Filter or operators the segment will have. For a list of available filters with details, please see Send to Users Based on Filters. |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/SegmentData.md b/docs/SegmentData.md
new file mode 100644
index 0000000..5405fb5
--- /dev/null
+++ b/docs/SegmentData.md
@@ -0,0 +1,16 @@
+# OneSignalApi.Model.SegmentData
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Id** | **string** | The segment ID | [optional]
+**Name** | **string** | The segment name | [optional]
+**CreatedAt** | **string** | Date segment created | [optional]
+**UpdatedAt** | **string** | Date segment last updated | [optional]
+**AppId** | **string** | The app id | [optional]
+**ReadOnly** | **bool** | Is the segment read only? | [optional]
+**IsActive** | **bool** | Is the segment active? | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/SubscriptionObject.md b/docs/Subscription.md
similarity index 73%
rename from docs/SubscriptionObject.md
rename to docs/Subscription.md
index 96ff478..6269786 100644
--- a/docs/SubscriptionObject.md
+++ b/docs/Subscription.md
@@ -1,4 +1,4 @@
-# OneSignalApi.Model.SubscriptionObject
+# OneSignalApi.Model.Subscription
## Properties
@@ -8,16 +8,16 @@ Name | Type | Description | Notes
**Type** | **string** | | [optional]
**Token** | **string** | | [optional]
**Enabled** | **bool** | | [optional]
-**NotificationTypes** | **decimal** | | [optional]
-**SessionTime** | **decimal** | | [optional]
-**SessionCount** | **decimal** | | [optional]
+**NotificationTypes** | **int** | | [optional]
+**SessionTime** | **int** | | [optional]
+**SessionCount** | **int** | | [optional]
**Sdk** | **string** | | [optional]
**DeviceModel** | **string** | | [optional]
**DeviceOs** | **string** | | [optional]
**Rooted** | **bool** | | [optional]
-**TestType** | **decimal** | | [optional]
+**TestType** | **int** | | [optional]
**AppVersion** | **string** | | [optional]
-**NetType** | **decimal** | | [optional]
+**NetType** | **int** | | [optional]
**Carrier** | **string** | | [optional]
**WebAuth** | **string** | | [optional]
**WebP256** | **string** | | [optional]
diff --git a/docs/DeleteSegmentNotFoundResponse.md b/docs/SubscriptionBody.md
similarity index 71%
rename from docs/DeleteSegmentNotFoundResponse.md
rename to docs/SubscriptionBody.md
index 0d403f2..69e8041 100644
--- a/docs/DeleteSegmentNotFoundResponse.md
+++ b/docs/SubscriptionBody.md
@@ -1,10 +1,10 @@
-# OneSignalApi.Model.DeleteSegmentNotFoundResponse
+# OneSignalApi.Model.SubscriptionBody
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Success** | **bool** | | [optional]
+**Subscription** | [**Subscription**](Subscription.md) | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/SubscriptionNotificationTarget.md b/docs/SubscriptionNotificationTarget.md
new file mode 100644
index 0000000..336ca63
--- /dev/null
+++ b/docs/SubscriptionNotificationTarget.md
@@ -0,0 +1,20 @@
+# OneSignalApi.Model.SubscriptionNotificationTarget
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**IncludeSubscriptionIds** | **List<string>** | Specific subscription ids to send your notification to. _Does not require API Auth Key._ Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call | [optional]
+**IncludeEmailTokens** | **List<string>** | Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts Limit of 2,000 entries per REST API call | [optional]
+**IncludePhoneNumbers** | **List<string>** | Recommended for Sending SMS - Target specific phone numbers. The phone number should be in the E.164 format. Phone number should be an existing subscriber on OneSignal. Refer our docs to learn how to add phone numbers to OneSignal. Example phone number: +1999999999 Limit of 2,000 entries per REST API call | [optional]
+**IncludeIosTokens** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using iOS device tokens. Warning: Only works with Production tokens. All non-alphanumeric characters must be removed from each token. If a token does not correspond to an existing user, a new user will be created. Example: ce777617da7f548fe7a9ab6febb56cf39fba6d38203... Limit of 2,000 entries per REST API call | [optional]
+**IncludeWpWnsUris** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Windows URIs. If a token does not correspond to an existing user, a new user will be created. Example: http://s.notify.live.net/u/1/bn1/HmQAAACPaLDr-... Limit of 2,000 entries per REST API call | [optional]
+**IncludeAmazonRegIds** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Amazon ADM registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: amzn1.adm-registration.v1.XpvSSUk0Rc3hTVVV... Limit of 2,000 entries per REST API call | [optional]
+**IncludeChromeRegIds** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Chrome App registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
+**IncludeChromeWebRegIds** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Chrome Web Push registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
+**IncludeAndroidRegIds** | **List<string>** | Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional]
+**IncludeAliases** | **Dictionary<string, List<string>>** | Target specific users by aliases assigned via API. An alias can be an external_id, onesignal_id, or a custom alias. Accepts an object where keys are alias labels and values are arrays of alias IDs to include Example usage: { \"external_id\": [\"exId1\", \"extId2\"], \"internal_label\": [\"id1\", \"id2\"] } Not compatible with any other targeting parameters. REQUIRED: REST API Key Authentication Limit of 2,000 entries per REST API call Note: If targeting push, email, or sms subscribers with same ids, use with target_channel to indicate you are sending a push or email or sms. | [optional]
+**TargetChannel** | **string** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/TransferSubscriptionRequestBody.md b/docs/TransferSubscriptionRequestBody.md
index 0f225bb..56b008a 100644
--- a/docs/TransferSubscriptionRequestBody.md
+++ b/docs/TransferSubscriptionRequestBody.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Identity** | **Dictionary<string, Object>** | | [optional]
+**Identity** | **Dictionary<string, string>** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/UpdateLiveActivityRequest.md b/docs/UpdateLiveActivityRequest.md
index 46fdb75..b141c23 100644
--- a/docs/UpdateLiveActivityRequest.md
+++ b/docs/UpdateLiveActivityRequest.md
@@ -4,10 +4,15 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Name** | **string** | Type of live activity |
+**Name** | **string** | An internal name to assist with your campaign organization. This does not get displayed in the message itself. |
**Event** | **string** | |
-**EventUpdates** | **Object** | |
-**DismissAt** | **decimal** | Timestamp; only allowed if event is \"end\" | [optional]
+**EventUpdates** | **Object** | This must match the ContentState interface you have defined within your Live Activity in your app. |
+**Contents** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional]
+**Headings** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional]
+**Sound** | **string** | Sound file that is included in your app to play instead of the default device notification sound. Omit to disable vibration and sound for the notification. | [optional]
+**StaleDate** | **int** | Accepts Unix timestamp in seconds. When time reaches the configured stale date, the system considers the Live Activity out of date, and the ActivityState of the Live Activity changes to ActivityState.stale. | [optional]
+**DismissalDate** | **int** | Accepts Unix timestamp in seconds; only allowed if event is \"end\" | [optional]
+**Priority** | **int** | Delivery priority through the the push provider (APNs). Pass 10 for higher priority notifications, or 5 for lower priority notifications. Lower priority notifications are sent based on the power considerations of the end user's device. If not set, defaults to 10. Some providers (APNs) allow for a limited budget of high priority notifications per hour, and if that budget is exceeded, the provider may throttle notification delivery. | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/UpdateLiveActivitySuccessResponse.md b/docs/UpdateLiveActivitySuccessResponse.md
index 097810d..06dcd9d 100644
--- a/docs/UpdateLiveActivitySuccessResponse.md
+++ b/docs/UpdateLiveActivitySuccessResponse.md
@@ -4,8 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**NotificationId** | **string** | | [optional]
-**Errors** | [**Notification200Errors**](Notification200Errors.md) | | [optional]
+**Id** | **string** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/UpdatePlayerSuccessResponse.md b/docs/UpdatePlayerSuccessResponse.md
deleted file mode 100644
index 30a7e95..0000000
--- a/docs/UpdatePlayerSuccessResponse.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# OneSignalApi.Model.UpdatePlayerSuccessResponse
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Success** | **bool** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/UpdatePlayerTagsRequestBody.md b/docs/UpdatePlayerTagsRequestBody.md
deleted file mode 100644
index df75800..0000000
--- a/docs/UpdatePlayerTagsRequestBody.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# OneSignalApi.Model.UpdatePlayerTagsRequestBody
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Tags** | **Object** | Custom tags for the device record. Only support string key value pairs. Does not support arrays or other nested objects. Example `{\"foo\":\"bar\",\"this\":\"that\"}`. Limitations: - 100 tags per call - Android SDK users: tags cannot be removed or changed via API if set through SDK sendTag methods. Recommended to only tag devices with 1 kilobyte of ata Please consider using your own Database to save more than 1 kilobyte of data. See: Internal Database & CRM | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/UpdatePlayerTagsSuccessResponse.md b/docs/UpdatePlayerTagsSuccessResponse.md
deleted file mode 100644
index 461f611..0000000
--- a/docs/UpdatePlayerTagsSuccessResponse.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# OneSignalApi.Model.UpdatePlayerTagsSuccessResponse
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Success** | **bool** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/UpdateSubscriptionRequestBody.md b/docs/UpdateSubscriptionRequestBody.md
deleted file mode 100644
index dd8cb9b..0000000
--- a/docs/UpdateSubscriptionRequestBody.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# OneSignalApi.Model.UpdateSubscriptionRequestBody
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Subscription** | [**SubscriptionObject**](SubscriptionObject.md) | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/User.md b/docs/User.md
index 926913f..4bd280c 100644
--- a/docs/User.md
+++ b/docs/User.md
@@ -5,9 +5,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Properties** | [**PropertiesObject**](PropertiesObject.md) | | [optional]
-**Identity** | **Dictionary<string, Object>** | | [optional]
-**Subscriptions** | [**List<SubscriptionObject>**](SubscriptionObject.md) | | [optional]
-**SubscriptionOptions** | [**UserSubscriptionOptions**](UserSubscriptionOptions.md) | | [optional]
+**Identity** | **Dictionary<string, string>** | | [optional]
+**Subscriptions** | [**List<Subscription>**](Subscription.md) | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse200.md b/docs/UserIdentityBody.md
similarity index 73%
rename from docs/InlineResponse200.md
rename to docs/UserIdentityBody.md
index 4182276..ed7b3c8 100644
--- a/docs/InlineResponse200.md
+++ b/docs/UserIdentityBody.md
@@ -1,10 +1,10 @@
-# OneSignalApi.Model.InlineResponse200
+# OneSignalApi.Model.UserIdentityBody
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Identity** | **Dictionary<string, Object>** | | [optional]
+**Identity** | **Dictionary<string, string>** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/UserIdentityRequestBody.md b/docs/UserIdentityRequestBody.md
deleted file mode 100644
index c43ae81..0000000
--- a/docs/UserIdentityRequestBody.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# OneSignalApi.Model.UserIdentityRequestBody
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Identity** | **Dictionary<string, Object>** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/UserIdentityResponse.md b/docs/UserIdentityResponse.md
deleted file mode 100644
index 05a665d..0000000
--- a/docs/UserIdentityResponse.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# OneSignalApi.Model.UserIdentityResponse
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Identity** | **Dictionary<string, Object>** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/UserSubscriptionOptions.md b/docs/UserSubscriptionOptions.md
deleted file mode 100644
index cdefd17..0000000
--- a/docs/UserSubscriptionOptions.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# OneSignalApi.Model.UserSubscriptionOptions
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**RetainPreviousOwner** | **bool** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/CancelNotificationSuccessResponse.md b/docs/WebButton.md
similarity index 61%
rename from docs/CancelNotificationSuccessResponse.md
rename to docs/WebButton.md
index 5f973c9..6829cb5 100644
--- a/docs/CancelNotificationSuccessResponse.md
+++ b/docs/WebButton.md
@@ -1,10 +1,13 @@
-# OneSignalApi.Model.CancelNotificationSuccessResponse
+# OneSignalApi.Model.WebButton
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Success** | **bool** | | [optional]
+**Id** | **string** | |
+**Text** | **string** | | [optional]
+**Icon** | **string** | | [optional]
+**Url** | **string** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/src/OneSignalApi/Api/DefaultApi.cs b/src/OneSignalApi/Api/DefaultApi.cs
index ca9a7be..06adebe 100644
--- a/src/OneSignalApi/Api/DefaultApi.cs
+++ b/src/OneSignalApi/Api/DefaultApi.cs
@@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 5.0.1
* Contact: devrel@onesignal.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -28,57 +28,86 @@ public interface IDefaultApiSync : IApiAccessor
{
#region Synchronous Operations
///
- /// Start Live Activity
+ /// Stop a scheduled or currently outgoing notification
///
///
- /// Starts a Live Activity
+ /// Used to stop a scheduled or currently outgoing notification
///
/// Thrown when fails to make API call
- /// The OneSignal App ID for your app. Available in Keys & IDs.
- /// Live Activity record ID
- ///
+ ///
+ ///
/// Index associated with the operation.
- ///
- void BeginLiveActivity(string appId, string activityId, BeginLiveActivityRequest beginLiveActivityRequest, int operationIndex = 0);
+ /// GenericSuccessBoolResponse
+ GenericSuccessBoolResponse CancelNotification(string appId, string notificationId, int operationIndex = 0);
///
- /// Start Live Activity
+ /// Stop a scheduled or currently outgoing notification
///
///
- /// Starts a Live Activity
+ /// Used to stop a scheduled or currently outgoing notification
///
/// Thrown when fails to make API call
- /// The OneSignal App ID for your app. Available in Keys & IDs.
- /// Live Activity record ID
- ///
+ ///
+ ///
/// Index associated with the operation.
- /// ApiResponse of Object(void)
- ApiResponse