klaviyo-api-sdk 1.2.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (765) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/README.md +654 -238
  4. data/klaviyo-api-sdk.gemspec +2 -2
  5. data/lib/klaviyo-api-sdk/api/accounts_api.rb +160 -0
  6. data/lib/klaviyo-api-sdk/api/campaigns_api.rb +101 -107
  7. data/lib/klaviyo-api-sdk/api/catalogs_api.rb +461 -549
  8. data/lib/klaviyo-api-sdk/api/data_privacy_api.rb +4 -4
  9. data/lib/klaviyo-api-sdk/api/events_api.rb +132 -71
  10. data/lib/klaviyo-api-sdk/api/flows_api.rb +368 -206
  11. data/lib/klaviyo-api-sdk/api/lists_api.rb +172 -122
  12. data/lib/klaviyo-api-sdk/api/metrics_api.rb +18 -18
  13. data/lib/klaviyo-api-sdk/api/profiles_api.rb +173 -94
  14. data/lib/klaviyo-api-sdk/api/segments_api.rb +148 -76
  15. data/lib/klaviyo-api-sdk/api/tags_api.rb +932 -260
  16. data/lib/klaviyo-api-sdk/api/templates_api.rb +32 -32
  17. data/lib/klaviyo-api-sdk/api_client.rb +2 -2
  18. data/lib/klaviyo-api-sdk/api_error.rb +1 -1
  19. data/lib/klaviyo-api-sdk/configuration.rb +1 -1
  20. data/lib/klaviyo-api-sdk/models/audiences_sub_object.rb +1 -1
  21. data/lib/klaviyo-api-sdk/models/campaign_clone_query.rb +2 -2
  22. data/lib/klaviyo-api-sdk/models/campaign_clone_query_resource_object.rb +238 -0
  23. data/lib/klaviyo-api-sdk/models/{campaign_clone_query_as_sub_resource_attributes.rb → campaign_clone_query_resource_object_attributes.rb} +18 -18
  24. data/lib/klaviyo-api-sdk/models/campaign_create_query.rb +2 -2
  25. data/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object.rb +238 -0
  26. data/lib/klaviyo-api-sdk/models/{campaign_create_query_as_sub_resource_attributes.rb → campaign_create_query_resource_object_attributes.rb} +38 -38
  27. data/lib/klaviyo-api-sdk/models/campaign_enum.rb +36 -0
  28. data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query.rb +2 -2
  29. data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object.rb +238 -0
  30. data/lib/klaviyo-api-sdk/models/{campaign_message_assign_template_query_as_sub_resource_attributes.rb → campaign_message_assign_template_query_resource_object_attributes.rb} +4 -4
  31. data/lib/klaviyo-api-sdk/models/campaign_message_enum.rb +36 -0
  32. data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query.rb +2 -2
  33. data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_resource_object.rb +253 -0
  34. data/lib/klaviyo-api-sdk/models/{campaign_message_partial_update_query_as_sub_resource_attributes.rb → campaign_message_partial_update_query_resource_object_attributes.rb} +17 -17
  35. data/lib/klaviyo-api-sdk/models/campaign_partial_update_query.rb +2 -2
  36. data/lib/klaviyo-api-sdk/models/campaign_partial_update_query_resource_object.rb +253 -0
  37. data/lib/klaviyo-api-sdk/models/{campaign_partial_update_query_as_sub_resource_attributes.rb → campaign_partial_update_query_resource_object_attributes.rb} +30 -30
  38. data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query.rb +2 -2
  39. data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query_resource_object.rb +238 -0
  40. data/lib/klaviyo-api-sdk/models/{campaign_recipient_estimation_job_create_query_as_sub_resource_attributes.rb → campaign_recipient_estimation_job_create_query_resource_object_attributes.rb} +4 -4
  41. data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_enum.rb +36 -0
  42. data/lib/klaviyo-api-sdk/models/campaign_send_job_create_query.rb +2 -2
  43. data/lib/klaviyo-api-sdk/models/{get_campaigns4_xx_response_errors_inner_source.rb → campaign_send_job_create_query_resource_object.rb} +27 -17
  44. data/lib/klaviyo-api-sdk/models/{campaign_send_job_create_query_as_sub_resource_attributes.rb → campaign_send_job_create_query_resource_object_attributes.rb} +4 -4
  45. data/lib/klaviyo-api-sdk/models/campaign_send_job_enum.rb +36 -0
  46. data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query.rb +2 -2
  47. data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_resource_object.rb +253 -0
  48. data/lib/klaviyo-api-sdk/models/{campaign_send_job_partial_update_query_as_sub_resource_attributes.rb → campaign_send_job_partial_update_query_resource_object_attributes.rb} +4 -4
  49. data/lib/klaviyo-api-sdk/models/catalog_category_bulk_create_job_enum.rb +36 -0
  50. data/lib/klaviyo-api-sdk/models/catalog_category_bulk_delete_job_enum.rb +36 -0
  51. data/lib/klaviyo-api-sdk/models/catalog_category_bulk_update_job_enum.rb +36 -0
  52. data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query.rb +2 -2
  53. data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_resource_object.rb +238 -0
  54. data/lib/klaviyo-api-sdk/models/{catalog_category_create_job_create_query_as_sub_resource_attributes.rb → catalog_category_create_job_create_query_resource_object_attributes.rb} +5 -5
  55. data/lib/klaviyo-api-sdk/models/catalog_category_create_query.rb +2 -2
  56. data/lib/klaviyo-api-sdk/models/{list_create_query_as_sub_resource.rb → catalog_category_create_query_resource_object.rb} +27 -52
  57. data/lib/klaviyo-api-sdk/models/{catalog_category_create_query_as_sub_resource_attributes.rb → catalog_category_create_query_resource_object_attributes.rb} +20 -20
  58. data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query.rb +2 -2
  59. data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_resource_object.rb +238 -0
  60. data/lib/klaviyo-api-sdk/models/{catalog_category_delete_job_create_query_as_sub_resource_attributes.rb → catalog_category_delete_job_create_query_resource_object_attributes.rb} +5 -5
  61. data/lib/klaviyo-api-sdk/models/catalog_category_delete_query_resource_object.rb +239 -0
  62. data/lib/klaviyo-api-sdk/models/catalog_category_enum.rb +36 -0
  63. data/lib/klaviyo-api-sdk/models/catalog_category_item_op.rb +2 -2
  64. data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query.rb +2 -2
  65. data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_resource_object.rb +238 -0
  66. data/lib/klaviyo-api-sdk/models/{catalog_category_update_job_create_query_as_sub_resource_attributes.rb → catalog_category_update_job_create_query_resource_object_attributes.rb} +5 -5
  67. data/lib/klaviyo-api-sdk/models/catalog_category_update_query.rb +2 -2
  68. data/lib/klaviyo-api-sdk/models/{tag_create_query_as_sub_resource.rb → catalog_category_update_query_resource_object.rb} +37 -47
  69. data/lib/klaviyo-api-sdk/models/{catalog_category_update_query_as_sub_resource_attributes.rb → catalog_category_update_query_resource_object_attributes.rb} +4 -4
  70. data/lib/klaviyo-api-sdk/models/{catalog_variant_create_query_as_sub_resource_relationships.rb → catalog_category_update_query_resource_object_relationships.rb} +5 -5
  71. data/lib/klaviyo-api-sdk/models/{catalog_item_create_query_as_sub_resource_relationships_categories.rb → catalog_category_update_query_resource_object_relationships_items.rb} +5 -5
  72. data/lib/klaviyo-api-sdk/models/{catalog_item_create_query_as_sub_resource_relationships_categories_data_inner.rb → catalog_category_update_query_resource_object_relationships_items_data_inner.rb} +6 -6
  73. data/lib/klaviyo-api-sdk/models/catalog_item_bulk_create_job_enum.rb +36 -0
  74. data/lib/klaviyo-api-sdk/models/catalog_item_bulk_delete_job_enum.rb +36 -0
  75. data/lib/klaviyo-api-sdk/models/catalog_item_bulk_update_job_enum.rb +36 -0
  76. data/lib/klaviyo-api-sdk/models/catalog_item_category_op.rb +2 -2
  77. data/lib/klaviyo-api-sdk/models/{catalog_variant_create_query_as_sub_resource_relationships_items_data_inner.rb → catalog_item_category_op_data_inner.rb} +6 -6
  78. data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query.rb +2 -2
  79. data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_resource_object.rb +238 -0
  80. data/lib/klaviyo-api-sdk/models/{catalog_item_create_job_create_query_as_sub_resource_attributes.rb → catalog_item_create_job_create_query_resource_object_attributes.rb} +5 -5
  81. data/lib/klaviyo-api-sdk/models/catalog_item_create_query.rb +2 -2
  82. data/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object.rb +247 -0
  83. data/lib/klaviyo-api-sdk/models/{catalog_item_create_query_as_sub_resource_attributes.rb → catalog_item_create_query_resource_object_attributes.rb} +74 -74
  84. data/lib/klaviyo-api-sdk/models/{catalog_item_create_query_as_sub_resource_relationships.rb → catalog_item_create_query_resource_object_relationships.rb} +5 -5
  85. data/lib/klaviyo-api-sdk/models/{catalog_variant_create_query_as_sub_resource_relationships_items.rb → catalog_item_create_query_resource_object_relationships_categories.rb} +5 -5
  86. data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query.rb +2 -2
  87. data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_resource_object.rb +238 -0
  88. data/lib/klaviyo-api-sdk/models/{catalog_item_delete_job_create_query_as_sub_resource_attributes.rb → catalog_item_delete_job_create_query_resource_object_attributes.rb} +5 -5
  89. data/lib/klaviyo-api-sdk/models/catalog_item_delete_query_resource_object.rb +239 -0
  90. data/lib/klaviyo-api-sdk/models/catalog_item_enum.rb +36 -0
  91. data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query.rb +2 -2
  92. data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_resource_object.rb +238 -0
  93. data/lib/klaviyo-api-sdk/models/{catalog_item_update_job_create_query_as_sub_resource_attributes.rb → catalog_item_update_job_create_query_resource_object_attributes.rb} +5 -5
  94. data/lib/klaviyo-api-sdk/models/catalog_item_update_query.rb +2 -2
  95. data/lib/klaviyo-api-sdk/models/catalog_item_update_query_resource_object.rb +262 -0
  96. data/lib/klaviyo-api-sdk/models/{catalog_item_update_query_as_sub_resource_attributes.rb → catalog_item_update_query_resource_object_attributes.rb} +46 -46
  97. data/lib/klaviyo-api-sdk/models/catalog_variant_bulk_create_job_enum.rb +36 -0
  98. data/lib/klaviyo-api-sdk/models/catalog_variant_bulk_delete_job_enum.rb +36 -0
  99. data/lib/klaviyo-api-sdk/models/catalog_variant_bulk_update_job_enum.rb +36 -0
  100. data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query.rb +2 -2
  101. data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_resource_object.rb +238 -0
  102. data/lib/klaviyo-api-sdk/models/{catalog_variant_create_job_create_query_as_sub_resource_attributes.rb → catalog_variant_create_job_create_query_resource_object_attributes.rb} +5 -5
  103. data/lib/klaviyo-api-sdk/models/catalog_variant_create_query.rb +2 -2
  104. data/lib/klaviyo-api-sdk/models/{event_create_query_as_sub_resource.rb → catalog_variant_create_query_resource_object.rb} +27 -52
  105. data/lib/klaviyo-api-sdk/models/{catalog_variant_create_query_as_sub_resource_attributes.rb → catalog_variant_create_query_resource_object_attributes.rb} +117 -117
  106. data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query.rb +2 -2
  107. data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_resource_object.rb +238 -0
  108. data/lib/klaviyo-api-sdk/models/{catalog_variant_delete_job_create_query_as_sub_resource_attributes.rb → catalog_variant_delete_job_create_query_resource_object_attributes.rb} +5 -5
  109. data/lib/klaviyo-api-sdk/models/catalog_variant_delete_query_resource_object.rb +239 -0
  110. data/lib/klaviyo-api-sdk/models/catalog_variant_enum.rb +36 -0
  111. data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query.rb +2 -2
  112. data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_resource_object.rb +238 -0
  113. data/lib/klaviyo-api-sdk/models/{catalog_variant_update_job_create_query_as_sub_resource_attributes.rb → catalog_variant_update_job_create_query_resource_object_attributes.rb} +5 -5
  114. data/lib/klaviyo-api-sdk/models/catalog_variant_update_query.rb +2 -2
  115. data/lib/klaviyo-api-sdk/models/{campaign_send_job_create_query_as_sub_resource.rb → catalog_variant_update_query_resource_object.rb} +29 -48
  116. data/lib/klaviyo-api-sdk/models/{catalog_variant_update_query_as_sub_resource_attributes.rb → catalog_variant_update_query_resource_object_attributes.rb} +63 -53
  117. data/lib/klaviyo-api-sdk/models/content_sub_object.rb +30 -30
  118. data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query.rb +2 -2
  119. data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_resource_object.rb +238 -0
  120. data/lib/klaviyo-api-sdk/models/{data_privacy_create_deletion_job_query_as_sub_resource_attributes.rb → data_privacy_create_deletion_job_query_resource_object_attributes.rb} +18 -18
  121. data/lib/klaviyo-api-sdk/models/data_privacy_deletion_job_enum.rb +36 -0
  122. data/lib/klaviyo-api-sdk/models/event_create_query.rb +2 -2
  123. data/lib/klaviyo-api-sdk/models/event_create_query_resource_object.rb +238 -0
  124. data/lib/klaviyo-api-sdk/models/{event_create_query_as_sub_resource_attributes.rb → event_create_query_resource_object_attributes.rb} +19 -19
  125. data/lib/klaviyo-api-sdk/models/event_enum.rb +36 -0
  126. data/lib/klaviyo-api-sdk/models/flow_enum.rb +36 -0
  127. data/lib/klaviyo-api-sdk/models/flow_update_query.rb +2 -2
  128. data/lib/klaviyo-api-sdk/models/flow_update_query_resource_object.rb +253 -0
  129. data/lib/klaviyo-api-sdk/models/{flow_update_query_as_sub_resource_attributes.rb → flow_update_query_resource_object_attributes.rb} +5 -4
  130. data/lib/klaviyo-api-sdk/models/{get_campaigns4_xx_response.rb → get_create_variants_jobs5_xx_response.rb} +5 -5
  131. data/lib/klaviyo-api-sdk/models/{get_campaigns4_xx_response_errors_inner.rb → get_create_variants_jobs5_xx_response_errors_inner.rb} +40 -40
  132. data/lib/klaviyo-api-sdk/models/{get_catalog_items4_xx_response_errors_inner_source.rb → get_create_variants_jobs5_xx_response_errors_inner_source.rb} +17 -17
  133. data/lib/klaviyo-api-sdk/models/list_create_query.rb +2 -2
  134. data/lib/klaviyo-api-sdk/models/{sms_message_content.rb → list_create_query_resource_object.rb} +23 -23
  135. data/lib/klaviyo-api-sdk/models/{segment_partial_update_query_as_sub_resource_attributes.rb → list_create_query_resource_object_attributes.rb} +5 -4
  136. data/lib/klaviyo-api-sdk/models/list_enum.rb +36 -0
  137. data/lib/klaviyo-api-sdk/models/list_members_add_query.rb +1 -1
  138. data/lib/klaviyo-api-sdk/models/list_members_add_query_data_inner.rb +1 -1
  139. data/lib/klaviyo-api-sdk/models/list_members_delete_query.rb +1 -1
  140. data/lib/klaviyo-api-sdk/models/list_partial_update_query.rb +2 -2
  141. data/lib/klaviyo-api-sdk/models/list_partial_update_query_resource_object.rb +253 -0
  142. data/lib/klaviyo-api-sdk/models/metric_aggregate_enum.rb +36 -0
  143. data/lib/klaviyo-api-sdk/models/metric_aggregate_query.rb +2 -2
  144. data/lib/klaviyo-api-sdk/models/{v2_template_render_query_as_sub_resource.rb → metric_aggregate_query_resource_object.rb} +30 -13
  145. data/lib/klaviyo-api-sdk/models/{metric_aggregate_query_as_sub_resource_attributes.rb → metric_aggregate_query_resource_object_attributes.rb} +70 -70
  146. data/lib/klaviyo-api-sdk/models/metric_create_query.rb +1 -1
  147. data/lib/klaviyo-api-sdk/models/profile_create_query.rb +2 -2
  148. data/lib/klaviyo-api-sdk/models/profile_create_query_resource_object.rb +238 -0
  149. data/lib/klaviyo-api-sdk/models/{included_profiles_attributes.rb → profile_create_query_resource_object_attributes.rb} +36 -75
  150. data/lib/klaviyo-api-sdk/models/profile_enum.rb +36 -0
  151. data/lib/klaviyo-api-sdk/models/profile_location.rb +38 -38
  152. data/lib/klaviyo-api-sdk/models/profile_location_latitude.rb +1 -1
  153. data/lib/klaviyo-api-sdk/models/profile_location_longitude.rb +1 -1
  154. data/lib/klaviyo-api-sdk/models/profile_partial_update_query.rb +2 -2
  155. data/lib/klaviyo-api-sdk/models/profile_partial_update_query_resource_object.rb +253 -0
  156. data/lib/klaviyo-api-sdk/models/{profile_create_query_as_sub_resource_attributes.rb → profile_partial_update_query_resource_object_attributes.rb} +48 -48
  157. data/lib/klaviyo-api-sdk/models/profile_subscription_bulk_create_job_enum.rb +36 -0
  158. data/lib/klaviyo-api-sdk/models/profile_suppression_bulk_create_job_enum.rb +36 -0
  159. data/lib/klaviyo-api-sdk/models/profile_unsubscription_bulk_create_job_enum.rb +36 -0
  160. data/lib/klaviyo-api-sdk/models/profile_unsuppression_bulk_create_job_enum.rb +36 -0
  161. data/lib/klaviyo-api-sdk/models/segment_enum.rb +36 -0
  162. data/lib/klaviyo-api-sdk/models/segment_partial_update_query.rb +2 -2
  163. data/lib/klaviyo-api-sdk/models/segment_partial_update_query_resource_object.rb +252 -0
  164. data/lib/klaviyo-api-sdk/models/{tag_update_query_as_sub_resource_attributes.rb → segment_partial_update_query_resource_object_attributes.rb} +4 -5
  165. data/lib/klaviyo-api-sdk/models/send_options_sub_object.rb +1 -1
  166. data/lib/klaviyo-api-sdk/models/send_strategy_sub_object.rb +17 -17
  167. data/lib/klaviyo-api-sdk/models/static_schedule_options.rb +15 -15
  168. data/lib/klaviyo-api-sdk/models/sto_schedule_options.rb +1 -1
  169. data/lib/klaviyo-api-sdk/models/subscription.rb +15 -15
  170. data/lib/klaviyo-api-sdk/models/subscription_channels.rb +17 -17
  171. data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query.rb +2 -2
  172. data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object.rb +238 -0
  173. data/lib/klaviyo-api-sdk/models/{subscription_create_job_create_query_as_sub_resource_attributes.rb → subscription_create_job_create_query_resource_object_attributes.rb} +26 -26
  174. data/lib/klaviyo-api-sdk/models/suppression.rb +1 -1
  175. data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query.rb +2 -2
  176. data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object.rb +238 -0
  177. data/lib/klaviyo-api-sdk/models/{suppression_create_job_create_query_as_sub_resource_attributes.rb → suppression_create_job_create_query_resource_object_attributes.rb} +4 -4
  178. data/lib/klaviyo-api-sdk/models/{campaign_tag_op.rb → tag_campaign_op.rb} +5 -5
  179. data/lib/klaviyo-api-sdk/models/{campaign_tag_op_data_inner.rb → tag_campaign_op_data_inner.rb} +6 -6
  180. data/lib/klaviyo-api-sdk/models/tag_create_query.rb +2 -2
  181. data/lib/klaviyo-api-sdk/models/{utm_param_info.rb → tag_create_query_resource_object.rb} +23 -23
  182. data/lib/klaviyo-api-sdk/models/{tag_create_query_as_sub_resource_attributes.rb → tag_create_query_resource_object_attributes.rb} +18 -18
  183. data/lib/klaviyo-api-sdk/models/tag_enum.rb +36 -0
  184. data/lib/klaviyo-api-sdk/models/{onsite_profile_create_query.rb → tag_flow_op.rb} +8 -6
  185. data/lib/klaviyo-api-sdk/models/{catalog_item_delete_query_as_sub_resource.rb → tag_flow_op_data_inner.rb} +6 -7
  186. data/lib/klaviyo-api-sdk/models/tag_group_create_query.rb +2 -2
  187. data/lib/klaviyo-api-sdk/models/tag_group_create_query_resource_object.rb +238 -0
  188. data/lib/klaviyo-api-sdk/models/{tag_group_create_query_as_sub_resource_attributes.rb → tag_group_create_query_resource_object_attributes.rb} +17 -17
  189. data/lib/klaviyo-api-sdk/models/tag_group_enum.rb +36 -0
  190. data/lib/klaviyo-api-sdk/models/tag_group_update_query.rb +2 -2
  191. data/lib/klaviyo-api-sdk/models/tag_group_update_query_resource_object.rb +253 -0
  192. data/lib/klaviyo-api-sdk/models/{tag_group_update_query_as_sub_resource_attributes.rb → tag_group_update_query_resource_object_attributes.rb} +17 -17
  193. data/lib/klaviyo-api-sdk/models/{onsite_subscription_create_query.rb → tag_list_op.rb} +8 -6
  194. data/lib/klaviyo-api-sdk/models/tag_list_op_data_inner.rb +272 -0
  195. data/lib/klaviyo-api-sdk/models/tag_segment_op.rb +1 -1
  196. data/lib/klaviyo-api-sdk/models/tag_segment_op_data_inner.rb +1 -1
  197. data/lib/klaviyo-api-sdk/models/tag_update_query.rb +2 -2
  198. data/lib/klaviyo-api-sdk/models/tag_update_query_resource_object.rb +253 -0
  199. data/lib/klaviyo-api-sdk/models/{list_create_query_as_sub_resource_attributes.rb → tag_update_query_resource_object_attributes.rb} +5 -5
  200. data/lib/klaviyo-api-sdk/models/template_clone_query.rb +2 -2
  201. data/lib/klaviyo-api-sdk/models/template_clone_query_resource_object.rb +238 -0
  202. data/lib/klaviyo-api-sdk/models/{template_clone_query_as_sub_resource_attributes.rb → template_clone_query_resource_object_attributes.rb} +20 -20
  203. data/lib/klaviyo-api-sdk/models/template_create_query.rb +2 -2
  204. data/lib/klaviyo-api-sdk/models/template_create_query_resource_object.rb +238 -0
  205. data/lib/klaviyo-api-sdk/models/{template_create_query_as_sub_resource_attributes.rb → template_create_query_resource_object_attributes.rb} +35 -35
  206. data/lib/klaviyo-api-sdk/models/template_enum.rb +36 -0
  207. data/lib/klaviyo-api-sdk/models/template_render_query.rb +2 -2
  208. data/lib/klaviyo-api-sdk/models/template_render_query_resource_object.rb +238 -0
  209. data/lib/klaviyo-api-sdk/models/{template_render_query_as_sub_resource_attributes.rb → template_render_query_resource_object_attributes.rb} +20 -20
  210. data/lib/klaviyo-api-sdk/models/template_update_query.rb +2 -2
  211. data/lib/klaviyo-api-sdk/models/template_update_query_resource_object.rb +253 -0
  212. data/lib/klaviyo-api-sdk/models/{template_update_query_as_sub_resource_attributes.rb → template_update_query_resource_object_attributes.rb} +19 -19
  213. data/lib/klaviyo-api-sdk/models/throttled_schedule_options.rb +20 -20
  214. data/lib/klaviyo-api-sdk/models/tracking_options_sub_object.rb +15 -15
  215. data/lib/klaviyo-api-sdk/models/unsubscription_create_job_create_query.rb +2 -2
  216. data/lib/klaviyo-api-sdk/models/unsubscription_create_job_create_query_resource_object.rb +238 -0
  217. data/lib/klaviyo-api-sdk/models/{unsubscription_create_job_create_query_as_sub_resource_attributes.rb → unsubscription_create_job_create_query_resource_object_attributes.rb} +21 -21
  218. data/lib/klaviyo-api-sdk/models/unsuppression_create_job_create_query.rb +2 -2
  219. data/lib/klaviyo-api-sdk/models/unsuppression_create_job_create_query_resource_object.rb +238 -0
  220. data/lib/klaviyo-api-sdk/models/{unsuppression_create_job_create_query_as_sub_resource_attributes.rb → unsuppression_create_job_create_query_resource_object_attributes.rb} +4 -4
  221. data/lib/klaviyo-api-sdk/models/utm_params_sub_object.rb +1 -1
  222. data/lib/klaviyo-api-sdk/version.rb +1 -1
  223. data/lib/klaviyo-api-sdk.rb +137 -143
  224. metadata +139 -609
  225. data/Gemfile +0 -9
  226. data/Rakefile +0 -10
  227. data/docs/AudiencesSubObject.md +0 -20
  228. data/docs/CampaignCloneQuery.md +0 -18
  229. data/docs/CampaignCloneQueryAsSubResource.md +0 -20
  230. data/docs/CampaignCloneQueryAsSubResourceAttributes.md +0 -20
  231. data/docs/CampaignCreateQuery.md +0 -18
  232. data/docs/CampaignCreateQueryAsSubResource.md +0 -20
  233. data/docs/CampaignCreateQueryAsSubResourceAttributes.md +0 -28
  234. data/docs/CampaignMessageAssignTemplateQuery.md +0 -18
  235. data/docs/CampaignMessageAssignTemplateQueryAsSubResource.md +0 -20
  236. data/docs/CampaignMessageAssignTemplateQueryAsSubResourceAttributes.md +0 -20
  237. data/docs/CampaignMessagePartialUpdateQuery.md +0 -18
  238. data/docs/CampaignMessagePartialUpdateQueryAsSubResource.md +0 -22
  239. data/docs/CampaignMessagePartialUpdateQueryAsSubResourceAttributes.md +0 -20
  240. data/docs/CampaignPartialUpdateQuery.md +0 -18
  241. data/docs/CampaignPartialUpdateQueryAsSubResource.md +0 -22
  242. data/docs/CampaignPartialUpdateQueryAsSubResourceAttributes.md +0 -26
  243. data/docs/CampaignRecipientEstimationJobCreateQuery.md +0 -18
  244. data/docs/CampaignRecipientEstimationJobCreateQueryAsSubResource.md +0 -20
  245. data/docs/CampaignRecipientEstimationJobCreateQueryAsSubResourceAttributes.md +0 -18
  246. data/docs/CampaignSendJobCreateQuery.md +0 -18
  247. data/docs/CampaignSendJobCreateQueryAsSubResource.md +0 -20
  248. data/docs/CampaignSendJobCreateQueryAsSubResourceAttributes.md +0 -18
  249. data/docs/CampaignSendJobPartialUpdateQuery.md +0 -18
  250. data/docs/CampaignSendJobPartialUpdateQueryAsSubResource.md +0 -22
  251. data/docs/CampaignSendJobPartialUpdateQueryAsSubResourceAttributes.md +0 -18
  252. data/docs/CampaignTagOp.md +0 -18
  253. data/docs/CampaignTagOpDataInner.md +0 -20
  254. data/docs/CampaignsApi.md +0 -1277
  255. data/docs/CatalogCategoryCreateJobCreateQuery.md +0 -18
  256. data/docs/CatalogCategoryCreateJobCreateQueryAsSubResource.md +0 -20
  257. data/docs/CatalogCategoryCreateJobCreateQueryAsSubResourceAttributes.md +0 -18
  258. data/docs/CatalogCategoryCreateQuery.md +0 -18
  259. data/docs/CatalogCategoryCreateQueryAsSubResource.md +0 -22
  260. data/docs/CatalogCategoryCreateQueryAsSubResourceAttributes.md +0 -24
  261. data/docs/CatalogCategoryDeleteJobCreateQuery.md +0 -18
  262. data/docs/CatalogCategoryDeleteJobCreateQueryAsSubResource.md +0 -20
  263. data/docs/CatalogCategoryDeleteJobCreateQueryAsSubResourceAttributes.md +0 -18
  264. data/docs/CatalogCategoryDeleteQueryAsSubResource.md +0 -20
  265. data/docs/CatalogCategoryItemOp.md +0 -18
  266. data/docs/CatalogCategoryUpdateJobCreateQuery.md +0 -18
  267. data/docs/CatalogCategoryUpdateJobCreateQueryAsSubResource.md +0 -20
  268. data/docs/CatalogCategoryUpdateJobCreateQueryAsSubResourceAttributes.md +0 -18
  269. data/docs/CatalogCategoryUpdateQuery.md +0 -18
  270. data/docs/CatalogCategoryUpdateQueryAsSubResource.md +0 -24
  271. data/docs/CatalogCategoryUpdateQueryAsSubResourceAttributes.md +0 -18
  272. data/docs/CatalogItemCategoryOp.md +0 -18
  273. data/docs/CatalogItemCreateJobCreateQuery.md +0 -18
  274. data/docs/CatalogItemCreateJobCreateQueryAsSubResource.md +0 -20
  275. data/docs/CatalogItemCreateJobCreateQueryAsSubResourceAttributes.md +0 -18
  276. data/docs/CatalogItemCreateQuery.md +0 -18
  277. data/docs/CatalogItemCreateQueryAsSubResource.md +0 -22
  278. data/docs/CatalogItemCreateQueryAsSubResourceAttributes.md +0 -40
  279. data/docs/CatalogItemCreateQueryAsSubResourceRelationships.md +0 -18
  280. data/docs/CatalogItemCreateQueryAsSubResourceRelationshipsCategories.md +0 -18
  281. data/docs/CatalogItemCreateQueryAsSubResourceRelationshipsCategoriesDataInner.md +0 -20
  282. data/docs/CatalogItemDeleteJobCreateQuery.md +0 -18
  283. data/docs/CatalogItemDeleteJobCreateQueryAsSubResource.md +0 -20
  284. data/docs/CatalogItemDeleteJobCreateQueryAsSubResourceAttributes.md +0 -18
  285. data/docs/CatalogItemDeleteQueryAsSubResource.md +0 -20
  286. data/docs/CatalogItemUpdateJobCreateQuery.md +0 -18
  287. data/docs/CatalogItemUpdateJobCreateQueryAsSubResource.md +0 -20
  288. data/docs/CatalogItemUpdateJobCreateQueryAsSubResourceAttributes.md +0 -18
  289. data/docs/CatalogItemUpdateQuery.md +0 -18
  290. data/docs/CatalogItemUpdateQueryAsSubResource.md +0 -24
  291. data/docs/CatalogItemUpdateQueryAsSubResourceAttributes.md +0 -34
  292. data/docs/CatalogJobErrorPayload.md +0 -26
  293. data/docs/CatalogVariantCreateJobCreateQuery.md +0 -18
  294. data/docs/CatalogVariantCreateJobCreateQueryAsSubResource.md +0 -20
  295. data/docs/CatalogVariantCreateJobCreateQueryAsSubResourceAttributes.md +0 -18
  296. data/docs/CatalogVariantCreateQuery.md +0 -18
  297. data/docs/CatalogVariantCreateQueryAsSubResource.md +0 -22
  298. data/docs/CatalogVariantCreateQueryAsSubResourceAttributes.md +0 -46
  299. data/docs/CatalogVariantCreateQueryAsSubResourceRelationships.md +0 -18
  300. data/docs/CatalogVariantCreateQueryAsSubResourceRelationshipsItems.md +0 -18
  301. data/docs/CatalogVariantCreateQueryAsSubResourceRelationshipsItemsDataInner.md +0 -20
  302. data/docs/CatalogVariantDeleteJobCreateQuery.md +0 -18
  303. data/docs/CatalogVariantDeleteJobCreateQueryAsSubResource.md +0 -20
  304. data/docs/CatalogVariantDeleteJobCreateQueryAsSubResourceAttributes.md +0 -18
  305. data/docs/CatalogVariantDeleteQueryAsSubResource.md +0 -20
  306. data/docs/CatalogVariantUpdateJobCreateQuery.md +0 -18
  307. data/docs/CatalogVariantUpdateJobCreateQueryAsSubResource.md +0 -20
  308. data/docs/CatalogVariantUpdateJobCreateQueryAsSubResourceAttributes.md +0 -18
  309. data/docs/CatalogVariantUpdateQuery.md +0 -18
  310. data/docs/CatalogVariantUpdateQueryAsSubResource.md +0 -22
  311. data/docs/CatalogVariantUpdateQueryAsSubResourceAttributes.md +0 -38
  312. data/docs/CatalogsApi.md +0 -4048
  313. data/docs/ClientApi.md +0 -205
  314. data/docs/ContentSubObject.md +0 -28
  315. data/docs/DataPrivacyApi.md +0 -78
  316. data/docs/DataPrivacyCreateDeletionJobQuery.md +0 -18
  317. data/docs/DataPrivacyCreateDeletionJobQueryAsSubResource.md +0 -20
  318. data/docs/DataPrivacyCreateDeletionJobQueryAsSubResourceAttributes.md +0 -22
  319. data/docs/EmailMessageContent.md +0 -24
  320. data/docs/EmailTrackingOptions.md +0 -24
  321. data/docs/ErrorSource.md +0 -18
  322. data/docs/EventCreateQuery.md +0 -18
  323. data/docs/EventCreateQueryAsSubResource.md +0 -20
  324. data/docs/EventCreateQueryAsSubResourceAttributes.md +0 -28
  325. data/docs/EventsApi.md +0 -472
  326. data/docs/FlowUpdateQuery.md +0 -18
  327. data/docs/FlowUpdateQueryAsSubResource.md +0 -22
  328. data/docs/FlowUpdateQueryAsSubResourceAttributes.md +0 -18
  329. data/docs/FlowsApi.md +0 -1029
  330. data/docs/GetCampaigns4XXResponse.md +0 -18
  331. data/docs/GetCampaigns4XXResponseErrorsInner.md +0 -26
  332. data/docs/GetCampaigns4XXResponseErrorsInnerSource.md +0 -20
  333. data/docs/GetCatalogItems4XXResponse.md +0 -18
  334. data/docs/GetCatalogItems4XXResponseErrorsInner.md +0 -26
  335. data/docs/GetCatalogItems4XXResponseErrorsInnerSource.md +0 -20
  336. data/docs/IncludedCategories.md +0 -24
  337. data/docs/IncludedCategoriesAttributes.md +0 -22
  338. data/docs/IncludedFlowAction.md +0 -24
  339. data/docs/IncludedFlowActions.md +0 -24
  340. data/docs/IncludedFlowActionsAttributes.md +0 -32
  341. data/docs/IncludedFlowActionsAttributesTrackingOptions.md +0 -49
  342. data/docs/IncludedFlowMessages.md +0 -24
  343. data/docs/IncludedFlowMessagesAttributes.md +0 -26
  344. data/docs/IncludedFlowMessagesAttributesContent.md +0 -49
  345. data/docs/IncludedFlows.md +0 -24
  346. data/docs/IncludedFlowsAttributes.md +0 -28
  347. data/docs/IncludedItems.md +0 -24
  348. data/docs/IncludedItemsAttributes.md +0 -40
  349. data/docs/IncludedLists.md +0 -24
  350. data/docs/IncludedListsAttributes.md +0 -22
  351. data/docs/IncludedMetrics.md +0 -24
  352. data/docs/IncludedMetricsAttributes.md +0 -24
  353. data/docs/IncludedProfiles.md +0 -24
  354. data/docs/IncludedProfilesAttributes.md +0 -44
  355. data/docs/IncludedSegments.md +0 -24
  356. data/docs/IncludedSegmentsAttributes.md +0 -22
  357. data/docs/IncludedTags.md +0 -24
  358. data/docs/IncludedVariants.md +0 -24
  359. data/docs/IncludedVariantsAttributes.md +0 -46
  360. data/docs/IncludedVariantsLinks.md +0 -18
  361. data/docs/ListCreateQuery.md +0 -18
  362. data/docs/ListCreateQueryAsSubResource.md +0 -20
  363. data/docs/ListCreateQueryAsSubResourceAttributes.md +0 -18
  364. data/docs/ListMembersAddQuery.md +0 -18
  365. data/docs/ListMembersAddQueryDataInner.md +0 -20
  366. data/docs/ListMembersDeleteQuery.md +0 -18
  367. data/docs/ListPartialUpdateQuery.md +0 -18
  368. data/docs/ListPartialUpdateQueryAsSubResource.md +0 -22
  369. data/docs/ListsApi.md +0 -762
  370. data/docs/MetricAggregateQuery.md +0 -18
  371. data/docs/MetricAggregateQueryAsSubResource.md +0 -20
  372. data/docs/MetricAggregateQueryAsSubResourceAttributes.md +0 -36
  373. data/docs/MetricAggregateRowDTO.md +0 -20
  374. data/docs/MetricCreateQuery.md +0 -20
  375. data/docs/MetricsApi.md +0 -233
  376. data/docs/OnsiteProfileCreateQuery.md +0 -18
  377. data/docs/OnsiteProfileCreateQueryAsSubResource.md +0 -22
  378. data/docs/OnsiteProfileMeta.md +0 -18
  379. data/docs/OnsiteProfileMetaIdentifiers.md +0 -28
  380. data/docs/OnsiteSubscriptionCreateQuery.md +0 -18
  381. data/docs/OnsiteSubscriptionCreateQueryAsSubResource.md +0 -20
  382. data/docs/OnsiteSubscriptionCreateQueryAsSubResourceAttributes.md +0 -26
  383. data/docs/ProfileCreateQuery.md +0 -18
  384. data/docs/ProfileCreateQueryAsSubResource.md +0 -20
  385. data/docs/ProfileCreateQueryAsSubResourceAttributes.md +0 -38
  386. data/docs/ProfileLocation.md +0 -34
  387. data/docs/ProfileLocationLatitude.md +0 -49
  388. data/docs/ProfileLocationLongitude.md +0 -49
  389. data/docs/ProfilePartialUpdateQuery.md +0 -18
  390. data/docs/ProfilePartialUpdateQueryAsSubResource.md +0 -22
  391. data/docs/ProfilesApi.md +0 -825
  392. data/docs/SMSMessageContent.md +0 -20
  393. data/docs/SMSRenderOptions.md +0 -24
  394. data/docs/SMSTrackingOptions.md +0 -20
  395. data/docs/STOScheduleOptions.md +0 -18
  396. data/docs/SegmentPartialUpdateQuery.md +0 -18
  397. data/docs/SegmentPartialUpdateQueryAsSubResource.md +0 -22
  398. data/docs/SegmentPartialUpdateQueryAsSubResourceAttributes.md +0 -18
  399. data/docs/SegmentsApi.md +0 -469
  400. data/docs/SendOptions.md +0 -20
  401. data/docs/SendOptionsSubObject.md +0 -18
  402. data/docs/SendStrategySubObject.md +0 -24
  403. data/docs/SendTimeSubObject.md +0 -20
  404. data/docs/StaticScheduleOptions.md +0 -22
  405. data/docs/Subscription.md +0 -24
  406. data/docs/SubscriptionChannels.md +0 -20
  407. data/docs/SubscriptionCreateJobCreateQuery.md +0 -18
  408. data/docs/SubscriptionCreateJobCreateQueryAsSubResource.md +0 -20
  409. data/docs/SubscriptionCreateJobCreateQueryAsSubResourceAttributes.md +0 -22
  410. data/docs/Suppression.md +0 -18
  411. data/docs/SuppressionCreateJobCreateQuery.md +0 -18
  412. data/docs/SuppressionCreateJobCreateQueryAsSubResource.md +0 -20
  413. data/docs/SuppressionCreateJobCreateQueryAsSubResourceAttributes.md +0 -18
  414. data/docs/TagCreateQuery.md +0 -18
  415. data/docs/TagCreateQueryAsSubResource.md +0 -20
  416. data/docs/TagCreateQueryAsSubResourceAttributes.md +0 -20
  417. data/docs/TagGroupCreateQuery.md +0 -18
  418. data/docs/TagGroupCreateQueryAsSubResource.md +0 -20
  419. data/docs/TagGroupCreateQueryAsSubResourceAttributes.md +0 -20
  420. data/docs/TagGroupUpdateQuery.md +0 -18
  421. data/docs/TagGroupUpdateQueryAsSubResource.md +0 -22
  422. data/docs/TagGroupUpdateQueryAsSubResourceAttributes.md +0 -20
  423. data/docs/TagSegmentOp.md +0 -18
  424. data/docs/TagSegmentOpDataInner.md +0 -20
  425. data/docs/TagUpdateQuery.md +0 -18
  426. data/docs/TagUpdateQueryAsSubResource.md +0 -22
  427. data/docs/TagUpdateQueryAsSubResourceAttributes.md +0 -18
  428. data/docs/TagsApi.md +0 -1205
  429. data/docs/TemplateCloneQuery.md +0 -18
  430. data/docs/TemplateCloneQueryAsSubResource.md +0 -20
  431. data/docs/TemplateCloneQueryAsSubResourceAttributes.md +0 -22
  432. data/docs/TemplateCreateQuery.md +0 -18
  433. data/docs/TemplateCreateQueryAsSubResource.md +0 -20
  434. data/docs/TemplateCreateQueryAsSubResourceAttributes.md +0 -32
  435. data/docs/TemplateRenderQuery.md +0 -18
  436. data/docs/TemplateRenderQueryAsSubResource.md +0 -20
  437. data/docs/TemplateRenderQueryAsSubResourceAttributes.md +0 -22
  438. data/docs/TemplateUpdateQuery.md +0 -18
  439. data/docs/TemplateUpdateQueryAsSubResource.md +0 -22
  440. data/docs/TemplateUpdateQueryAsSubResourceAttributes.md +0 -30
  441. data/docs/TemplatesApi.md +0 -525
  442. data/docs/ThrottledScheduleOptions.md +0 -20
  443. data/docs/TrackingOptionsSubObject.md +0 -24
  444. data/docs/UTMParamsSubObject.md +0 -20
  445. data/docs/UnsubscriptionCreateJobCreateQuery.md +0 -18
  446. data/docs/UnsubscriptionCreateJobCreateQueryAsSubResource.md +0 -20
  447. data/docs/UnsubscriptionCreateJobCreateQueryAsSubResourceAttributes.md +0 -22
  448. data/docs/UnsuppressionCreateJobCreateQuery.md +0 -18
  449. data/docs/UnsuppressionCreateJobCreateQueryAsSubResource.md +0 -20
  450. data/docs/UnsuppressionCreateJobCreateQueryAsSubResourceAttributes.md +0 -18
  451. data/docs/UtmParamInfo.md +0 -20
  452. data/docs/V2TemplateRenderQueryAsSubResource.md +0 -18
  453. data/git_push.sh +0 -57
  454. data/lib/klaviyo-api-sdk/api/client_api.rb +0 -249
  455. data/lib/klaviyo-api-sdk/models/campaign_clone_query_as_sub_resource.rb +0 -272
  456. data/lib/klaviyo-api-sdk/models/campaign_create_query_as_sub_resource.rb +0 -272
  457. data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_as_sub_resource.rb +0 -272
  458. data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_as_sub_resource.rb +0 -287
  459. data/lib/klaviyo-api-sdk/models/campaign_partial_update_query_as_sub_resource.rb +0 -287
  460. data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query_as_sub_resource.rb +0 -272
  461. data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_as_sub_resource.rb +0 -287
  462. data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_as_sub_resource.rb +0 -272
  463. data/lib/klaviyo-api-sdk/models/catalog_category_create_query_as_sub_resource.rb +0 -281
  464. data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_as_sub_resource.rb +0 -272
  465. data/lib/klaviyo-api-sdk/models/catalog_category_delete_query_as_sub_resource.rb +0 -273
  466. data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_as_sub_resource.rb +0 -272
  467. data/lib/klaviyo-api-sdk/models/catalog_category_update_query_as_sub_resource.rb +0 -296
  468. data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_as_sub_resource.rb +0 -272
  469. data/lib/klaviyo-api-sdk/models/catalog_item_create_query_as_sub_resource.rb +0 -281
  470. data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_as_sub_resource.rb +0 -272
  471. data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_as_sub_resource.rb +0 -272
  472. data/lib/klaviyo-api-sdk/models/catalog_item_update_query_as_sub_resource.rb +0 -296
  473. data/lib/klaviyo-api-sdk/models/catalog_job_error_payload.rb +0 -284
  474. data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_as_sub_resource.rb +0 -272
  475. data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_as_sub_resource.rb +0 -281
  476. data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_as_sub_resource.rb +0 -272
  477. data/lib/klaviyo-api-sdk/models/catalog_variant_delete_query_as_sub_resource.rb +0 -273
  478. data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_as_sub_resource.rb +0 -272
  479. data/lib/klaviyo-api-sdk/models/catalog_variant_update_query_as_sub_resource.rb +0 -287
  480. data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_as_sub_resource.rb +0 -272
  481. data/lib/klaviyo-api-sdk/models/email_message_content.rb +0 -266
  482. data/lib/klaviyo-api-sdk/models/email_tracking_options.rb +0 -268
  483. data/lib/klaviyo-api-sdk/models/error_source.rb +0 -227
  484. data/lib/klaviyo-api-sdk/models/flow_update_query_as_sub_resource.rb +0 -286
  485. data/lib/klaviyo-api-sdk/models/get_catalog_items4_xx_response.rb +0 -226
  486. data/lib/klaviyo-api-sdk/models/get_catalog_items4_xx_response_errors_inner.rb +0 -275
  487. data/lib/klaviyo-api-sdk/models/included_categories.rb +0 -301
  488. data/lib/klaviyo-api-sdk/models/included_categories_attributes.rb +0 -240
  489. data/lib/klaviyo-api-sdk/models/included_flow_action.rb +0 -300
  490. data/lib/klaviyo-api-sdk/models/included_flow_actions.rb +0 -300
  491. data/lib/klaviyo-api-sdk/models/included_flow_actions_attributes.rb +0 -282
  492. data/lib/klaviyo-api-sdk/models/included_flow_actions_attributes_tracking_options.rb +0 -105
  493. data/lib/klaviyo-api-sdk/models/included_flow_messages.rb +0 -300
  494. data/lib/klaviyo-api-sdk/models/included_flow_messages_attributes.rb +0 -270
  495. data/lib/klaviyo-api-sdk/models/included_flow_messages_attributes_content.rb +0 -105
  496. data/lib/klaviyo-api-sdk/models/included_flows.rb +0 -300
  497. data/lib/klaviyo-api-sdk/models/included_flows_attributes.rb +0 -264
  498. data/lib/klaviyo-api-sdk/models/included_items.rb +0 -301
  499. data/lib/klaviyo-api-sdk/models/included_items_attributes.rb +0 -332
  500. data/lib/klaviyo-api-sdk/models/included_lists.rb +0 -301
  501. data/lib/klaviyo-api-sdk/models/included_lists_attributes.rb +0 -240
  502. data/lib/klaviyo-api-sdk/models/included_metrics.rb +0 -301
  503. data/lib/klaviyo-api-sdk/models/included_metrics_attributes.rb +0 -250
  504. data/lib/klaviyo-api-sdk/models/included_profiles.rb +0 -301
  505. data/lib/klaviyo-api-sdk/models/included_segments.rb +0 -300
  506. data/lib/klaviyo-api-sdk/models/included_segments_attributes.rb +0 -240
  507. data/lib/klaviyo-api-sdk/models/included_tags.rb +0 -301
  508. data/lib/klaviyo-api-sdk/models/included_variants.rb +0 -301
  509. data/lib/klaviyo-api-sdk/models/included_variants_attributes.rb +0 -396
  510. data/lib/klaviyo-api-sdk/models/included_variants_links.rb +0 -224
  511. data/lib/klaviyo-api-sdk/models/list_partial_update_query_as_sub_resource.rb +0 -287
  512. data/lib/klaviyo-api-sdk/models/metric_aggregate_query_as_sub_resource.rb +0 -272
  513. data/lib/klaviyo-api-sdk/models/metric_aggregate_row_dto.rb +0 -242
  514. data/lib/klaviyo-api-sdk/models/onsite_profile_create_query_as_sub_resource.rb +0 -281
  515. data/lib/klaviyo-api-sdk/models/onsite_profile_meta.rb +0 -224
  516. data/lib/klaviyo-api-sdk/models/onsite_profile_meta_identifiers.rb +0 -269
  517. data/lib/klaviyo-api-sdk/models/onsite_subscription_create_query_as_sub_resource.rb +0 -272
  518. data/lib/klaviyo-api-sdk/models/onsite_subscription_create_query_as_sub_resource_attributes.rb +0 -265
  519. data/lib/klaviyo-api-sdk/models/profile_create_query_as_sub_resource.rb +0 -272
  520. data/lib/klaviyo-api-sdk/models/profile_partial_update_query_as_sub_resource.rb +0 -287
  521. data/lib/klaviyo-api-sdk/models/segment_partial_update_query_as_sub_resource.rb +0 -286
  522. data/lib/klaviyo-api-sdk/models/send_options.rb +0 -238
  523. data/lib/klaviyo-api-sdk/models/send_time_sub_object.rb +0 -240
  524. data/lib/klaviyo-api-sdk/models/sms_render_options.rb +0 -266
  525. data/lib/klaviyo-api-sdk/models/sms_tracking_options.rb +0 -240
  526. data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_as_sub_resource.rb +0 -272
  527. data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_as_sub_resource.rb +0 -272
  528. data/lib/klaviyo-api-sdk/models/tag_group_create_query_as_sub_resource.rb +0 -272
  529. data/lib/klaviyo-api-sdk/models/tag_group_update_query_as_sub_resource.rb +0 -287
  530. data/lib/klaviyo-api-sdk/models/tag_update_query_as_sub_resource.rb +0 -287
  531. data/lib/klaviyo-api-sdk/models/template_clone_query_as_sub_resource.rb +0 -272
  532. data/lib/klaviyo-api-sdk/models/template_create_query_as_sub_resource.rb +0 -272
  533. data/lib/klaviyo-api-sdk/models/template_render_query_as_sub_resource.rb +0 -272
  534. data/lib/klaviyo-api-sdk/models/template_update_query_as_sub_resource.rb +0 -287
  535. data/lib/klaviyo-api-sdk/models/unsubscription_create_job_create_query_as_sub_resource.rb +0 -272
  536. data/lib/klaviyo-api-sdk/models/unsuppression_create_job_create_query_as_sub_resource.rb +0 -272
  537. data/spec/api/campaigns_api_spec.rb +0 -284
  538. data/spec/api/catalogs_api_spec.rb +0 -759
  539. data/spec/api/client_api_spec.rb +0 -74
  540. data/spec/api/data_privacy_api_spec.rb +0 -47
  541. data/spec/api/events_api_spec.rb +0 -120
  542. data/spec/api/flows_api_spec.rb +0 -220
  543. data/spec/api/lists_api_spec.rb +0 -169
  544. data/spec/api/metrics_api_spec.rb +0 -74
  545. data/spec/api/profiles_api_spec.rb +0 -178
  546. data/spec/api/segments_api_spec.rb +0 -117
  547. data/spec/api/tags_api_spec.rb +0 -245
  548. data/spec/api/templates_api_spec.rb +0 -126
  549. data/spec/api_client_spec.rb +0 -226
  550. data/spec/configuration_spec.rb +0 -42
  551. data/spec/models/audiences_sub_object_spec.rb +0 -40
  552. data/spec/models/campaign_clone_query_as_sub_resource_attributes_spec.rb +0 -40
  553. data/spec/models/campaign_clone_query_as_sub_resource_spec.rb +0 -44
  554. data/spec/models/campaign_clone_query_spec.rb +0 -34
  555. data/spec/models/campaign_create_query_as_sub_resource_attributes_spec.rb +0 -64
  556. data/spec/models/campaign_create_query_as_sub_resource_spec.rb +0 -44
  557. data/spec/models/campaign_create_query_spec.rb +0 -34
  558. data/spec/models/campaign_message_assign_template_query_as_sub_resource_attributes_spec.rb +0 -40
  559. data/spec/models/campaign_message_assign_template_query_as_sub_resource_spec.rb +0 -44
  560. data/spec/models/campaign_message_assign_template_query_spec.rb +0 -34
  561. data/spec/models/campaign_message_partial_update_query_as_sub_resource_attributes_spec.rb +0 -40
  562. data/spec/models/campaign_message_partial_update_query_as_sub_resource_spec.rb +0 -50
  563. data/spec/models/campaign_message_partial_update_query_spec.rb +0 -34
  564. data/spec/models/campaign_partial_update_query_as_sub_resource_attributes_spec.rb +0 -58
  565. data/spec/models/campaign_partial_update_query_as_sub_resource_spec.rb +0 -50
  566. data/spec/models/campaign_partial_update_query_spec.rb +0 -34
  567. data/spec/models/campaign_recipient_estimation_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  568. data/spec/models/campaign_recipient_estimation_job_create_query_as_sub_resource_spec.rb +0 -44
  569. data/spec/models/campaign_recipient_estimation_job_create_query_spec.rb +0 -34
  570. data/spec/models/campaign_send_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  571. data/spec/models/campaign_send_job_create_query_as_sub_resource_spec.rb +0 -44
  572. data/spec/models/campaign_send_job_create_query_spec.rb +0 -34
  573. data/spec/models/campaign_send_job_partial_update_query_as_sub_resource_attributes_spec.rb +0 -34
  574. data/spec/models/campaign_send_job_partial_update_query_as_sub_resource_spec.rb +0 -50
  575. data/spec/models/campaign_send_job_partial_update_query_spec.rb +0 -34
  576. data/spec/models/campaign_tag_op_data_inner_spec.rb +0 -44
  577. data/spec/models/campaign_tag_op_spec.rb +0 -34
  578. data/spec/models/catalog_category_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  579. data/spec/models/catalog_category_create_job_create_query_as_sub_resource_spec.rb +0 -44
  580. data/spec/models/catalog_category_create_job_create_query_spec.rb +0 -34
  581. data/spec/models/catalog_category_create_query_as_sub_resource_attributes_spec.rb +0 -56
  582. data/spec/models/catalog_category_create_query_as_sub_resource_spec.rb +0 -50
  583. data/spec/models/catalog_category_create_query_spec.rb +0 -34
  584. data/spec/models/catalog_category_delete_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  585. data/spec/models/catalog_category_delete_job_create_query_as_sub_resource_spec.rb +0 -44
  586. data/spec/models/catalog_category_delete_job_create_query_spec.rb +0 -34
  587. data/spec/models/catalog_category_delete_query_as_sub_resource_spec.rb +0 -44
  588. data/spec/models/catalog_category_item_op_spec.rb +0 -34
  589. data/spec/models/catalog_category_update_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  590. data/spec/models/catalog_category_update_job_create_query_as_sub_resource_spec.rb +0 -44
  591. data/spec/models/catalog_category_update_job_create_query_spec.rb +0 -34
  592. data/spec/models/catalog_category_update_query_as_sub_resource_attributes_spec.rb +0 -34
  593. data/spec/models/catalog_category_update_query_as_sub_resource_spec.rb +0 -56
  594. data/spec/models/catalog_category_update_query_spec.rb +0 -34
  595. data/spec/models/catalog_item_category_op_spec.rb +0 -34
  596. data/spec/models/catalog_item_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  597. data/spec/models/catalog_item_create_job_create_query_as_sub_resource_spec.rb +0 -44
  598. data/spec/models/catalog_item_create_job_create_query_spec.rb +0 -34
  599. data/spec/models/catalog_item_create_query_as_sub_resource_attributes_spec.rb +0 -98
  600. data/spec/models/catalog_item_create_query_as_sub_resource_relationships_categories_data_inner_spec.rb +0 -44
  601. data/spec/models/catalog_item_create_query_as_sub_resource_relationships_categories_spec.rb +0 -34
  602. data/spec/models/catalog_item_create_query_as_sub_resource_relationships_spec.rb +0 -34
  603. data/spec/models/catalog_item_create_query_as_sub_resource_spec.rb +0 -50
  604. data/spec/models/catalog_item_create_query_spec.rb +0 -34
  605. data/spec/models/catalog_item_delete_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  606. data/spec/models/catalog_item_delete_job_create_query_as_sub_resource_spec.rb +0 -44
  607. data/spec/models/catalog_item_delete_job_create_query_spec.rb +0 -34
  608. data/spec/models/catalog_item_delete_query_as_sub_resource_spec.rb +0 -44
  609. data/spec/models/catalog_item_update_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  610. data/spec/models/catalog_item_update_job_create_query_as_sub_resource_spec.rb +0 -44
  611. data/spec/models/catalog_item_update_job_create_query_spec.rb +0 -34
  612. data/spec/models/catalog_item_update_query_as_sub_resource_attributes_spec.rb +0 -76
  613. data/spec/models/catalog_item_update_query_as_sub_resource_spec.rb +0 -56
  614. data/spec/models/catalog_item_update_query_spec.rb +0 -34
  615. data/spec/models/catalog_job_error_payload_spec.rb +0 -58
  616. data/spec/models/catalog_variant_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  617. data/spec/models/catalog_variant_create_job_create_query_as_sub_resource_spec.rb +0 -44
  618. data/spec/models/catalog_variant_create_job_create_query_spec.rb +0 -34
  619. data/spec/models/catalog_variant_create_query_as_sub_resource_attributes_spec.rb +0 -126
  620. data/spec/models/catalog_variant_create_query_as_sub_resource_relationships_items_data_inner_spec.rb +0 -44
  621. data/spec/models/catalog_variant_create_query_as_sub_resource_relationships_items_spec.rb +0 -34
  622. data/spec/models/catalog_variant_create_query_as_sub_resource_relationships_spec.rb +0 -34
  623. data/spec/models/catalog_variant_create_query_as_sub_resource_spec.rb +0 -50
  624. data/spec/models/catalog_variant_create_query_spec.rb +0 -34
  625. data/spec/models/catalog_variant_delete_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  626. data/spec/models/catalog_variant_delete_job_create_query_as_sub_resource_spec.rb +0 -44
  627. data/spec/models/catalog_variant_delete_job_create_query_spec.rb +0 -34
  628. data/spec/models/catalog_variant_delete_query_as_sub_resource_spec.rb +0 -44
  629. data/spec/models/catalog_variant_update_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  630. data/spec/models/catalog_variant_update_job_create_query_as_sub_resource_spec.rb +0 -44
  631. data/spec/models/catalog_variant_update_job_create_query_spec.rb +0 -34
  632. data/spec/models/catalog_variant_update_query_as_sub_resource_attributes_spec.rb +0 -98
  633. data/spec/models/catalog_variant_update_query_as_sub_resource_spec.rb +0 -50
  634. data/spec/models/catalog_variant_update_query_spec.rb +0 -34
  635. data/spec/models/content_sub_object_spec.rb +0 -64
  636. data/spec/models/data_privacy_create_deletion_job_query_as_sub_resource_attributes_spec.rb +0 -46
  637. data/spec/models/data_privacy_create_deletion_job_query_as_sub_resource_spec.rb +0 -44
  638. data/spec/models/data_privacy_create_deletion_job_query_spec.rb +0 -34
  639. data/spec/models/email_message_content_spec.rb +0 -52
  640. data/spec/models/email_tracking_options_spec.rb +0 -52
  641. data/spec/models/error_source_spec.rb +0 -34
  642. data/spec/models/event_create_query_as_sub_resource_attributes_spec.rb +0 -64
  643. data/spec/models/event_create_query_as_sub_resource_spec.rb +0 -44
  644. data/spec/models/event_create_query_spec.rb +0 -34
  645. data/spec/models/flow_update_query_as_sub_resource_attributes_spec.rb +0 -34
  646. data/spec/models/flow_update_query_as_sub_resource_spec.rb +0 -50
  647. data/spec/models/flow_update_query_spec.rb +0 -34
  648. data/spec/models/get_campaigns4_xx_response_errors_inner_source_spec.rb +0 -40
  649. data/spec/models/get_campaigns4_xx_response_errors_inner_spec.rb +0 -58
  650. data/spec/models/get_campaigns4_xx_response_spec.rb +0 -34
  651. data/spec/models/get_catalog_items4_xx_response_errors_inner_source_spec.rb +0 -40
  652. data/spec/models/get_catalog_items4_xx_response_errors_inner_spec.rb +0 -58
  653. data/spec/models/get_catalog_items4_xx_response_spec.rb +0 -34
  654. data/spec/models/included_categories_attributes_spec.rb +0 -46
  655. data/spec/models/included_categories_spec.rb +0 -56
  656. data/spec/models/included_flow_action_spec.rb +0 -56
  657. data/spec/models/included_flow_actions_attributes_spec.rb +0 -76
  658. data/spec/models/included_flow_actions_attributes_tracking_options_spec.rb +0 -31
  659. data/spec/models/included_flow_actions_spec.rb +0 -56
  660. data/spec/models/included_flow_messages_attributes_content_spec.rb +0 -31
  661. data/spec/models/included_flow_messages_attributes_spec.rb +0 -58
  662. data/spec/models/included_flow_messages_spec.rb +0 -56
  663. data/spec/models/included_flows_attributes_spec.rb +0 -64
  664. data/spec/models/included_flows_spec.rb +0 -56
  665. data/spec/models/included_items_attributes_spec.rb +0 -94
  666. data/spec/models/included_items_spec.rb +0 -56
  667. data/spec/models/included_lists_attributes_spec.rb +0 -46
  668. data/spec/models/included_lists_spec.rb +0 -56
  669. data/spec/models/included_metrics_attributes_spec.rb +0 -52
  670. data/spec/models/included_metrics_spec.rb +0 -56
  671. data/spec/models/included_profiles_attributes_spec.rb +0 -112
  672. data/spec/models/included_profiles_spec.rb +0 -56
  673. data/spec/models/included_segments_attributes_spec.rb +0 -46
  674. data/spec/models/included_segments_spec.rb +0 -56
  675. data/spec/models/included_tags_spec.rb +0 -56
  676. data/spec/models/included_variants_attributes_spec.rb +0 -122
  677. data/spec/models/included_variants_links_spec.rb +0 -34
  678. data/spec/models/included_variants_spec.rb +0 -56
  679. data/spec/models/list_create_query_as_sub_resource_attributes_spec.rb +0 -34
  680. data/spec/models/list_create_query_as_sub_resource_spec.rb +0 -44
  681. data/spec/models/list_create_query_spec.rb +0 -34
  682. data/spec/models/list_members_add_query_data_inner_spec.rb +0 -44
  683. data/spec/models/list_members_add_query_spec.rb +0 -34
  684. data/spec/models/list_members_delete_query_spec.rb +0 -34
  685. data/spec/models/list_partial_update_query_as_sub_resource_spec.rb +0 -50
  686. data/spec/models/list_partial_update_query_spec.rb +0 -34
  687. data/spec/models/metric_aggregate_query_as_sub_resource_attributes_spec.rb +0 -104
  688. data/spec/models/metric_aggregate_query_as_sub_resource_spec.rb +0 -44
  689. data/spec/models/metric_aggregate_query_spec.rb +0 -34
  690. data/spec/models/metric_aggregate_row_dto_spec.rb +0 -40
  691. data/spec/models/metric_create_query_spec.rb +0 -40
  692. data/spec/models/onsite_profile_create_query_as_sub_resource_spec.rb +0 -50
  693. data/spec/models/onsite_profile_create_query_spec.rb +0 -34
  694. data/spec/models/onsite_profile_meta_identifiers_spec.rb +0 -64
  695. data/spec/models/onsite_profile_meta_spec.rb +0 -34
  696. data/spec/models/onsite_subscription_create_query_as_sub_resource_attributes_spec.rb +0 -58
  697. data/spec/models/onsite_subscription_create_query_as_sub_resource_spec.rb +0 -44
  698. data/spec/models/onsite_subscription_create_query_spec.rb +0 -34
  699. data/spec/models/profile_create_query_as_sub_resource_attributes_spec.rb +0 -94
  700. data/spec/models/profile_create_query_as_sub_resource_spec.rb +0 -44
  701. data/spec/models/profile_create_query_spec.rb +0 -34
  702. data/spec/models/profile_location_latitude_spec.rb +0 -31
  703. data/spec/models/profile_location_longitude_spec.rb +0 -31
  704. data/spec/models/profile_location_spec.rb +0 -82
  705. data/spec/models/profile_partial_update_query_as_sub_resource_spec.rb +0 -50
  706. data/spec/models/profile_partial_update_query_spec.rb +0 -34
  707. data/spec/models/segment_partial_update_query_as_sub_resource_attributes_spec.rb +0 -34
  708. data/spec/models/segment_partial_update_query_as_sub_resource_spec.rb +0 -50
  709. data/spec/models/segment_partial_update_query_spec.rb +0 -34
  710. data/spec/models/send_options_spec.rb +0 -40
  711. data/spec/models/send_options_sub_object_spec.rb +0 -40
  712. data/spec/models/send_strategy_sub_object_spec.rb +0 -46
  713. data/spec/models/send_time_sub_object_spec.rb +0 -40
  714. data/spec/models/sms_message_content_spec.rb +0 -40
  715. data/spec/models/sms_render_options_spec.rb +0 -52
  716. data/spec/models/sms_tracking_options_spec.rb +0 -40
  717. data/spec/models/static_schedule_options_spec.rb +0 -46
  718. data/spec/models/sto_schedule_options_spec.rb +0 -34
  719. data/spec/models/subscription_channels_spec.rb +0 -48
  720. data/spec/models/subscription_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -46
  721. data/spec/models/subscription_create_job_create_query_as_sub_resource_spec.rb +0 -44
  722. data/spec/models/subscription_create_job_create_query_spec.rb +0 -34
  723. data/spec/models/subscription_spec.rb +0 -40
  724. data/spec/models/suppression_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  725. data/spec/models/suppression_create_job_create_query_as_sub_resource_spec.rb +0 -44
  726. data/spec/models/suppression_create_job_create_query_spec.rb +0 -34
  727. data/spec/models/suppression_spec.rb +0 -34
  728. data/spec/models/tag_create_query_as_sub_resource_attributes_spec.rb +0 -40
  729. data/spec/models/tag_create_query_as_sub_resource_spec.rb +0 -44
  730. data/spec/models/tag_create_query_spec.rb +0 -34
  731. data/spec/models/tag_group_create_query_as_sub_resource_attributes_spec.rb +0 -40
  732. data/spec/models/tag_group_create_query_as_sub_resource_spec.rb +0 -44
  733. data/spec/models/tag_group_create_query_spec.rb +0 -34
  734. data/spec/models/tag_group_update_query_as_sub_resource_attributes_spec.rb +0 -40
  735. data/spec/models/tag_group_update_query_as_sub_resource_spec.rb +0 -50
  736. data/spec/models/tag_group_update_query_spec.rb +0 -34
  737. data/spec/models/tag_segment_op_data_inner_spec.rb +0 -44
  738. data/spec/models/tag_segment_op_spec.rb +0 -34
  739. data/spec/models/tag_update_query_as_sub_resource_attributes_spec.rb +0 -34
  740. data/spec/models/tag_update_query_as_sub_resource_spec.rb +0 -50
  741. data/spec/models/tag_update_query_spec.rb +0 -34
  742. data/spec/models/template_clone_query_as_sub_resource_attributes_spec.rb +0 -46
  743. data/spec/models/template_clone_query_as_sub_resource_spec.rb +0 -50
  744. data/spec/models/template_clone_query_spec.rb +0 -34
  745. data/spec/models/template_create_query_as_sub_resource_attributes_spec.rb +0 -58
  746. data/spec/models/template_create_query_as_sub_resource_spec.rb +0 -44
  747. data/spec/models/template_create_query_spec.rb +0 -34
  748. data/spec/models/template_render_query_as_sub_resource_attributes_spec.rb +0 -46
  749. data/spec/models/template_render_query_as_sub_resource_spec.rb +0 -44
  750. data/spec/models/template_render_query_spec.rb +0 -34
  751. data/spec/models/template_update_query_as_sub_resource_attributes_spec.rb +0 -52
  752. data/spec/models/template_update_query_as_sub_resource_spec.rb +0 -50
  753. data/spec/models/template_update_query_spec.rb +0 -34
  754. data/spec/models/throttled_schedule_options_spec.rb +0 -40
  755. data/spec/models/tracking_options_sub_object_spec.rb +0 -52
  756. data/spec/models/unsubscription_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -46
  757. data/spec/models/unsubscription_create_job_create_query_as_sub_resource_spec.rb +0 -44
  758. data/spec/models/unsubscription_create_job_create_query_spec.rb +0 -34
  759. data/spec/models/unsuppression_create_job_create_query_as_sub_resource_attributes_spec.rb +0 -34
  760. data/spec/models/unsuppression_create_job_create_query_as_sub_resource_spec.rb +0 -44
  761. data/spec/models/unsuppression_create_job_create_query_spec.rb +0 -34
  762. data/spec/models/utm_param_info_spec.rb +0 -40
  763. data/spec/models/utm_params_sub_object_spec.rb +0 -40
  764. data/spec/models/v2_template_render_query_as_sub_resource_spec.rb +0 -34
  765. data/spec/spec_helper.rb +0 -111
data/docs/ProfilesApi.md DELETED
@@ -1,825 +0,0 @@
1
- # KlaviyoAPI::ProfilesApi
2
-
3
- All URIs are relative to *https://a.klaviyo.com*
4
-
5
- | Method | HTTP request | Description |
6
- | ------ | ------------ | ----------- |
7
- | [**create_profile**](ProfilesApi.md#create_profile) | **POST** /api/profiles/ | Create Profile |
8
- | [**get_profile**](ProfilesApi.md#get_profile) | **GET** /api/profiles/{id}/ | Get Profile |
9
- | [**get_profile_lists**](ProfilesApi.md#get_profile_lists) | **GET** /api/profiles/{profile_id}/lists/ | Get Profile Lists |
10
- | [**get_profile_relationships**](ProfilesApi.md#get_profile_relationships) | **GET** /api/profiles/{id}/relationships/{related_resource}/ | Get Profile Relationships |
11
- | [**get_profile_segments**](ProfilesApi.md#get_profile_segments) | **GET** /api/profiles/{profile_id}/segments/ | Get Profile Segments |
12
- | [**get_profiles**](ProfilesApi.md#get_profiles) | **GET** /api/profiles/ | Get Profiles |
13
- | [**subscribe_profiles**](ProfilesApi.md#subscribe_profiles) | **POST** /api/profile-subscription-bulk-create-jobs/ | Subscribe Profiles |
14
- | [**suppress_profiles**](ProfilesApi.md#suppress_profiles) | **POST** /api/profile-suppression-bulk-create-jobs/ | Suppress Profiles |
15
- | [**unsubscribe_profiles**](ProfilesApi.md#unsubscribe_profiles) | **POST** /api/profile-unsubscription-bulk-create-jobs/ | Unsubscribe Profiles |
16
- | [**unsuppress_profiles**](ProfilesApi.md#unsuppress_profiles) | **POST** /api/profile-unsuppression-bulk-create-jobs/ | Unsuppress Profiles |
17
- | [**update_profile**](ProfilesApi.md#update_profile) | **PATCH** /api/profiles/{id}/ | Update Profile |
18
-
19
-
20
- ## create_profile
21
-
22
- > Hash<String, Object> create_profile(profile_create_query)
23
-
24
- Create Profile
25
-
26
- Create a new profile. If you use a phone number as the profile identifier and SMS is not set up in the Klaviyo account, you'll need to include at least one other identifier attribute (`email` or `external_id`) in addition to the `phone_number` attribute for the API call to work.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Profiles Write`
27
-
28
- ### Examples
29
-
30
- ```ruby
31
- require 'time'
32
- require 'klaviyo-api-sdk'
33
- # setup authorization
34
- KlaviyoAPI.configure do |config|
35
- # Configure API key authorization: Klaviyo-API-Key
36
- config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
37
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
38
- # config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
39
- end
40
-
41
- api_instance = KlaviyoAPI::ProfilesApi.new
42
- profile_create_query = KlaviyoAPI::ProfileCreateQuery.new({data: KlaviyoAPI::ProfileCreateQueryAsSubResource.new({type: 'profile', attributes: KlaviyoAPI::ProfileCreateQueryAsSubResourceAttributes.new})}) # ProfileCreateQuery |
43
-
44
- begin
45
- # Create Profile
46
- result = api_instance.create_profile(profile_create_query)
47
- p result
48
- rescue KlaviyoAPI::ApiError => e
49
- puts "Error when calling ProfilesApi->create_profile: #{e}"
50
- end
51
- ```
52
-
53
- #### Using the create_profile_with_http_info variant
54
-
55
- This returns an Array which contains the response data, status code and headers.
56
-
57
- > <Array(Hash&lt;String, Object&gt;, Integer, Hash)> create_profile_with_http_info(profile_create_query)
58
-
59
- ```ruby
60
- begin
61
- # Create Profile
62
- data, status_code, headers = api_instance.create_profile_with_http_info(profile_create_query)
63
- p status_code # => 2xx
64
- p headers # => { ... }
65
- p data # => Hash&lt;String, Object&gt;
66
- rescue KlaviyoAPI::ApiError => e
67
- puts "Error when calling ProfilesApi->create_profile_with_http_info: #{e}"
68
- end
69
- ```
70
-
71
- ### Parameters
72
-
73
- | Name | Type | Description | Notes |
74
- | ---- | ---- | ----------- | ----- |
75
- | **profile_create_query** | [**ProfileCreateQuery**](ProfileCreateQuery.md) | | |
76
-
77
- ### Return type
78
-
79
- **Hash&lt;String, Object&gt;**
80
-
81
- ### Authorization
82
-
83
- [Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
84
-
85
- ### HTTP request headers
86
-
87
- - **Content-Type**: application/json
88
- - **Accept**: application/json
89
-
90
-
91
- ## get_profile
92
-
93
- > Hash&lt;String, Object&gt; get_profile(id, opts)
94
-
95
- Get Profile
96
-
97
- Get the profile with the given profile ID. Include parameters can be provided to get the following related resource data: `lists` memberships, `segments` memberships\"<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Profiles Read`
98
-
99
- ### Examples
100
-
101
- ```ruby
102
- require 'time'
103
- require 'klaviyo-api-sdk'
104
- # setup authorization
105
- KlaviyoAPI.configure do |config|
106
- # Configure API key authorization: Klaviyo-API-Key
107
- config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
108
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
109
- # config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
110
- end
111
-
112
- api_instance = KlaviyoAPI::ProfilesApi.new
113
- id = 'id_example' # String |
114
- opts = {
115
- fields_list: ['name'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
116
- fields_profile: ['email'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
117
- fields_segment: ['name'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
118
- include: ['lists'] # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships
119
- }
120
-
121
- begin
122
- # Get Profile
123
- result = api_instance.get_profile(id, opts)
124
- p result
125
- rescue KlaviyoAPI::ApiError => e
126
- puts "Error when calling ProfilesApi->get_profile: #{e}"
127
- end
128
- ```
129
-
130
- #### Using the get_profile_with_http_info variant
131
-
132
- This returns an Array which contains the response data, status code and headers.
133
-
134
- > <Array(Hash&lt;String, Object&gt;, Integer, Hash)> get_profile_with_http_info(id, opts)
135
-
136
- ```ruby
137
- begin
138
- # Get Profile
139
- data, status_code, headers = api_instance.get_profile_with_http_info(id, opts)
140
- p status_code # => 2xx
141
- p headers # => { ... }
142
- p data # => Hash&lt;String, Object&gt;
143
- rescue KlaviyoAPI::ApiError => e
144
- puts "Error when calling ProfilesApi->get_profile_with_http_info: #{e}"
145
- end
146
- ```
147
-
148
- ### Parameters
149
-
150
- | Name | Type | Description | Notes |
151
- | ---- | ---- | ----------- | ----- |
152
- | **id** | **String** | | |
153
- | **fields_list** | [**Array&lt;String&gt;**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
154
- | **fields_profile** | [**Array&lt;String&gt;**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
155
- | **fields_segment** | [**Array&lt;String&gt;**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
156
- | **include** | [**Array&lt;String&gt;**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#relationships | [optional] |
157
-
158
- ### Return type
159
-
160
- **Hash&lt;String, Object&gt;**
161
-
162
- ### Authorization
163
-
164
- [Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
165
-
166
- ### HTTP request headers
167
-
168
- - **Content-Type**: Not defined
169
- - **Accept**: application/json
170
-
171
-
172
- ## get_profile_lists
173
-
174
- > Hash&lt;String, Object&gt; get_profile_lists(profile_id, opts)
175
-
176
- Get Profile Lists
177
-
178
- Get list memberships for a profile with the given profile ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `List Read` `Profiles Read`
179
-
180
- ### Examples
181
-
182
- ```ruby
183
- require 'time'
184
- require 'klaviyo-api-sdk'
185
- # setup authorization
186
- KlaviyoAPI.configure do |config|
187
- # Configure API key authorization: Klaviyo-API-Key
188
- config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
189
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
190
- # config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
191
- end
192
-
193
- api_instance = KlaviyoAPI::ProfilesApi.new
194
- profile_id = 'profile_id_example' # String |
195
- opts = {
196
- fields_list: ['name'] # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
197
- }
198
-
199
- begin
200
- # Get Profile Lists
201
- result = api_instance.get_profile_lists(profile_id, opts)
202
- p result
203
- rescue KlaviyoAPI::ApiError => e
204
- puts "Error when calling ProfilesApi->get_profile_lists: #{e}"
205
- end
206
- ```
207
-
208
- #### Using the get_profile_lists_with_http_info variant
209
-
210
- This returns an Array which contains the response data, status code and headers.
211
-
212
- > <Array(Hash&lt;String, Object&gt;, Integer, Hash)> get_profile_lists_with_http_info(profile_id, opts)
213
-
214
- ```ruby
215
- begin
216
- # Get Profile Lists
217
- data, status_code, headers = api_instance.get_profile_lists_with_http_info(profile_id, opts)
218
- p status_code # => 2xx
219
- p headers # => { ... }
220
- p data # => Hash&lt;String, Object&gt;
221
- rescue KlaviyoAPI::ApiError => e
222
- puts "Error when calling ProfilesApi->get_profile_lists_with_http_info: #{e}"
223
- end
224
- ```
225
-
226
- ### Parameters
227
-
228
- | Name | Type | Description | Notes |
229
- | ---- | ---- | ----------- | ----- |
230
- | **profile_id** | **String** | | |
231
- | **fields_list** | [**Array&lt;String&gt;**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
232
-
233
- ### Return type
234
-
235
- **Hash&lt;String, Object&gt;**
236
-
237
- ### Authorization
238
-
239
- [Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
240
-
241
- ### HTTP request headers
242
-
243
- - **Content-Type**: Not defined
244
- - **Accept**: application/json
245
-
246
-
247
- ## get_profile_relationships
248
-
249
- > Hash&lt;String, Object&gt; get_profile_relationships(id, related_resource)
250
-
251
- Get Profile Relationships
252
-
253
- Get list membership or segment membership relationships for a profile with the given profile ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Lists Read` `Profiles Read` `Segments Read`
254
-
255
- ### Examples
256
-
257
- ```ruby
258
- require 'time'
259
- require 'klaviyo-api-sdk'
260
- # setup authorization
261
- KlaviyoAPI.configure do |config|
262
- # Configure API key authorization: Klaviyo-API-Key
263
- config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
264
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
265
- # config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
266
- end
267
-
268
- api_instance = KlaviyoAPI::ProfilesApi.new
269
- id = 'id_example' # String |
270
- related_resource = 'lists' # String |
271
-
272
- begin
273
- # Get Profile Relationships
274
- result = api_instance.get_profile_relationships(id, related_resource)
275
- p result
276
- rescue KlaviyoAPI::ApiError => e
277
- puts "Error when calling ProfilesApi->get_profile_relationships: #{e}"
278
- end
279
- ```
280
-
281
- #### Using the get_profile_relationships_with_http_info variant
282
-
283
- This returns an Array which contains the response data, status code and headers.
284
-
285
- > <Array(Hash&lt;String, Object&gt;, Integer, Hash)> get_profile_relationships_with_http_info(id, related_resource)
286
-
287
- ```ruby
288
- begin
289
- # Get Profile Relationships
290
- data, status_code, headers = api_instance.get_profile_relationships_with_http_info(id, related_resource)
291
- p status_code # => 2xx
292
- p headers # => { ... }
293
- p data # => Hash&lt;String, Object&gt;
294
- rescue KlaviyoAPI::ApiError => e
295
- puts "Error when calling ProfilesApi->get_profile_relationships_with_http_info: #{e}"
296
- end
297
- ```
298
-
299
- ### Parameters
300
-
301
- | Name | Type | Description | Notes |
302
- | ---- | ---- | ----------- | ----- |
303
- | **id** | **String** | | |
304
- | **related_resource** | **String** | | |
305
-
306
- ### Return type
307
-
308
- **Hash&lt;String, Object&gt;**
309
-
310
- ### Authorization
311
-
312
- [Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
313
-
314
- ### HTTP request headers
315
-
316
- - **Content-Type**: Not defined
317
- - **Accept**: application/json
318
-
319
-
320
- ## get_profile_segments
321
-
322
- > Hash&lt;String, Object&gt; get_profile_segments(profile_id, opts)
323
-
324
- Get Profile Segments
325
-
326
- Get segment memberships 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`
327
-
328
- ### Examples
329
-
330
- ```ruby
331
- require 'time'
332
- require 'klaviyo-api-sdk'
333
- # setup authorization
334
- KlaviyoAPI.configure do |config|
335
- # Configure API key authorization: Klaviyo-API-Key
336
- config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
337
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
338
- # config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
339
- end
340
-
341
- api_instance = KlaviyoAPI::ProfilesApi.new
342
- profile_id = 'profile_id_example' # String |
343
- opts = {
344
- fields_segment: ['name'] # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
345
- }
346
-
347
- begin
348
- # Get Profile Segments
349
- result = api_instance.get_profile_segments(profile_id, opts)
350
- p result
351
- rescue KlaviyoAPI::ApiError => e
352
- puts "Error when calling ProfilesApi->get_profile_segments: #{e}"
353
- end
354
- ```
355
-
356
- #### Using the get_profile_segments_with_http_info variant
357
-
358
- This returns an Array which contains the response data, status code and headers.
359
-
360
- > <Array(Hash&lt;String, Object&gt;, Integer, Hash)> get_profile_segments_with_http_info(profile_id, opts)
361
-
362
- ```ruby
363
- begin
364
- # Get Profile Segments
365
- data, status_code, headers = api_instance.get_profile_segments_with_http_info(profile_id, opts)
366
- p status_code # => 2xx
367
- p headers # => { ... }
368
- p data # => Hash&lt;String, Object&gt;
369
- rescue KlaviyoAPI::ApiError => e
370
- puts "Error when calling ProfilesApi->get_profile_segments_with_http_info: #{e}"
371
- end
372
- ```
373
-
374
- ### Parameters
375
-
376
- | Name | Type | Description | Notes |
377
- | ---- | ---- | ----------- | ----- |
378
- | **profile_id** | **String** | | |
379
- | **fields_segment** | [**Array&lt;String&gt;**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
380
-
381
- ### Return type
382
-
383
- **Hash&lt;String, Object&gt;**
384
-
385
- ### Authorization
386
-
387
- [Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
388
-
389
- ### HTTP request headers
390
-
391
- - **Content-Type**: Not defined
392
- - **Accept**: application/json
393
-
394
-
395
- ## get_profiles
396
-
397
- > Hash&lt;String, Object&gt; get_profiles(opts)
398
-
399
- Get Profiles
400
-
401
- Get all profiles in an account. Profiles can be sorted by the following fields in ascending and descending order: `id`, `created`, `email` You can adjust the number of results per page via the `page[size]` query parameter, e.g. `?page[size]=25`. **Default**: 20. **Max**: 100.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Profiles Read`
402
-
403
- ### Examples
404
-
405
- ```ruby
406
- require 'time'
407
- require 'klaviyo-api-sdk'
408
- # setup authorization
409
- KlaviyoAPI.configure do |config|
410
- # Configure API key authorization: Klaviyo-API-Key
411
- config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
412
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
413
- # config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
414
- end
415
-
416
- api_instance = KlaviyoAPI::ProfilesApi.new
417
- opts = {
418
- fields_profile: ['email'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
419
- filter: 'filter_example', # String | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`id`: `any`, `equals`<br>`email`: `any`, `equals`<br>`phone_number`: `any`, `equals`<br>`external_id`: `any`, `equals`<br>`anonymous_id`: `any`, `equals`<br>`_kx`: `equals`<br>`created`: `greater-than`, `less-than`
420
- page_cursor: 'page_cursor_example', # String | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
421
- sort: 'created' # String | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
422
- }
423
-
424
- begin
425
- # Get Profiles
426
- result = api_instance.get_profiles(opts)
427
- p result
428
- rescue KlaviyoAPI::ApiError => e
429
- puts "Error when calling ProfilesApi->get_profiles: #{e}"
430
- end
431
- ```
432
-
433
- #### Using the get_profiles_with_http_info variant
434
-
435
- This returns an Array which contains the response data, status code and headers.
436
-
437
- > <Array(Hash&lt;String, Object&gt;, Integer, Hash)> get_profiles_with_http_info(opts)
438
-
439
- ```ruby
440
- begin
441
- # Get Profiles
442
- data, status_code, headers = api_instance.get_profiles_with_http_info(opts)
443
- p status_code # => 2xx
444
- p headers # => { ... }
445
- p data # => Hash&lt;String, Object&gt;
446
- rescue KlaviyoAPI::ApiError => e
447
- puts "Error when calling ProfilesApi->get_profiles_with_http_info: #{e}"
448
- end
449
- ```
450
-
451
- ### Parameters
452
-
453
- | Name | Type | Description | Notes |
454
- | ---- | ---- | ----------- | ----- |
455
- | **fields_profile** | [**Array&lt;String&gt;**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
456
- | **filter** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#filtering&lt;br&gt;Allowed field(s)/operator(s):&lt;br&gt;&#x60;id&#x60;: &#x60;any&#x60;, &#x60;equals&#x60;&lt;br&gt;&#x60;email&#x60;: &#x60;any&#x60;, &#x60;equals&#x60;&lt;br&gt;&#x60;phone_number&#x60;: &#x60;any&#x60;, &#x60;equals&#x60;&lt;br&gt;&#x60;external_id&#x60;: &#x60;any&#x60;, &#x60;equals&#x60;&lt;br&gt;&#x60;anonymous_id&#x60;: &#x60;any&#x60;, &#x60;equals&#x60;&lt;br&gt;&#x60;_kx&#x60;: &#x60;equals&#x60;&lt;br&gt;&#x60;created&#x60;: &#x60;greater-than&#x60;, &#x60;less-than&#x60; | [optional] |
457
- | **page_cursor** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination | [optional] |
458
- | **sort** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting | [optional] |
459
-
460
- ### Return type
461
-
462
- **Hash&lt;String, Object&gt;**
463
-
464
- ### Authorization
465
-
466
- [Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
467
-
468
- ### HTTP request headers
469
-
470
- - **Content-Type**: Not defined
471
- - **Accept**: application/json
472
-
473
-
474
- ## subscribe_profiles
475
-
476
- > subscribe_profiles(subscription_create_job_create_query)
477
-
478
- Subscribe Profiles
479
-
480
- Subscribe one or more profiles to email marketing, SMS marketing, or both. If the 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. 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). Maximum number of profile can be submitted for subscription: 100<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `List Write` `Profiles Write` `Subscriptions Write`
481
-
482
- ### Examples
483
-
484
- ```ruby
485
- require 'time'
486
- require 'klaviyo-api-sdk'
487
- # setup authorization
488
- KlaviyoAPI.configure do |config|
489
- # Configure API key authorization: Klaviyo-API-Key
490
- config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
491
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
492
- # config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
493
- end
494
-
495
- api_instance = KlaviyoAPI::ProfilesApi.new
496
- subscription_create_job_create_query = KlaviyoAPI::SubscriptionCreateJobCreateQuery.new({data: KlaviyoAPI::SubscriptionCreateJobCreateQueryAsSubResource.new({type: 'profile-subscription-bulk-create-job', attributes: KlaviyoAPI::SubscriptionCreateJobCreateQueryAsSubResourceAttributes.new({list_id: 'Y6nRLr', subscriptions: [KlaviyoAPI::Subscription.new]})})}) # 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.
497
-
498
- begin
499
- # Subscribe Profiles
500
- api_instance.subscribe_profiles(subscription_create_job_create_query)
501
- rescue KlaviyoAPI::ApiError => e
502
- puts "Error when calling ProfilesApi->subscribe_profiles: #{e}"
503
- end
504
- ```
505
-
506
- #### Using the subscribe_profiles_with_http_info variant
507
-
508
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
509
-
510
- > <Array(nil, Integer, Hash)> subscribe_profiles_with_http_info(subscription_create_job_create_query)
511
-
512
- ```ruby
513
- begin
514
- # Subscribe Profiles
515
- data, status_code, headers = api_instance.subscribe_profiles_with_http_info(subscription_create_job_create_query)
516
- p status_code # => 2xx
517
- p headers # => { ... }
518
- p data # => nil
519
- rescue KlaviyoAPI::ApiError => e
520
- puts "Error when calling ProfilesApi->subscribe_profiles_with_http_info: #{e}"
521
- end
522
- ```
523
-
524
- ### Parameters
525
-
526
- | Name | Type | Description | Notes |
527
- | ---- | ---- | ----------- | ----- |
528
- | **subscription_create_job_create_query** | [**SubscriptionCreateJobCreateQuery**](SubscriptionCreateJobCreateQuery.md) | 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. | |
529
-
530
- ### Return type
531
-
532
- nil (empty response body)
533
-
534
- ### Authorization
535
-
536
- [Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
537
-
538
- ### HTTP request headers
539
-
540
- - **Content-Type**: application/json
541
- - **Accept**: application/json
542
-
543
-
544
- ## suppress_profiles
545
-
546
- > suppress_profiles(suppression_create_job_create_query)
547
-
548
- Suppress Profiles
549
-
550
- Manually suppress one or more profiles. Manually suppressed profiles will not receive email marketing. Not supported for SMS marketing. Maximum number of profile can be submitted for suppression: 100<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Profiles Write` `Subscriptions Write`
551
-
552
- ### Examples
553
-
554
- ```ruby
555
- require 'time'
556
- require 'klaviyo-api-sdk'
557
- # setup authorization
558
- KlaviyoAPI.configure do |config|
559
- # Configure API key authorization: Klaviyo-API-Key
560
- config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
561
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
562
- # config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
563
- end
564
-
565
- api_instance = KlaviyoAPI::ProfilesApi.new
566
- suppression_create_job_create_query = KlaviyoAPI::SuppressionCreateJobCreateQuery.new({data: KlaviyoAPI::SuppressionCreateJobCreateQueryAsSubResource.new({type: 'profile-suppression-bulk-create-job', attributes: KlaviyoAPI::SuppressionCreateJobCreateQueryAsSubResourceAttributes.new({suppressions: [KlaviyoAPI::Suppression.new({email: 'matt-kemp@klaviyo-demo.com'})]})})}) # SuppressionCreateJobCreateQuery | Suppresses one or more profiles from receiving marketing. Currently, supports email only. If a profile is not found with the given email, one will be created and immediately suppressed.
567
-
568
- begin
569
- # Suppress Profiles
570
- api_instance.suppress_profiles(suppression_create_job_create_query)
571
- rescue KlaviyoAPI::ApiError => e
572
- puts "Error when calling ProfilesApi->suppress_profiles: #{e}"
573
- end
574
- ```
575
-
576
- #### Using the suppress_profiles_with_http_info variant
577
-
578
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
579
-
580
- > <Array(nil, Integer, Hash)> suppress_profiles_with_http_info(suppression_create_job_create_query)
581
-
582
- ```ruby
583
- begin
584
- # Suppress Profiles
585
- data, status_code, headers = api_instance.suppress_profiles_with_http_info(suppression_create_job_create_query)
586
- p status_code # => 2xx
587
- p headers # => { ... }
588
- p data # => nil
589
- rescue KlaviyoAPI::ApiError => e
590
- puts "Error when calling ProfilesApi->suppress_profiles_with_http_info: #{e}"
591
- end
592
- ```
593
-
594
- ### Parameters
595
-
596
- | Name | Type | Description | Notes |
597
- | ---- | ---- | ----------- | ----- |
598
- | **suppression_create_job_create_query** | [**SuppressionCreateJobCreateQuery**](SuppressionCreateJobCreateQuery.md) | Suppresses one or more profiles from receiving marketing. Currently, supports email only. If a profile is not found with the given email, one will be created and immediately suppressed. | |
599
-
600
- ### Return type
601
-
602
- nil (empty response body)
603
-
604
- ### Authorization
605
-
606
- [Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
607
-
608
- ### HTTP request headers
609
-
610
- - **Content-Type**: application/json
611
- - **Accept**: application/json
612
-
613
-
614
- ## unsubscribe_profiles
615
-
616
- > unsubscribe_profiles(unsubscription_create_job_create_query)
617
-
618
- Unsubscribe Profiles
619
-
620
- Unsubscribe one or more profiles to email marketing, SMS marketing, or both. To remove someone from a list without changing their subscription status, use [Remove Profile from List](https://developers.klaviyo.com/en/reference/delete_list_relationships). Maximum number of profile can be submitted for unsubscription: 100<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `List Write` `Profiles Write` `Subscriptions Write`
621
-
622
- ### Examples
623
-
624
- ```ruby
625
- require 'time'
626
- require 'klaviyo-api-sdk'
627
- # setup authorization
628
- KlaviyoAPI.configure do |config|
629
- # Configure API key authorization: Klaviyo-API-Key
630
- config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
631
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
632
- # config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
633
- end
634
-
635
- api_instance = KlaviyoAPI::ProfilesApi.new
636
- unsubscription_create_job_create_query = KlaviyoAPI::UnsubscriptionCreateJobCreateQuery.new({data: KlaviyoAPI::UnsubscriptionCreateJobCreateQueryAsSubResource.new({type: 'profile-unsubscription-bulk-create-job', attributes: KlaviyoAPI::UnsubscriptionCreateJobCreateQueryAsSubResourceAttributes.new})}) # UnsubscriptionCreateJobCreateQuery | Unsubscribes one or more profiles from marketing. Currently, supports email and SMS only. All profiles will be removed from the provided list. Either email or phone number is required. If a profile cannot be found matching the given identifier(s), a new profile will be created and then unsubscribed.
637
-
638
- begin
639
- # Unsubscribe Profiles
640
- api_instance.unsubscribe_profiles(unsubscription_create_job_create_query)
641
- rescue KlaviyoAPI::ApiError => e
642
- puts "Error when calling ProfilesApi->unsubscribe_profiles: #{e}"
643
- end
644
- ```
645
-
646
- #### Using the unsubscribe_profiles_with_http_info variant
647
-
648
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
649
-
650
- > <Array(nil, Integer, Hash)> unsubscribe_profiles_with_http_info(unsubscription_create_job_create_query)
651
-
652
- ```ruby
653
- begin
654
- # Unsubscribe Profiles
655
- data, status_code, headers = api_instance.unsubscribe_profiles_with_http_info(unsubscription_create_job_create_query)
656
- p status_code # => 2xx
657
- p headers # => { ... }
658
- p data # => nil
659
- rescue KlaviyoAPI::ApiError => e
660
- puts "Error when calling ProfilesApi->unsubscribe_profiles_with_http_info: #{e}"
661
- end
662
- ```
663
-
664
- ### Parameters
665
-
666
- | Name | Type | Description | Notes |
667
- | ---- | ---- | ----------- | ----- |
668
- | **unsubscription_create_job_create_query** | [**UnsubscriptionCreateJobCreateQuery**](UnsubscriptionCreateJobCreateQuery.md) | Unsubscribes one or more profiles from marketing. Currently, supports email and SMS only. All profiles will be removed from the provided list. Either email or phone number is required. If a profile cannot be found matching the given identifier(s), a new profile will be created and then unsubscribed. | |
669
-
670
- ### Return type
671
-
672
- nil (empty response body)
673
-
674
- ### Authorization
675
-
676
- [Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
677
-
678
- ### HTTP request headers
679
-
680
- - **Content-Type**: application/json
681
- - **Accept**: application/json
682
-
683
-
684
- ## unsuppress_profiles
685
-
686
- > unsuppress_profiles(unsuppression_create_job_create_query)
687
-
688
- Unsuppress Profiles
689
-
690
- Unsuppress one or more profiles. Unsuppressed profiles will receive email marketing. Not supported for SMS marketing. Profiles suppressed due to a hard bounced email will not be unsuppressed. Maximum number of profile can be submitted for unsuppression: 100<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Subscriptions Write`
691
-
692
- ### Examples
693
-
694
- ```ruby
695
- require 'time'
696
- require 'klaviyo-api-sdk'
697
- # setup authorization
698
- KlaviyoAPI.configure do |config|
699
- # Configure API key authorization: Klaviyo-API-Key
700
- config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
701
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
702
- # config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
703
- end
704
-
705
- api_instance = KlaviyoAPI::ProfilesApi.new
706
- unsuppression_create_job_create_query = KlaviyoAPI::UnsuppressionCreateJobCreateQuery.new({data: KlaviyoAPI::UnsuppressionCreateJobCreateQueryAsSubResource.new({type: 'profile-unsuppression-bulk-create-job', attributes: KlaviyoAPI::UnsuppressionCreateJobCreateQueryAsSubResourceAttributes.new({suppressions: [KlaviyoAPI::Suppression.new({email: 'matt-kemp@klaviyo-demo.com'})]})})}) # UnsuppressionCreateJobCreateQuery | Unsuppresses one or more profiles from receiving marketing. Currently, supports email only. If a profile is not found with the given email, no action will be taken.
707
-
708
- begin
709
- # Unsuppress Profiles
710
- api_instance.unsuppress_profiles(unsuppression_create_job_create_query)
711
- rescue KlaviyoAPI::ApiError => e
712
- puts "Error when calling ProfilesApi->unsuppress_profiles: #{e}"
713
- end
714
- ```
715
-
716
- #### Using the unsuppress_profiles_with_http_info variant
717
-
718
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
719
-
720
- > <Array(nil, Integer, Hash)> unsuppress_profiles_with_http_info(unsuppression_create_job_create_query)
721
-
722
- ```ruby
723
- begin
724
- # Unsuppress Profiles
725
- data, status_code, headers = api_instance.unsuppress_profiles_with_http_info(unsuppression_create_job_create_query)
726
- p status_code # => 2xx
727
- p headers # => { ... }
728
- p data # => nil
729
- rescue KlaviyoAPI::ApiError => e
730
- puts "Error when calling ProfilesApi->unsuppress_profiles_with_http_info: #{e}"
731
- end
732
- ```
733
-
734
- ### Parameters
735
-
736
- | Name | Type | Description | Notes |
737
- | ---- | ---- | ----------- | ----- |
738
- | **unsuppression_create_job_create_query** | [**UnsuppressionCreateJobCreateQuery**](UnsuppressionCreateJobCreateQuery.md) | Unsuppresses one or more profiles from receiving marketing. Currently, supports email only. If a profile is not found with the given email, no action will be taken. | |
739
-
740
- ### Return type
741
-
742
- nil (empty response body)
743
-
744
- ### Authorization
745
-
746
- [Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
747
-
748
- ### HTTP request headers
749
-
750
- - **Content-Type**: application/json
751
- - **Accept**: application/json
752
-
753
-
754
- ## update_profile
755
-
756
- > Hash&lt;String, Object&gt; update_profile(id, profile_partial_update_query)
757
-
758
- Update Profile
759
-
760
- Update the profile with the given profile ID. If you use a phone number as the profile identifier and SMS is not set up in the Klaviyo account, you'll need to include at least one other identifier attribute (`email` or `external_id`) in addition to the `phone_number` attribute for the API call to work.<br><br>*Rate limits*:<br>Burst: `75/s`<br>Steady: `700/m` **Scopes:** `Profiles Write`
761
-
762
- ### Examples
763
-
764
- ```ruby
765
- require 'time'
766
- require 'klaviyo-api-sdk'
767
- # setup authorization
768
- KlaviyoAPI.configure do |config|
769
- # Configure API key authorization: Klaviyo-API-Key
770
- config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
771
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
772
- # config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
773
- end
774
-
775
- api_instance = KlaviyoAPI::ProfilesApi.new
776
- id = '01GDDKASAP8TKDDA2GRZDSVP4H' # String | Primary key that uniquely identifies this profile. Generated by Klaviyo.
777
- profile_partial_update_query = KlaviyoAPI::ProfilePartialUpdateQuery.new({data: KlaviyoAPI::ProfilePartialUpdateQueryAsSubResource.new({type: 'profile', id: '01GDDKASAP8TKDDA2GRZDSVP4H', attributes: KlaviyoAPI::ProfileCreateQueryAsSubResourceAttributes.new})}) # ProfilePartialUpdateQuery |
778
-
779
- begin
780
- # Update Profile
781
- result = api_instance.update_profile(id, profile_partial_update_query)
782
- p result
783
- rescue KlaviyoAPI::ApiError => e
784
- puts "Error when calling ProfilesApi->update_profile: #{e}"
785
- end
786
- ```
787
-
788
- #### Using the update_profile_with_http_info variant
789
-
790
- This returns an Array which contains the response data, status code and headers.
791
-
792
- > <Array(Hash&lt;String, Object&gt;, Integer, Hash)> update_profile_with_http_info(id, profile_partial_update_query)
793
-
794
- ```ruby
795
- begin
796
- # Update Profile
797
- data, status_code, headers = api_instance.update_profile_with_http_info(id, profile_partial_update_query)
798
- p status_code # => 2xx
799
- p headers # => { ... }
800
- p data # => Hash&lt;String, Object&gt;
801
- rescue KlaviyoAPI::ApiError => e
802
- puts "Error when calling ProfilesApi->update_profile_with_http_info: #{e}"
803
- end
804
- ```
805
-
806
- ### Parameters
807
-
808
- | Name | Type | Description | Notes |
809
- | ---- | ---- | ----------- | ----- |
810
- | **id** | **String** | Primary key that uniquely identifies this profile. Generated by Klaviyo. | |
811
- | **profile_partial_update_query** | [**ProfilePartialUpdateQuery**](ProfilePartialUpdateQuery.md) | | |
812
-
813
- ### Return type
814
-
815
- **Hash&lt;String, Object&gt;**
816
-
817
- ### Authorization
818
-
819
- [Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
820
-
821
- ### HTTP request headers
822
-
823
- - **Content-Type**: application/json
824
- - **Accept**: application/json
825
-