You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DefaultApi.md
+215Lines changed: 215 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,15 @@ All URIs are relative to *https://onesignal.com/api/v1*
4
4
5
5
Method | HTTP request | Description
6
6
------------- | ------------- | -------------
7
+
[**beginLiveActivity**](DefaultApi.md#beginLiveActivity) | **POST** /apps/{app_id}/live_activities/{activity_id}/token | Start Live Activity
7
8
[**cancelNotification**](DefaultApi.md#cancelNotification) | **DELETE** /notifications/{notification_id} | Stop a scheduled or currently outgoing notification
8
9
[**createApp**](DefaultApi.md#createApp) | **POST** /apps | Create an app
[**updateApp**](DefaultApi.md#updateApp) | **PUT** /apps/{app_id} | Update an app
26
+
[**updateLiveActivity**](DefaultApi.md#updateLiveActivity) | **POST** /apps/{app_id}/live_activities/{activity_id}/notifications | Update a Live Activity via Push
**appId** | [**string**] | The OneSignal App ID for your app. Available in Keys & IDs. | defaults to undefined
70
+
**activityId** | [**string**] | Live Activity record ID | defaults to undefined
71
+
72
+
73
+
### Return type
74
+
75
+
**void**
76
+
77
+
### Authorization
78
+
79
+
[app_key](README.md#app_key)
80
+
81
+
### HTTP request headers
82
+
83
+
-**Content-Type**: application/json
84
+
-**Accept**: application/json
85
+
86
+
87
+
### HTTP response details
88
+
| Status code | Description | Response headers |
89
+
|-------------|-------------|------------------|
90
+
**204** | OK | - |
91
+
**400** | Bad Request | - |
92
+
93
+
[[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)
@@ -79,6 +146,7 @@ Name | Type | Description | Notes
79
146
| Status code | Description | Response headers |
80
147
|-------------|-------------|------------------|
81
148
**200** | OK | - |
149
+
**400** | Bad Request | - |
82
150
83
151
[[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)
84
152
@@ -112,6 +180,10 @@ let body:.DefaultApiCreateAppRequest = {
@@ -151,6 +223,7 @@ Name | Type | Description | Notes
151
223
| Status code | Description | Response headers |
152
224
|-------------|-------------|------------------|
153
225
**200** | OK | - |
226
+
**400** | Bad Request | - |
154
227
155
228
[[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)
156
229
@@ -286,6 +359,7 @@ Name | Type | Description | Notes
286
359
| Status code | Description | Response headers |
287
360
|-------------|-------------|------------------|
288
361
**200** | OK | - |
362
+
**400** | Bad Request | - |
289
363
290
364
[[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)
291
365
@@ -472,6 +546,67 @@ Name | Type | Description | Notes
472
546
473
547
[[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)
**appId** | [**string**] | The OneSignal App ID for your app. Available in Keys & IDs. | defaults to undefined
584
+
**activityId** | [**string**] | Live Activity record ID | defaults to undefined
585
+
**subscriptionId** | [**string**] | Subscription ID | defaults to undefined
586
+
587
+
588
+
### Return type
589
+
590
+
**void**
591
+
592
+
### Authorization
593
+
594
+
[app_key](README.md#app_key)
595
+
596
+
### HTTP request headers
597
+
598
+
-**Content-Type**: Not defined
599
+
-**Accept**: application/json
600
+
601
+
602
+
### HTTP response details
603
+
| Status code | Description | Response headers |
604
+
|-------------|-------------|------------------|
605
+
**204** | OK | - |
606
+
**400** | Bad Request | - |
607
+
608
+
[[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)
609
+
475
610
# **exportPlayers**
476
611
> ExportPlayersSuccessResponse exportPlayers()
477
612
@@ -587,6 +722,7 @@ Name | Type | Description | Notes
587
722
| Status code | Description | Response headers |
588
723
|-------------|-------------|------------------|
589
724
**200** | OK | - |
725
+
**400** | Bad Request | - |
590
726
591
727
[[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)
592
728
@@ -635,6 +771,7 @@ This endpoint does not need any parameter.
635
771
| Status code | Description | Response headers |
636
772
|-------------|-------------|------------------|
637
773
**200** | OK | - |
774
+
**400** | Bad Request | - |
638
775
639
776
[[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)
640
777
@@ -692,6 +829,7 @@ Name | Type | Description | Notes
692
829
| Status code | Description | Response headers |
693
830
|-------------|-------------|------------------|
694
831
**200** | OK | - |
832
+
**400** | Bad Request | - |
695
833
696
834
[[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)
697
835
@@ -817,6 +955,7 @@ Name | Type | Description | Notes
817
955
| Status code | Description | Response headers |
818
956
|-------------|-------------|------------------|
819
957
**200** | OK | - |
958
+
**400** | Bad Request | - |
820
959
821
960
[[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)
822
961
@@ -886,6 +1025,7 @@ Name | Type | Description | Notes
886
1025
| Status code | Description | Response headers |
887
1026
|-------------|-------------|------------------|
888
1027
**200** | OK | - |
1028
+
**400** | Bad Request | - |
889
1029
890
1030
[[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)
891
1031
@@ -946,6 +1086,7 @@ Name | Type | Description | Notes
946
1086
| Status code | Description | Response headers |
947
1087
|-------------|-------------|------------------|
948
1088
**200** | OK | - |
1089
+
**400** | Bad Request | - |
949
1090
950
1091
[[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)
951
1092
@@ -1006,6 +1147,7 @@ Name | Type | Description | Notes
1006
1147
| Status code | Description | Response headers |
1007
1148
|-------------|-------------|------------------|
1008
1149
**200** | OK | - |
1150
+
**400** | Bad Request | - |
1009
1151
1010
1152
[[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)
1011
1153
@@ -1041,6 +1183,10 @@ let body:.DefaultApiUpdateAppRequest = {
@@ -1081,6 +1227,73 @@ Name | Type | Description | Notes
1081
1227
| Status code | Description | Response headers |
1082
1228
|-------------|-------------|------------------|
1083
1229
**200** | OK | - |
1230
+
**400** | Bad Request | - |
1231
+
1232
+
[[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)
**appId** | [**string**] | The OneSignal App ID for your app. Available in Keys & IDs. | defaults to undefined
1275
+
**activityId** | [**string**] | Live Activity record ID | defaults to undefined
1276
+
1277
+
1278
+
### Return type
1279
+
1280
+
**UpdateLiveActivitySuccessResponse**
1281
+
1282
+
### Authorization
1283
+
1284
+
[app_key](README.md#app_key)
1285
+
1286
+
### HTTP request headers
1287
+
1288
+
-**Content-Type**: application/json
1289
+
-**Accept**: application/json
1290
+
1291
+
1292
+
### HTTP response details
1293
+
| Status code | Description | Response headers |
1294
+
|-------------|-------------|------------------|
1295
+
**200** | OK | - |
1296
+
**400** | Bad Request | - |
1084
1297
1085
1298
[[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)
1086
1299
@@ -1164,6 +1377,7 @@ Name | Type | Description | Notes
1164
1377
| Status code | Description | Response headers |
1165
1378
|-------------|-------------|------------------|
1166
1379
**200** | OK | - |
1380
+
**400** | Bad Request | - |
1167
1381
1168
1382
[[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)
1169
1383
@@ -1226,6 +1440,7 @@ Name | Type | Description | Notes
1226
1440
| Status code | Description | Response headers |
1227
1441
|-------------|-------------|------------------|
1228
1442
**200** | OK | - |
1443
+
**400** | Bad Request | - |
1229
1444
1230
1445
[[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)
0 commit comments