klaviyo-api-sdk 11.0.0 → 11.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/README.md +374 -130
  4. data/klaviyo-api-sdk.gemspec +1 -1
  5. data/lib/klaviyo-api-sdk/api/accounts_api.rb +2 -2
  6. data/lib/klaviyo-api-sdk/api/campaigns_api.rb +41 -23
  7. data/lib/klaviyo-api-sdk/api/catalogs_api.rb +82 -76
  8. data/lib/klaviyo-api-sdk/api/coupons_api.rb +111 -93
  9. data/lib/klaviyo-api-sdk/api/data_privacy_api.rb +1 -1
  10. data/lib/klaviyo-api-sdk/api/events_api.rb +128 -116
  11. data/lib/klaviyo-api-sdk/api/flows_api.rb +199 -169
  12. data/lib/klaviyo-api-sdk/api/forms_api.rb +19 -7
  13. data/lib/klaviyo-api-sdk/api/images_api.rb +5 -5
  14. data/lib/klaviyo-api-sdk/api/lists_api.rb +391 -337
  15. data/lib/klaviyo-api-sdk/api/metrics_api.rb +151 -115
  16. data/lib/klaviyo-api-sdk/api/profiles_api.rb +149 -119
  17. data/lib/klaviyo-api-sdk/api/reporting_api.rb +49 -7
  18. data/lib/klaviyo-api-sdk/api/reviews_api.rb +2 -2
  19. data/lib/klaviyo-api-sdk/api/segments_api.rb +170 -146
  20. data/lib/klaviyo-api-sdk/api/tags_api.rb +108 -42
  21. data/lib/klaviyo-api-sdk/api/templates_api.rb +12 -12
  22. data/lib/klaviyo-api-sdk/api/tracking_settings_api.rb +3 -3
  23. data/lib/klaviyo-api-sdk/api/webhooks_api.rb +7 -7
  24. data/lib/klaviyo-api-sdk/api_client.rb +1 -1
  25. data/lib/klaviyo-api-sdk/configuration.rb +18 -9
  26. data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_resource_object_attributes.rb +34 -0
  27. data/lib/klaviyo-api-sdk/models/email_unsubscription_parameters.rb +224 -0
  28. data/lib/klaviyo-api-sdk/models/profile_subscription_delete_query_resource_object_attributes.rb +14 -5
  29. data/lib/klaviyo-api-sdk/models/sms_unsubscription_parameters.rb +228 -0
  30. data/lib/klaviyo-api-sdk/models/template_create_query_resource_object_attributes.rb +1 -1
  31. data/lib/klaviyo-api-sdk/models/unsubscription_channels.rb +228 -0
  32. data/lib/klaviyo-api-sdk/models/unsubscription_parameters.rb +259 -0
  33. data/lib/klaviyo-api-sdk.rb +4 -0
  34. metadata +6 -2
@@ -19,6 +19,88 @@ module KlaviyoAPI
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Bulk Import Profiles
23
+ # Create a bulk profile import job to create or update a batch of profiles. Accepts up to 10,000 profiles per request. The maximum allowed payload size is 5MB. To learn more, see our [Bulk Profile Import API guide](https://developers.klaviyo.com/en/docs/use_klaviyos_bulk_profile_import_api).<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `lists:write` `profiles:write`
24
+ # @param profile_import_job_create_query [ProfileImportJobCreateQuery]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [Hash<String, Object>]
27
+ def bulk_import_profiles(profile_import_job_create_query, opts = {})
28
+ data, _status_code, _headers = bulk_import_profiles_with_http_info(profile_import_job_create_query, opts)
29
+ data
30
+ end
31
+
32
+ # alias of `bulk_import_profiles`
33
+ alias spawn_bulk_profile_import_job bulk_import_profiles
34
+
35
+ # alias of `bulk_import_profiles`
36
+ alias create_profile_bulk_import_job bulk_import_profiles
37
+
38
+ # Bulk Import Profiles
39
+ # Create a bulk profile import job to create or update a batch of profiles. Accepts up to 10,000 profiles per request. The maximum allowed payload size is 5MB. To learn more, see our [Bulk Profile Import API guide](https://developers.klaviyo.com/en/docs/use_klaviyos_bulk_profile_import_api).&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;10/s&#x60;&lt;br&gt;Steady: &#x60;150/m&#x60; **Scopes:** &#x60;lists:write&#x60; &#x60;profiles:write&#x60;
40
+ # @param profile_import_job_create_query [ProfileImportJobCreateQuery]
41
+ # @param [Hash] opts the optional parameters
42
+ # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
43
+ def bulk_import_profiles_with_http_info(profile_import_job_create_query, opts = {})
44
+ if @api_client.config.debugging
45
+ @api_client.config.logger.debug 'Calling API: ProfilesApi.bulk_import_profiles ...'
46
+ end
47
+ # verify the required parameter 'profile_import_job_create_query' is set
48
+ if @api_client.config.client_side_validation && profile_import_job_create_query.nil?
49
+ fail ArgumentError, "Missing the required parameter 'profile_import_job_create_query' when calling ProfilesApi.bulk_import_profiles"
50
+ end
51
+ # resource path
52
+ local_var_path = '/api/profile-bulk-import-jobs'
53
+
54
+ # query parameters
55
+ query_params = opts[:query_params] || {}
56
+
57
+ # header parameters
58
+ header_params = opts[:header_params] || {}
59
+ # klaviyo api revision
60
+ header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-10-15"
61
+ # HTTP header 'Accept' (if needed)
62
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
63
+ # HTTP header 'Content-Type'
64
+ content_type = @api_client.select_header_content_type(['application/vnd.api+json'])
65
+ if !content_type.nil?
66
+ header_params['Content-Type'] = content_type
67
+ end
68
+
69
+ # form parameters
70
+ form_params = opts[:form_params] || {}
71
+
72
+ # http body (model)
73
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(profile_import_job_create_query)
74
+
75
+ # return_type
76
+ return_type = opts[:debug_return_type] || 'Hash<String, Object>'
77
+
78
+ # auth_names
79
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
80
+
81
+ new_options = opts.merge(
82
+ :operation => :"ProfilesApi.bulk_import_profiles",
83
+ :header_params => header_params,
84
+ :query_params => query_params,
85
+ :form_params => form_params,
86
+ :body => post_body,
87
+ :auth_names => auth_names,
88
+ :return_type => return_type
89
+ )
90
+
91
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
92
+ if @api_client.config.debugging
93
+ @api_client.config.logger.debug "API called: ProfilesApi#bulk_import_profiles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
94
+ end
95
+ return data, status_code, headers
96
+ end
97
+
98
+ # alias of `bulk_import_profiles_with_http_info`
99
+ alias spawn_bulk_profile_import_job_with_http_info bulk_import_profiles_with_http_info
100
+
101
+ # alias of `bulk_import_profiles_with_http_info`
102
+ alias create_profile_bulk_import_job_with_http_info bulk_import_profiles_with_http_info
103
+
22
104
  # Bulk Subscribe Profiles
23
105
  # Subscribe one or more profiles to email marketing, SMS marketing, or both. If the provided list has double opt-in enabled, profiles will receive a message requiring their confirmation before subscribing. Otherwise, profiles will be immediately subscribed without receiving a confirmation message. Learn more about [consent in this guide](https://developers.klaviyo.com/en/docs/collect_email_and_sms_consent_via_api). If a list is not provided, the opt-in process used will be determined by the [account-level default opt-in setting](https://www.klaviyo.com/settings/account/api-keys). To add someone to a list without changing their subscription status, use [Add Profile to List](https://developers.klaviyo.com/en/reference/create_list_relationships). This API will remove any `UNSUBSCRIBE`, `SPAM_REPORT` or `USER_SUPPRESSED` suppressions from the provided profiles. Learn more about [suppressed profiles](https://help.klaviyo.com/hc/en-us/articles/115005246108-Understanding-suppressed-email-profiles#what-is-a-suppressed-profile-1). Maximum number of profiles can be submitted for subscription: 1000 This endpoint now supports a `historical_import` flag. If this flag is set `true`, profiles being subscribed will bypass double opt-in emails and be subscribed immediately. They will also bypass any associated \"Added to list\" flows. This is useful for importing historical data where you have already collected consent. If `historical_import` is set to true, the `consented_at` field is required and must be in the past.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `lists:write` `profiles:write` `subscriptions:write`
24
106
  # @param subscription_create_job_create_query [SubscriptionCreateJobCreateQuery] Subscribes one or more profiles to marketing. Currently, supports email and SMS only. All profiles will be added to the provided list. Either email or phone number is required. Both may be specified to subscribe to both channels. If a profile cannot be found matching the given identifier(s), a new profile will be created and then subscribed.
@@ -76,7 +158,7 @@ module KlaviyoAPI
76
158
  return_type = opts[:debug_return_type]
77
159
 
78
160
  # auth_names
79
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
161
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
80
162
 
81
163
  new_options = opts.merge(
82
164
  :operation => :"ProfilesApi.bulk_subscribe_profiles",
@@ -158,7 +240,7 @@ module KlaviyoAPI
158
240
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
159
241
 
160
242
  # auth_names
161
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
243
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
162
244
 
163
245
  new_options = opts.merge(
164
246
  :operation => :"ProfilesApi.bulk_suppress_profiles",
@@ -240,7 +322,7 @@ module KlaviyoAPI
240
322
  return_type = opts[:debug_return_type]
241
323
 
242
324
  # auth_names
243
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
325
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
244
326
 
245
327
  new_options = opts.merge(
246
328
  :operation => :"ProfilesApi.bulk_unsubscribe_profiles",
@@ -322,7 +404,7 @@ module KlaviyoAPI
322
404
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
323
405
 
324
406
  # auth_names
325
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
407
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
326
408
 
327
409
  new_options = opts.merge(
328
410
  :operation => :"ProfilesApi.bulk_unsuppress_profiles",
@@ -348,7 +430,7 @@ module KlaviyoAPI
348
430
  alias create_profile_suppression_bulk_delete_job_with_http_info bulk_unsuppress_profiles_with_http_info
349
431
 
350
432
  # Create or Update Profile
351
- # Given a set of profile attributes and optionally an ID, create or update a profile. Returns 201 if a new profile was created, 200 if an existing profile was updated. Note that setting a field to `null` will clear out the field, whereas not including a field in your request will leave it unchanged.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `profiles:write`
433
+ # Given a set of profile attributes and optionally an ID, create or update a profile. Returns 201 if a new profile was created, 200 if an existing profile was updated. Use the `additional-fields` parameter to include subscriptions and predictive analytics data in your response. Note that setting a field to `null` will clear out the field, whereas not including a field in your request will leave it unchanged.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `profiles:write`
352
434
  # @param profile_upsert_query [ProfileUpsertQuery]
353
435
  # @param [Hash] opts the optional parameters
354
436
  # @option opts [Array<String>] :additional_fields_profile Request additional fields not included by default in the response. Supported values: &#39;subscriptions&#39;, &#39;predictive_analytics&#39;
@@ -362,7 +444,7 @@ module KlaviyoAPI
362
444
  alias create_profile_import create_or_update_profile
363
445
 
364
446
  # Create or Update Profile
365
- # Given a set of profile attributes and optionally an ID, create or update a profile. Returns 201 if a new profile was created, 200 if an existing profile was updated. Note that setting a field to &#x60;null&#x60; will clear out the field, whereas not including a field in your request will leave it unchanged.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;75/s&#x60;&lt;br&gt;Steady: &#x60;700/m&#x60; **Scopes:** &#x60;profiles:write&#x60;
447
+ # Given a set of profile attributes and optionally an ID, create or update a profile. Returns 201 if a new profile was created, 200 if an existing profile was updated. Use the &#x60;additional-fields&#x60; parameter to include subscriptions and predictive analytics data in your response. Note that setting a field to &#x60;null&#x60; will clear out the field, whereas not including a field in your request will leave it unchanged.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;75/s&#x60;&lt;br&gt;Steady: &#x60;700/m&#x60; **Scopes:** &#x60;profiles:write&#x60;
366
448
  # @param profile_upsert_query [ProfileUpsertQuery]
367
449
  # @param [Hash] opts the optional parameters
368
450
  # @option opts [Array<String>] :additional_fields_profile Request additional fields not included by default in the response. Supported values: &#39;subscriptions&#39;, &#39;predictive_analytics&#39;
@@ -408,7 +490,7 @@ module KlaviyoAPI
408
490
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
409
491
 
410
492
  # auth_names
411
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
493
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
412
494
 
413
495
  new_options = opts.merge(
414
496
  :operation => :"ProfilesApi.create_or_update_profile",
@@ -431,7 +513,7 @@ module KlaviyoAPI
431
513
  alias create_profile_import_with_http_info create_or_update_profile_with_http_info
432
514
 
433
515
  # Create Profile
434
- # Create a new profile.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `profiles:write`
516
+ # Create a new profile. Use the `additional-fields` parameter to include subscriptions and predictive analytics data in your response.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `profiles:write`
435
517
  # @param profile_create_query [ProfileCreateQuery]
436
518
  # @param [Hash] opts the optional parameters
437
519
  # @option opts [Array<String>] :additional_fields_profile Request additional fields not included by default in the response. Supported values: &#39;subscriptions&#39;, &#39;predictive_analytics&#39;
@@ -442,7 +524,7 @@ module KlaviyoAPI
442
524
  end
443
525
 
444
526
  # Create Profile
445
- # Create a new profile.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;75/s&#x60;&lt;br&gt;Steady: &#x60;700/m&#x60; **Scopes:** &#x60;profiles:write&#x60;
527
+ # Create a new profile. Use the &#x60;additional-fields&#x60; parameter to include subscriptions and predictive analytics data in your response.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;75/s&#x60;&lt;br&gt;Steady: &#x60;700/m&#x60; **Scopes:** &#x60;profiles:write&#x60;
446
528
  # @param profile_create_query [ProfileCreateQuery]
447
529
  # @param [Hash] opts the optional parameters
448
530
  # @option opts [Array<String>] :additional_fields_profile Request additional fields not included by default in the response. Supported values: &#39;subscriptions&#39;, &#39;predictive_analytics&#39;
@@ -488,7 +570,7 @@ module KlaviyoAPI
488
570
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
489
571
 
490
572
  # auth_names
491
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
573
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
492
574
 
493
575
  new_options = opts.merge(
494
576
  :operation => :"ProfilesApi.create_profile",
@@ -558,7 +640,7 @@ module KlaviyoAPI
558
640
  return_type = opts[:debug_return_type]
559
641
 
560
642
  # auth_names
561
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
643
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
562
644
 
563
645
  new_options = opts.merge(
564
646
  :operation => :"ProfilesApi.create_push_token",
@@ -650,7 +732,7 @@ module KlaviyoAPI
650
732
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
651
733
 
652
734
  # auth_names
653
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
735
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
654
736
 
655
737
  new_options = opts.merge(
656
738
  :operation => :"ProfilesApi.get_bulk_import_profiles_job",
@@ -752,7 +834,7 @@ module KlaviyoAPI
752
834
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
753
835
 
754
836
  # auth_names
755
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
837
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
756
838
 
757
839
  new_options = opts.merge(
758
840
  :operation => :"ProfilesApi.get_bulk_import_profiles_jobs",
@@ -833,7 +915,7 @@ module KlaviyoAPI
833
915
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
834
916
 
835
917
  # auth_names
836
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
918
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
837
919
 
838
920
  new_options = opts.merge(
839
921
  :operation => :"ProfilesApi.get_bulk_suppress_profiles_job",
@@ -918,7 +1000,7 @@ module KlaviyoAPI
918
1000
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
919
1001
 
920
1002
  # auth_names
921
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
1003
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
922
1004
 
923
1005
  new_options = opts.merge(
924
1006
  :operation => :"ProfilesApi.get_bulk_suppress_profiles_jobs",
@@ -996,7 +1078,7 @@ module KlaviyoAPI
996
1078
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
997
1079
 
998
1080
  # auth_names
999
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
1081
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
1000
1082
 
1001
1083
  new_options = opts.merge(
1002
1084
  :operation => :"ProfilesApi.get_bulk_unsuppress_profiles_job",
@@ -1081,7 +1163,7 @@ module KlaviyoAPI
1081
1163
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
1082
1164
 
1083
1165
  # auth_names
1084
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
1166
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
1085
1167
 
1086
1168
  new_options = opts.merge(
1087
1169
  :operation => :"ProfilesApi.get_bulk_unsuppress_profiles_jobs",
@@ -1119,6 +1201,9 @@ module KlaviyoAPI
1119
1201
  # alias of `get_errors_for_bulk_import_profiles_job`
1120
1202
  alias get_bulk_profile_import_job_import_errors get_errors_for_bulk_import_profiles_job
1121
1203
 
1204
+ # alias of `get_errors_for_bulk_import_profiles_job`
1205
+ alias get_import_errors_for_profile_bulk_import_job get_errors_for_bulk_import_profiles_job
1206
+
1122
1207
  # alias of `get_errors_for_bulk_import_profiles_job`
1123
1208
  alias get_profile_bulk_import_job_import_errors get_errors_for_bulk_import_profiles_job
1124
1209
 
@@ -1176,7 +1261,7 @@ module KlaviyoAPI
1176
1261
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
1177
1262
 
1178
1263
  # auth_names
1179
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
1264
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
1180
1265
 
1181
1266
  new_options = opts.merge(
1182
1267
  :operation => :"ProfilesApi.get_errors_for_bulk_import_profiles_job",
@@ -1198,6 +1283,9 @@ module KlaviyoAPI
1198
1283
  # alias of `get_errors_for_bulk_import_profiles_job_with_http_info`
1199
1284
  alias get_bulk_profile_import_job_import_errors_with_http_info get_errors_for_bulk_import_profiles_job_with_http_info
1200
1285
 
1286
+ # alias of `get_errors_for_bulk_import_profiles_job_with_http_info`
1287
+ alias get_import_errors_for_profile_bulk_import_job_with_http_info get_errors_for_bulk_import_profiles_job_with_http_info
1288
+
1201
1289
  # alias of `get_errors_for_bulk_import_profiles_job_with_http_info`
1202
1290
  alias get_profile_bulk_import_job_import_errors_with_http_info get_errors_for_bulk_import_profiles_job_with_http_info
1203
1291
 
@@ -1215,6 +1303,9 @@ module KlaviyoAPI
1215
1303
  # alias of `get_list_for_bulk_import_profiles_job`
1216
1304
  alias get_bulk_profile_import_job_lists get_list_for_bulk_import_profiles_job
1217
1305
 
1306
+ # alias of `get_list_for_bulk_import_profiles_job`
1307
+ alias get_lists_for_profile_bulk_import_job get_list_for_bulk_import_profiles_job
1308
+
1218
1309
  # alias of `get_list_for_bulk_import_profiles_job`
1219
1310
  alias get_profile_bulk_import_job_lists get_list_for_bulk_import_profiles_job
1220
1311
 
@@ -1260,7 +1351,7 @@ module KlaviyoAPI
1260
1351
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
1261
1352
 
1262
1353
  # auth_names
1263
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
1354
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
1264
1355
 
1265
1356
  new_options = opts.merge(
1266
1357
  :operation => :"ProfilesApi.get_list_for_bulk_import_profiles_job",
@@ -1282,6 +1373,9 @@ module KlaviyoAPI
1282
1373
  # alias of `get_list_for_bulk_import_profiles_job_with_http_info`
1283
1374
  alias get_bulk_profile_import_job_lists_with_http_info get_list_for_bulk_import_profiles_job_with_http_info
1284
1375
 
1376
+ # alias of `get_list_for_bulk_import_profiles_job_with_http_info`
1377
+ alias get_lists_for_profile_bulk_import_job_with_http_info get_list_for_bulk_import_profiles_job_with_http_info
1378
+
1285
1379
  # alias of `get_list_for_bulk_import_profiles_job_with_http_info`
1286
1380
  alias get_profile_bulk_import_job_lists_with_http_info get_list_for_bulk_import_profiles_job_with_http_info
1287
1381
 
@@ -1298,6 +1392,9 @@ module KlaviyoAPI
1298
1392
  # alias of `get_list_ids_for_bulk_import_profiles_job`
1299
1393
  alias get_bulk_profile_import_job_relationships_lists get_list_ids_for_bulk_import_profiles_job
1300
1394
 
1395
+ # alias of `get_list_ids_for_bulk_import_profiles_job`
1396
+ alias get_list_ids_for_profile_bulk_import_job get_list_ids_for_bulk_import_profiles_job
1397
+
1301
1398
  # alias of `get_list_ids_for_bulk_import_profiles_job`
1302
1399
  alias get_profile_bulk_import_job_relationships_lists get_list_ids_for_bulk_import_profiles_job
1303
1400
 
@@ -1337,7 +1434,7 @@ module KlaviyoAPI
1337
1434
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
1338
1435
 
1339
1436
  # auth_names
1340
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
1437
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
1341
1438
 
1342
1439
  new_options = opts.merge(
1343
1440
  :operation => :"ProfilesApi.get_list_ids_for_bulk_import_profiles_job",
@@ -1359,6 +1456,9 @@ module KlaviyoAPI
1359
1456
  # alias of `get_list_ids_for_bulk_import_profiles_job_with_http_info`
1360
1457
  alias get_bulk_profile_import_job_relationships_lists_with_http_info get_list_ids_for_bulk_import_profiles_job_with_http_info
1361
1458
 
1459
+ # alias of `get_list_ids_for_bulk_import_profiles_job_with_http_info`
1460
+ alias get_list_ids_for_profile_bulk_import_job_with_http_info get_list_ids_for_bulk_import_profiles_job_with_http_info
1461
+
1362
1462
  # alias of `get_list_ids_for_bulk_import_profiles_job_with_http_info`
1363
1463
  alias get_profile_bulk_import_job_relationships_lists_with_http_info get_list_ids_for_bulk_import_profiles_job_with_http_info
1364
1464
 
@@ -1411,7 +1511,7 @@ module KlaviyoAPI
1411
1511
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
1412
1512
 
1413
1513
  # auth_names
1414
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
1514
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
1415
1515
 
1416
1516
  new_options = opts.merge(
1417
1517
  :operation => :"ProfilesApi.get_list_ids_for_profile",
@@ -1489,7 +1589,7 @@ module KlaviyoAPI
1489
1589
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
1490
1590
 
1491
1591
  # auth_names
1492
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
1592
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
1493
1593
 
1494
1594
  new_options = opts.merge(
1495
1595
  :operation => :"ProfilesApi.get_lists_for_profile",
@@ -1512,7 +1612,7 @@ module KlaviyoAPI
1512
1612
  alias get_profile_lists_with_http_info get_lists_for_profile_with_http_info
1513
1613
 
1514
1614
  # Get Profile
1515
- # Get the profile with the given profile ID.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m`<br><br>Rate limits when using the `include=list` parameter in your API request:<br>Burst: `1/s`<br>Steady: `15/m`<br><br>Rate limits when using the `include=segment` parameter in your API request:<br>Burst: `1/s`<br>Steady: `15/m`<br><br>To learn more about how the `include` parameter impacts rate limits, check out our [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/v2024-10-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `profiles:read`
1615
+ # Get the profile with the given profile ID. Use the `additional-fields` parameter to include subscriptions and predictive analytics data in your response.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m`<br><br>Rate limits when using the `include=list` parameter in your API request:<br>Burst: `1/s`<br>Steady: `15/m`<br><br>Rate limits when using the `include=segment` parameter in your API request:<br>Burst: `1/s`<br>Steady: `15/m`<br><br>To learn more about how the `include` parameter impacts rate limits, check out our [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/v2024-10-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `profiles:read`
1516
1616
  # @param id [String]
1517
1617
  # @param [Hash] opts the optional parameters
1518
1618
  # @option opts [Array<String>] :additional_fields_profile Request additional fields not included by default in the response. Supported values: &#39;subscriptions&#39;, &#39;predictive_analytics&#39;
@@ -1527,7 +1627,7 @@ module KlaviyoAPI
1527
1627
  end
1528
1628
 
1529
1629
  # Get Profile
1530
- # Get the profile with the given profile ID.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;75/s&#x60;&lt;br&gt;Steady: &#x60;700/m&#x60;&lt;br&gt;&lt;br&gt;Rate limits when using the &#x60;include&#x3D;list&#x60; parameter in your API request:&lt;br&gt;Burst: &#x60;1/s&#x60;&lt;br&gt;Steady: &#x60;15/m&#x60;&lt;br&gt;&lt;br&gt;Rate limits when using the &#x60;include&#x3D;segment&#x60; parameter in your API request:&lt;br&gt;Burst: &#x60;1/s&#x60;&lt;br&gt;Steady: &#x60;15/m&#x60;&lt;br&gt;&lt;br&gt;To learn more about how the &#x60;include&#x60; parameter impacts rate limits, check out our [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/v2024-10-15/docs/rate_limits_and_error_handling) guide. **Scopes:** &#x60;profiles:read&#x60;
1630
+ # Get the profile with the given profile ID. Use the &#x60;additional-fields&#x60; parameter to include subscriptions and predictive analytics data in your response.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;75/s&#x60;&lt;br&gt;Steady: &#x60;700/m&#x60;&lt;br&gt;&lt;br&gt;Rate limits when using the &#x60;include&#x3D;list&#x60; parameter in your API request:&lt;br&gt;Burst: &#x60;1/s&#x60;&lt;br&gt;Steady: &#x60;15/m&#x60;&lt;br&gt;&lt;br&gt;Rate limits when using the &#x60;include&#x3D;segment&#x60; parameter in your API request:&lt;br&gt;Burst: &#x60;1/s&#x60;&lt;br&gt;Steady: &#x60;15/m&#x60;&lt;br&gt;&lt;br&gt;To learn more about how the &#x60;include&#x60; parameter impacts rate limits, check out our [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/v2024-10-15/docs/rate_limits_and_error_handling) guide. **Scopes:** &#x60;profiles:read&#x60;
1531
1631
  # @param id [String]
1532
1632
  # @param [Hash] opts the optional parameters
1533
1633
  # @option opts [Array<String>] :additional_fields_profile Request additional fields not included by default in the response. Supported values: &#39;subscriptions&#39;, &#39;predictive_analytics&#39;
@@ -1592,7 +1692,7 @@ module KlaviyoAPI
1592
1692
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
1593
1693
 
1594
1694
  # auth_names
1595
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
1695
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
1596
1696
 
1597
1697
  new_options = opts.merge(
1598
1698
  :operation => :"ProfilesApi.get_profile",
@@ -1629,6 +1729,9 @@ module KlaviyoAPI
1629
1729
  # alias of `get_profile_ids_for_bulk_import_profiles_job`
1630
1730
  alias get_profile_bulk_import_job_relationships_profiles get_profile_ids_for_bulk_import_profiles_job
1631
1731
 
1732
+ # alias of `get_profile_ids_for_bulk_import_profiles_job`
1733
+ alias get_profile_ids_for_profile_bulk_import_job get_profile_ids_for_bulk_import_profiles_job
1734
+
1632
1735
  # Get Profile IDs for Bulk Import Profiles Job
1633
1736
  # Get profile relationships for the bulk profile import job with the given ID.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;10/s&#x60;&lt;br&gt;Steady: &#x60;150/m&#x60; **Scopes:** &#x60;profiles:read&#x60;
1634
1737
  # @param id [String]
@@ -1677,7 +1780,7 @@ module KlaviyoAPI
1677
1780
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
1678
1781
 
1679
1782
  # auth_names
1680
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
1783
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
1681
1784
 
1682
1785
  new_options = opts.merge(
1683
1786
  :operation => :"ProfilesApi.get_profile_ids_for_bulk_import_profiles_job",
@@ -1702,8 +1805,11 @@ module KlaviyoAPI
1702
1805
  # alias of `get_profile_ids_for_bulk_import_profiles_job_with_http_info`
1703
1806
  alias get_profile_bulk_import_job_relationships_profiles_with_http_info get_profile_ids_for_bulk_import_profiles_job_with_http_info
1704
1807
 
1808
+ # alias of `get_profile_ids_for_bulk_import_profiles_job_with_http_info`
1809
+ alias get_profile_ids_for_profile_bulk_import_job_with_http_info get_profile_ids_for_bulk_import_profiles_job_with_http_info
1810
+
1705
1811
  # Get Profiles
1706
- # Get all profiles in an account. Profiles can be sorted by the following fields in ascending and descending order: `id`, `created`, `updated`, `email`, `subscriptions.email.marketing.suppression.timestamp`, `subscriptions.email.marketing.list_suppressions.timestamp`<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m`<br><br>Rate limits when using the `additional-fields[profile]=predictive_analytics` parameter in your API request:<br>Burst: `10/s`<br>Steady: `150/m`<br><br>To learn more about how the `additional-fields` parameter impacts rate limits, check out our [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/v2024-10-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `profiles:read`
1812
+ # Get all profiles in an account. Profiles can be sorted by the following fields in ascending and descending order: `id`, `created`, `updated`, `email`, `subscriptions.email.marketing.suppression.timestamp`, `subscriptions.email.marketing.list_suppressions.timestamp` Use the `additional-fields` parameter to include subscriptions and predictive analytics data in your response.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m`<br><br>Rate limits when using the `additional-fields[profile]=predictive_analytics` parameter in your API request:<br>Burst: `10/s`<br>Steady: `150/m`<br><br>To learn more about how the `additional-fields` parameter impacts rate limits, check out our [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/v2024-10-15/docs/rate_limits_and_error_handling) guide. **Scopes:** `profiles:read`
1707
1813
  # @param [Hash] opts the optional parameters
1708
1814
  # @option opts [Array<String>] :additional_fields_profile Request additional fields not included by default in the response. Supported values: &#39;subscriptions&#39;, &#39;predictive_analytics&#39;
1709
1815
  # @option opts [Array<String>] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-10-15/reference/api-overview#sparse-fieldsets
@@ -1718,7 +1824,7 @@ module KlaviyoAPI
1718
1824
  end
1719
1825
 
1720
1826
  # Get Profiles
1721
- # Get all profiles in an account. Profiles can be sorted by the following fields in ascending and descending order: &#x60;id&#x60;, &#x60;created&#x60;, &#x60;updated&#x60;, &#x60;email&#x60;, &#x60;subscriptions.email.marketing.suppression.timestamp&#x60;, &#x60;subscriptions.email.marketing.list_suppressions.timestamp&#x60;&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;75/s&#x60;&lt;br&gt;Steady: &#x60;700/m&#x60;&lt;br&gt;&lt;br&gt;Rate limits when using the &#x60;additional-fields[profile]&#x3D;predictive_analytics&#x60; parameter in your API request:&lt;br&gt;Burst: &#x60;10/s&#x60;&lt;br&gt;Steady: &#x60;150/m&#x60;&lt;br&gt;&lt;br&gt;To learn more about how the &#x60;additional-fields&#x60; parameter impacts rate limits, check out our [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/v2024-10-15/docs/rate_limits_and_error_handling) guide. **Scopes:** &#x60;profiles:read&#x60;
1827
+ # Get all profiles in an account. Profiles can be sorted by the following fields in ascending and descending order: &#x60;id&#x60;, &#x60;created&#x60;, &#x60;updated&#x60;, &#x60;email&#x60;, &#x60;subscriptions.email.marketing.suppression.timestamp&#x60;, &#x60;subscriptions.email.marketing.list_suppressions.timestamp&#x60; Use the &#x60;additional-fields&#x60; parameter to include subscriptions and predictive analytics data in your response.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;75/s&#x60;&lt;br&gt;Steady: &#x60;700/m&#x60;&lt;br&gt;&lt;br&gt;Rate limits when using the &#x60;additional-fields[profile]&#x3D;predictive_analytics&#x60; parameter in your API request:&lt;br&gt;Burst: &#x60;10/s&#x60;&lt;br&gt;Steady: &#x60;150/m&#x60;&lt;br&gt;&lt;br&gt;To learn more about how the &#x60;additional-fields&#x60; parameter impacts rate limits, check out our [Rate limits, status codes, and errors](https://developers.klaviyo.com/en/v2024-10-15/docs/rate_limits_and_error_handling) guide. **Scopes:** &#x60;profiles:read&#x60;
1722
1828
  # @param [Hash] opts the optional parameters
1723
1829
  # @option opts [Array<String>] :additional_fields_profile Request additional fields not included by default in the response. Supported values: &#39;subscriptions&#39;, &#39;predictive_analytics&#39;
1724
1830
  # @option opts [Array<String>] :fields_profile For more information please visit https://developers.klaviyo.com/en/v2024-10-15/reference/api-overview#sparse-fieldsets
@@ -1747,7 +1853,7 @@ module KlaviyoAPI
1747
1853
  fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ProfilesApi.get_profiles, must be greater than or equal to 1.'
1748
1854
  end
1749
1855
 
1750
- allowable_values = ["created", "-created", "email", "-email", "id", "-id", "updated", "-updated", "subscriptions.email.marketing.list_suppressions.timestamp", "-subscriptions.email.marketing.list_suppressions.timestamp", "subscriptions.email.marketing.suppression.timestamp", "-subscriptions.email.marketing.suppression.timestamp"]
1856
+ allowable_values = ["created", "-created", "email", "-email", "id", "-id", "subscriptions.email.marketing.list_suppressions.timestamp", "-subscriptions.email.marketing.list_suppressions.timestamp", "subscriptions.email.marketing.suppression.timestamp", "-subscriptions.email.marketing.suppression.timestamp", "updated", "-updated"]
1751
1857
  if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
1752
1858
  fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
1753
1859
  end
@@ -1780,7 +1886,7 @@ module KlaviyoAPI
1780
1886
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
1781
1887
 
1782
1888
  # auth_names
1783
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
1889
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
1784
1890
 
1785
1891
  new_options = opts.merge(
1786
1892
  :operation => :"ProfilesApi.get_profiles",
@@ -1819,6 +1925,9 @@ module KlaviyoAPI
1819
1925
  # alias of `get_profiles_for_bulk_import_profiles_job`
1820
1926
  alias get_profile_bulk_import_job_profiles get_profiles_for_bulk_import_profiles_job
1821
1927
 
1928
+ # alias of `get_profiles_for_bulk_import_profiles_job`
1929
+ alias get_profiles_for_profile_bulk_import_job get_profiles_for_bulk_import_profiles_job
1930
+
1822
1931
  # Get Profiles for Bulk Import Profiles Job
1823
1932
  # Get profiles for the bulk profile import job with the given ID.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;10/s&#x60;&lt;br&gt;Steady: &#x60;150/m&#x60; **Scopes:** &#x60;profiles:read&#x60;
1824
1933
  # @param id [String]
@@ -1879,7 +1988,7 @@ module KlaviyoAPI
1879
1988
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
1880
1989
 
1881
1990
  # auth_names
1882
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
1991
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
1883
1992
 
1884
1993
  new_options = opts.merge(
1885
1994
  :operation => :"ProfilesApi.get_profiles_for_bulk_import_profiles_job",
@@ -1904,6 +2013,9 @@ module KlaviyoAPI
1904
2013
  # alias of `get_profiles_for_bulk_import_profiles_job_with_http_info`
1905
2014
  alias get_profile_bulk_import_job_profiles_with_http_info get_profiles_for_bulk_import_profiles_job_with_http_info
1906
2015
 
2016
+ # alias of `get_profiles_for_bulk_import_profiles_job_with_http_info`
2017
+ alias get_profiles_for_profile_bulk_import_job_with_http_info get_profiles_for_bulk_import_profiles_job_with_http_info
2018
+
1907
2019
  # Get Segment IDs for Profile
1908
2020
  # Get segment membership relationships for a profile with the given profile ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `profiles:read` `segments:read`
1909
2021
  # @param id [String]
@@ -1953,7 +2065,7 @@ module KlaviyoAPI
1953
2065
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
1954
2066
 
1955
2067
  # auth_names
1956
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
2068
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
1957
2069
 
1958
2070
  new_options = opts.merge(
1959
2071
  :operation => :"ProfilesApi.get_segment_ids_for_profile",
@@ -2031,7 +2143,7 @@ module KlaviyoAPI
2031
2143
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
2032
2144
 
2033
2145
  # auth_names
2034
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
2146
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
2035
2147
 
2036
2148
  new_options = opts.merge(
2037
2149
  :operation => :"ProfilesApi.get_segments_for_profile",
@@ -2107,7 +2219,7 @@ module KlaviyoAPI
2107
2219
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
2108
2220
 
2109
2221
  # auth_names
2110
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
2222
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
2111
2223
 
2112
2224
  new_options = opts.merge(
2113
2225
  :operation => :"ProfilesApi.merge_profiles",
@@ -2129,90 +2241,8 @@ module KlaviyoAPI
2129
2241
  # alias of `merge_profiles_with_http_info`
2130
2242
  alias create_profile_merge_with_http_info merge_profiles_with_http_info
2131
2243
 
2132
- # Spawn Bulk Profile Import Job
2133
- # Create a bulk profile import job to create or update a batch of profiles. Accepts up to 10,000 profiles per request. The maximum allowed payload size is 5MB. To learn more, see our [Bulk Profile Import API guide](https://developers.klaviyo.com/en/docs/use_klaviyos_bulk_profile_import_api).<br><br>*Rate limits*:<br>Burst: `10/s`<br>Steady: `150/m` **Scopes:** `lists:write` `profiles:write`
2134
- # @param profile_import_job_create_query [ProfileImportJobCreateQuery]
2135
- # @param [Hash] opts the optional parameters
2136
- # @return [Hash<String, Object>]
2137
- def spawn_bulk_profile_import_job(profile_import_job_create_query, opts = {})
2138
- data, _status_code, _headers = spawn_bulk_profile_import_job_with_http_info(profile_import_job_create_query, opts)
2139
- data
2140
- end
2141
-
2142
- # alias of `spawn_bulk_profile_import_job`
2143
- alias bulk_import_profiles spawn_bulk_profile_import_job
2144
-
2145
- # alias of `spawn_bulk_profile_import_job`
2146
- alias create_profile_bulk_import_job spawn_bulk_profile_import_job
2147
-
2148
- # Spawn Bulk Profile Import Job
2149
- # Create a bulk profile import job to create or update a batch of profiles. Accepts up to 10,000 profiles per request. The maximum allowed payload size is 5MB. To learn more, see our [Bulk Profile Import API guide](https://developers.klaviyo.com/en/docs/use_klaviyos_bulk_profile_import_api).&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;10/s&#x60;&lt;br&gt;Steady: &#x60;150/m&#x60; **Scopes:** &#x60;lists:write&#x60; &#x60;profiles:write&#x60;
2150
- # @param profile_import_job_create_query [ProfileImportJobCreateQuery]
2151
- # @param [Hash] opts the optional parameters
2152
- # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
2153
- def spawn_bulk_profile_import_job_with_http_info(profile_import_job_create_query, opts = {})
2154
- if @api_client.config.debugging
2155
- @api_client.config.logger.debug 'Calling API: ProfilesApi.spawn_bulk_profile_import_job ...'
2156
- end
2157
- # verify the required parameter 'profile_import_job_create_query' is set
2158
- if @api_client.config.client_side_validation && profile_import_job_create_query.nil?
2159
- fail ArgumentError, "Missing the required parameter 'profile_import_job_create_query' when calling ProfilesApi.spawn_bulk_profile_import_job"
2160
- end
2161
- # resource path
2162
- local_var_path = '/api/profile-bulk-import-jobs'
2163
-
2164
- # query parameters
2165
- query_params = opts[:query_params] || {}
2166
-
2167
- # header parameters
2168
- header_params = opts[:header_params] || {}
2169
- # klaviyo api revision
2170
- header_params['revision'] = ENV['KLAVIYO_API_REVISION'] || ENV['API_REVISION'] || "2024-10-15"
2171
- # HTTP header 'Accept' (if needed)
2172
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
2173
- # HTTP header 'Content-Type'
2174
- content_type = @api_client.select_header_content_type(['application/vnd.api+json'])
2175
- if !content_type.nil?
2176
- header_params['Content-Type'] = content_type
2177
- end
2178
-
2179
- # form parameters
2180
- form_params = opts[:form_params] || {}
2181
-
2182
- # http body (model)
2183
- post_body = opts[:debug_body] || @api_client.object_to_http_body(profile_import_job_create_query)
2184
-
2185
- # return_type
2186
- return_type = opts[:debug_return_type] || 'Hash<String, Object>'
2187
-
2188
- # auth_names
2189
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
2190
-
2191
- new_options = opts.merge(
2192
- :operation => :"ProfilesApi.spawn_bulk_profile_import_job",
2193
- :header_params => header_params,
2194
- :query_params => query_params,
2195
- :form_params => form_params,
2196
- :body => post_body,
2197
- :auth_names => auth_names,
2198
- :return_type => return_type
2199
- )
2200
-
2201
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2202
- if @api_client.config.debugging
2203
- @api_client.config.logger.debug "API called: ProfilesApi#spawn_bulk_profile_import_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2204
- end
2205
- return data, status_code, headers
2206
- end
2207
-
2208
- # alias of `spawn_bulk_profile_import_job_with_http_info`
2209
- alias bulk_import_profiles_with_http_info spawn_bulk_profile_import_job_with_http_info
2210
-
2211
- # alias of `spawn_bulk_profile_import_job_with_http_info`
2212
- alias create_profile_bulk_import_job_with_http_info spawn_bulk_profile_import_job_with_http_info
2213
-
2214
2244
  # Update Profile
2215
- # Update the profile with the given profile ID. Note that setting a field to `null` will clear out the field, whereas not including a field in your request will leave it unchanged.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `profiles:write`
2245
+ # Update the profile with the given profile ID. Use the `additional-fields` parameter to include subscriptions and predictive analytics data in your response. Note that setting a field to `null` will clear out the field, whereas not including a field in your request will leave it unchanged.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `profiles:write`
2216
2246
  # @param id [String] Primary key that uniquely identifies this profile. Generated by Klaviyo.
2217
2247
  # @param profile_partial_update_query [ProfilePartialUpdateQuery]
2218
2248
  # @param [Hash] opts the optional parameters
@@ -2224,7 +2254,7 @@ module KlaviyoAPI
2224
2254
  end
2225
2255
 
2226
2256
  # Update Profile
2227
- # Update the profile with the given profile ID. Note that setting a field to &#x60;null&#x60; will clear out the field, whereas not including a field in your request will leave it unchanged.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;75/s&#x60;&lt;br&gt;Steady: &#x60;700/m&#x60; **Scopes:** &#x60;profiles:write&#x60;
2257
+ # Update the profile with the given profile ID. Use the &#x60;additional-fields&#x60; parameter to include subscriptions and predictive analytics data in your response. Note that setting a field to &#x60;null&#x60; will clear out the field, whereas not including a field in your request will leave it unchanged.&lt;br&gt;&lt;br&gt;*Rate limits*:&lt;br&gt;Burst: &#x60;75/s&#x60;&lt;br&gt;Steady: &#x60;700/m&#x60; **Scopes:** &#x60;profiles:write&#x60;
2228
2258
  # @param id [String] Primary key that uniquely identifies this profile. Generated by Klaviyo.
2229
2259
  # @param profile_partial_update_query [ProfilePartialUpdateQuery]
2230
2260
  # @param [Hash] opts the optional parameters
@@ -2275,7 +2305,7 @@ module KlaviyoAPI
2275
2305
  return_type = opts[:debug_return_type] || 'Hash<String, Object>'
2276
2306
 
2277
2307
  # auth_names
2278
- auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key']
2308
+ auth_names = opts[:debug_auth_names] || ['Klaviyo-API-Key', 'OAuth']
2279
2309
 
2280
2310
  new_options = opts.merge(
2281
2311
  :operation => :"ProfilesApi.update_profile",