klaviyo-api-sdk 1.0.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -0
- data/README.md +513 -119
- data/docs/AudiencesSubObject.md +20 -0
- data/docs/CampaignCloneQuery.md +18 -0
- data/docs/CampaignCloneQueryAsSubResource.md +20 -0
- data/docs/CampaignCloneQueryAsSubResourceAttributes.md +20 -0
- data/docs/CampaignCreateQuery.md +18 -0
- data/docs/CampaignCreateQueryAsSubResource.md +20 -0
- data/docs/CampaignCreateQueryAsSubResourceAttributes.md +28 -0
- data/docs/CampaignMessageAssignTemplateQuery.md +18 -0
- data/docs/CampaignMessageAssignTemplateQueryAsSubResource.md +20 -0
- data/docs/CampaignMessageAssignTemplateQueryAsSubResourceAttributes.md +20 -0
- data/docs/CampaignMessagePartialUpdateQuery.md +18 -0
- data/docs/CampaignMessagePartialUpdateQueryAsSubResource.md +22 -0
- data/docs/CampaignMessagePartialUpdateQueryAsSubResourceAttributes.md +20 -0
- data/docs/CampaignPartialUpdateQuery.md +18 -0
- data/docs/CampaignPartialUpdateQueryAsSubResource.md +22 -0
- data/docs/CampaignPartialUpdateQueryAsSubResourceAttributes.md +26 -0
- data/docs/CampaignRecipientEstimationJobCreateQuery.md +18 -0
- data/docs/CampaignRecipientEstimationJobCreateQueryAsSubResource.md +20 -0
- data/docs/CampaignRecipientEstimationJobCreateQueryAsSubResourceAttributes.md +18 -0
- data/docs/CampaignSendJobCreateQuery.md +18 -0
- data/docs/CampaignSendJobCreateQueryAsSubResource.md +20 -0
- data/docs/CampaignSendJobCreateQueryAsSubResourceAttributes.md +18 -0
- data/docs/CampaignSendJobPartialUpdateQuery.md +18 -0
- data/docs/CampaignSendJobPartialUpdateQueryAsSubResource.md +22 -0
- data/docs/CampaignSendJobPartialUpdateQueryAsSubResourceAttributes.md +18 -0
- data/docs/CampaignTagOp.md +18 -0
- data/docs/{ListDeleteQueryAsSubResource.md → CampaignTagOpDataInner.md} +2 -2
- data/docs/CampaignsApi.md +1277 -0
- data/docs/CatalogCategoryCreateJobCreateQueryAsSubResourceAttributes.md +1 -1
- data/docs/CatalogCategoryCreateQueryAsSubResourceAttributes.md +7 -7
- data/docs/CatalogCategoryDeleteJobCreateQueryAsSubResourceAttributes.md +1 -1
- data/docs/CatalogCategoryDeleteQueryAsSubResource.md +2 -2
- data/docs/CatalogCategoryUpdateJobCreateQueryAsSubResourceAttributes.md +1 -1
- data/docs/CatalogCategoryUpdateQueryAsSubResource.md +2 -2
- data/docs/CatalogCategoryUpdateQueryAsSubResourceAttributes.md +2 -2
- data/docs/CatalogItemCreateJobCreateQueryAsSubResourceAttributes.md +1 -1
- data/docs/CatalogItemCreateQueryAsSubResourceAttributes.md +23 -21
- data/docs/CatalogItemDeleteJobCreateQueryAsSubResourceAttributes.md +1 -1
- data/docs/CatalogItemDeleteQueryAsSubResource.md +2 -2
- data/docs/CatalogItemUpdateJobCreateQueryAsSubResourceAttributes.md +1 -1
- data/docs/CatalogItemUpdateQueryAsSubResource.md +2 -2
- data/docs/CatalogItemUpdateQueryAsSubResourceAttributes.md +18 -16
- data/docs/CatalogJobErrorPayload.md +8 -8
- data/docs/CatalogVariantCreateJobCreateQueryAsSubResourceAttributes.md +1 -1
- data/docs/CatalogVariantCreateQueryAsSubResourceAttributes.md +29 -29
- data/docs/CatalogVariantDeleteJobCreateQueryAsSubResourceAttributes.md +1 -1
- data/docs/CatalogVariantDeleteQueryAsSubResource.md +2 -2
- data/docs/CatalogVariantUpdateJobCreateQueryAsSubResourceAttributes.md +1 -1
- data/docs/CatalogVariantUpdateQueryAsSubResource.md +2 -2
- data/docs/CatalogVariantUpdateQueryAsSubResourceAttributes.md +22 -22
- data/docs/CatalogsApi.md +256 -256
- data/docs/ClientApi.md +11 -11
- data/docs/ContentSubObject.md +28 -0
- data/docs/DataPrivacyApi.md +78 -0
- data/docs/DataPrivacyCreateDeletionJobQuery.md +18 -0
- data/docs/DataPrivacyCreateDeletionJobQueryAsSubResource.md +20 -0
- data/docs/DataPrivacyCreateDeletionJobQueryAsSubResourceAttributes.md +22 -0
- data/docs/ErrorSource.md +2 -2
- data/docs/EventCreateQueryAsSubResourceAttributes.md +8 -8
- data/docs/EventsApi.md +36 -36
- data/docs/FlowsApi.md +147 -69
- data/docs/GetCampaigns4XXResponse.md +18 -0
- data/docs/GetCampaigns4XXResponseErrorsInner.md +26 -0
- data/docs/GetCampaigns4XXResponseErrorsInnerSource.md +20 -0
- data/docs/IncludedCategories.md +2 -2
- data/docs/IncludedCategoriesAttributes.md +5 -5
- data/docs/IncludedItems.md +2 -2
- data/docs/IncludedItemsAttributes.md +22 -20
- data/docs/IncludedLists.md +2 -2
- data/docs/IncludedListsAttributes.md +4 -4
- data/docs/IncludedMetrics.md +1 -1
- data/docs/IncludedMetricsAttributes.md +4 -4
- data/docs/IncludedProfiles.md +2 -2
- data/docs/IncludedProfilesAttributes.md +21 -21
- data/docs/IncludedSegments.md +1 -1
- data/docs/IncludedSegmentsAttributes.md +22 -0
- data/docs/{IncludedProfile.md → IncludedTags.md} +5 -5
- data/docs/IncludedVariants.md +2 -2
- data/docs/IncludedVariantsAttributes.md +28 -28
- data/docs/ListCreateQueryAsSubResourceAttributes.md +2 -2
- data/docs/ListPartialUpdateQueryAsSubResource.md +2 -2
- data/docs/ListsApi.md +111 -35
- data/docs/MetricAggregateQueryAsSubResourceAttributes.md +19 -19
- data/docs/MetricAggregateRowDTO.md +2 -2
- data/docs/MetricCreateQuery.md +3 -3
- data/docs/MetricsApi.md +14 -14
- data/docs/OnsiteProfileMetaIdentifiers.md +10 -10
- data/docs/OnsiteSubscriptionCreateQueryAsSubResourceAttributes.md +10 -10
- data/docs/ProfileCreateQueryAsSubResourceAttributes.md +18 -18
- data/docs/ProfileLocation.md +15 -15
- data/docs/ProfileLocationLongitude.md +49 -0
- data/docs/ProfilePartialUpdateQueryAsSubResource.md +2 -2
- data/docs/ProfilesApi.md +36 -36
- data/docs/STOScheduleOptions.md +18 -0
- data/docs/SegmentPartialUpdateQueryAsSubResource.md +1 -1
- data/docs/SegmentPartialUpdateQueryAsSubResourceAttributes.md +18 -0
- data/docs/SegmentsApi.md +103 -24
- data/docs/SendOptionsSubObject.md +18 -0
- data/docs/SendStrategySubObject.md +24 -0
- data/docs/SendTimeSubObject.md +20 -0
- data/docs/StaticScheduleOptions.md +22 -0
- data/docs/Subscription.md +8 -4
- data/docs/SubscriptionChannels.md +20 -0
- data/docs/SubscriptionCreateJobCreateQueryAsSubResourceAttributes.md +5 -5
- data/docs/Suppression.md +2 -2
- data/docs/SuppressionCreateJobCreateQueryAsSubResourceAttributes.md +1 -1
- data/docs/TagCreateQuery.md +18 -0
- data/docs/TagCreateQueryAsSubResource.md +20 -0
- data/docs/TagCreateQueryAsSubResourceAttributes.md +20 -0
- data/docs/TagGroupCreateQuery.md +18 -0
- data/docs/TagGroupCreateQueryAsSubResource.md +20 -0
- data/docs/TagGroupCreateQueryAsSubResourceAttributes.md +20 -0
- data/docs/TagGroupUpdateQuery.md +18 -0
- data/docs/TagGroupUpdateQueryAsSubResource.md +22 -0
- data/docs/{V2TemplateRenderQueryAsSubResourceAttributes.md → TagGroupUpdateQueryAsSubResourceAttributes.md} +4 -4
- data/docs/TagSegmentOp.md +18 -0
- data/docs/{TemplateDeleteQueryAsSubResource.md → TagSegmentOpDataInner.md} +2 -2
- data/docs/TagUpdateQuery.md +18 -0
- data/docs/TagUpdateQueryAsSubResource.md +22 -0
- data/docs/TagUpdateQueryAsSubResourceAttributes.md +18 -0
- data/docs/TagsApi.md +1205 -0
- data/docs/TemplateCloneQueryAsSubResourceAttributes.md +5 -3
- data/docs/TemplateCreateQueryAsSubResourceAttributes.md +14 -8
- data/docs/TemplateRenderQuery.md +18 -0
- data/docs/TemplateRenderQueryAsSubResource.md +20 -0
- data/docs/TemplateRenderQueryAsSubResourceAttributes.md +22 -0
- data/docs/TemplateUpdateQueryAsSubResource.md +1 -1
- data/docs/TemplateUpdateQueryAsSubResourceAttributes.md +13 -7
- data/docs/TemplatesApi.md +40 -44
- data/docs/ThrottledScheduleOptions.md +20 -0
- data/docs/TrackingOptionsSubObject.md +24 -0
- data/docs/UTMParamsSubObject.md +20 -0
- data/docs/UnsubscriptionCreateJobCreateQueryAsSubResourceAttributes.md +6 -6
- data/docs/UnsuppressionCreateJobCreateQueryAsSubResource.md +1 -1
- data/docs/UnsuppressionCreateJobCreateQueryAsSubResourceAttributes.md +18 -0
- data/docs/V2TemplateRenderQueryAsSubResource.md +2 -4
- data/klaviyo-api-sdk.gemspec +3 -3
- data/lib/klaviyo-api-sdk/api/campaigns_api.rb +1275 -0
- data/lib/klaviyo-api-sdk/api/catalogs_api.rb +338 -338
- data/lib/klaviyo-api-sdk/api/client_api.rb +12 -12
- data/lib/klaviyo-api-sdk/api/data_privacy_api.rb +92 -0
- data/lib/klaviyo-api-sdk/api/events_api.rb +46 -46
- data/lib/klaviyo-api-sdk/api/flows_api.rb +167 -93
- data/lib/klaviyo-api-sdk/api/lists_api.rb +122 -50
- data/lib/klaviyo-api-sdk/api/metrics_api.rb +21 -21
- data/lib/klaviyo-api-sdk/api/profiles_api.rb +53 -53
- data/lib/klaviyo-api-sdk/api/segments_api.rb +112 -33
- data/lib/klaviyo-api-sdk/api/tags_api.rb +1216 -0
- data/lib/klaviyo-api-sdk/api/templates_api.rb +57 -69
- data/lib/klaviyo-api-sdk/api_client.rb +3 -3
- data/lib/klaviyo-api-sdk/api_error.rb +2 -2
- data/lib/klaviyo-api-sdk/configuration.rb +2 -2
- data/lib/klaviyo-api-sdk/models/audiences_sub_object.rb +234 -0
- data/lib/klaviyo-api-sdk/models/{v2_template_render_query.rb → campaign_clone_query.rb} +6 -6
- data/lib/klaviyo-api-sdk/models/campaign_clone_query_as_sub_resource.rb +272 -0
- data/lib/klaviyo-api-sdk/models/campaign_clone_query_as_sub_resource_attributes.rb +235 -0
- data/lib/klaviyo-api-sdk/models/campaign_create_query.rb +224 -0
- data/lib/klaviyo-api-sdk/models/campaign_create_query_as_sub_resource.rb +272 -0
- data/lib/klaviyo-api-sdk/models/campaign_create_query_as_sub_resource_attributes.rb +291 -0
- data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query.rb +224 -0
- data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_as_sub_resource.rb +272 -0
- data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_as_sub_resource_attributes.rb +240 -0
- data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query.rb +224 -0
- data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_as_sub_resource.rb +287 -0
- data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_as_sub_resource_attributes.rb +229 -0
- data/lib/klaviyo-api-sdk/models/campaign_partial_update_query.rb +224 -0
- data/lib/klaviyo-api-sdk/models/campaign_partial_update_query_as_sub_resource.rb +287 -0
- data/lib/klaviyo-api-sdk/models/campaign_partial_update_query_as_sub_resource_attributes.rb +256 -0
- data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query.rb +224 -0
- data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query_as_sub_resource.rb +272 -0
- data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query_as_sub_resource_attributes.rb +225 -0
- data/lib/klaviyo-api-sdk/models/campaign_send_job_create_query.rb +224 -0
- data/lib/klaviyo-api-sdk/models/campaign_send_job_create_query_as_sub_resource.rb +272 -0
- data/lib/klaviyo-api-sdk/models/campaign_send_job_create_query_as_sub_resource_attributes.rb +225 -0
- data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query.rb +224 -0
- data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_as_sub_resource.rb +287 -0
- data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_as_sub_resource_attributes.rb +225 -0
- data/lib/klaviyo-api-sdk/models/campaign_tag_op.rb +226 -0
- data/lib/klaviyo-api-sdk/models/{list_delete_query_as_sub_resource.rb → campaign_tag_op_data_inner.rb} +7 -7
- data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_as_sub_resource.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_as_sub_resource_attributes.rb +3 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_create_query_as_sub_resource.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_create_query_as_sub_resource_attributes.rb +8 -3
- data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_as_sub_resource.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_as_sub_resource_attributes.rb +3 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_delete_query_as_sub_resource.rb +3 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_item_op.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_as_sub_resource.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_as_sub_resource_attributes.rb +3 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_update_query_as_sub_resource.rb +3 -2
- data/lib/klaviyo-api-sdk/models/catalog_category_update_query_as_sub_resource_attributes.rb +3 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_category_op.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_as_sub_resource.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_as_sub_resource_attributes.rb +3 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query_as_sub_resource.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query_as_sub_resource_attributes.rb +28 -4
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query_as_sub_resource_relationships.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query_as_sub_resource_relationships_categories.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query_as_sub_resource_relationships_categories_data_inner.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_as_sub_resource.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_as_sub_resource_attributes.rb +3 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_delete_query_as_sub_resource.rb +3 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_as_sub_resource.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_as_sub_resource_attributes.rb +3 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_update_query_as_sub_resource.rb +3 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_update_query_as_sub_resource_attributes.rb +21 -3
- data/lib/klaviyo-api-sdk/models/catalog_job_error_payload.rb +6 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_as_sub_resource.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_as_sub_resource_attributes.rb +3 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_as_sub_resource.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_as_sub_resource_attributes.rb +21 -9
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_as_sub_resource_relationships.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_as_sub_resource_relationships_items.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_as_sub_resource_relationships_items_data_inner.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_as_sub_resource.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_as_sub_resource_attributes.rb +3 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_delete_query_as_sub_resource.rb +3 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_as_sub_resource.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_as_sub_resource_attributes.rb +3 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_query_as_sub_resource.rb +3 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_query_as_sub_resource_attributes.rb +13 -3
- data/lib/klaviyo-api-sdk/models/content_sub_object.rb +270 -0
- data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query.rb +224 -0
- data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_as_sub_resource.rb +272 -0
- data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_as_sub_resource_attributes.rb +240 -0
- data/lib/klaviyo-api-sdk/models/email_message_content.rb +2 -2
- data/lib/klaviyo-api-sdk/models/email_tracking_options.rb +2 -2
- data/lib/klaviyo-api-sdk/models/error_source.rb +5 -2
- data/lib/klaviyo-api-sdk/models/event_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/event_create_query_as_sub_resource.rb +2 -2
- data/lib/klaviyo-api-sdk/models/event_create_query_as_sub_resource_attributes.rb +7 -2
- data/lib/klaviyo-api-sdk/models/flow_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/flow_update_query_as_sub_resource.rb +2 -2
- data/lib/klaviyo-api-sdk/models/flow_update_query_as_sub_resource_attributes.rb +2 -2
- data/lib/klaviyo-api-sdk/models/get_campaigns4_xx_response.rb +226 -0
- data/lib/klaviyo-api-sdk/models/get_campaigns4_xx_response_errors_inner.rb +275 -0
- data/lib/klaviyo-api-sdk/models/get_campaigns4_xx_response_errors_inner_source.rb +228 -0
- data/lib/klaviyo-api-sdk/models/get_catalog_items4_xx_response.rb +2 -2
- data/lib/klaviyo-api-sdk/models/get_catalog_items4_xx_response_errors_inner.rb +2 -2
- data/lib/klaviyo-api-sdk/models/get_catalog_items4_xx_response_errors_inner_source.rb +2 -2
- data/lib/klaviyo-api-sdk/models/included_categories.rb +3 -2
- data/lib/klaviyo-api-sdk/models/included_categories_attributes.rb +5 -2
- data/lib/klaviyo-api-sdk/models/included_flow_action.rb +2 -2
- data/lib/klaviyo-api-sdk/models/included_flow_actions.rb +2 -2
- data/lib/klaviyo-api-sdk/models/included_flow_actions_attributes.rb +2 -2
- data/lib/klaviyo-api-sdk/models/included_flow_actions_attributes_tracking_options.rb +2 -2
- data/lib/klaviyo-api-sdk/models/included_flow_messages.rb +2 -2
- data/lib/klaviyo-api-sdk/models/included_flow_messages_attributes.rb +2 -2
- data/lib/klaviyo-api-sdk/models/included_flow_messages_attributes_content.rb +2 -2
- data/lib/klaviyo-api-sdk/models/included_flows.rb +2 -2
- data/lib/klaviyo-api-sdk/models/included_flows_attributes.rb +2 -2
- data/lib/klaviyo-api-sdk/models/included_items.rb +3 -2
- data/lib/klaviyo-api-sdk/models/included_items_attributes.rb +24 -3
- data/lib/klaviyo-api-sdk/models/included_lists.rb +3 -2
- data/lib/klaviyo-api-sdk/models/included_lists_attributes.rb +5 -2
- data/lib/klaviyo-api-sdk/models/included_metrics.rb +3 -2
- data/lib/klaviyo-api-sdk/models/included_metrics_attributes.rb +6 -2
- data/lib/klaviyo-api-sdk/models/included_profiles.rb +3 -2
- data/lib/klaviyo-api-sdk/models/included_profiles_attributes.rb +14 -2
- data/lib/klaviyo-api-sdk/models/included_segments.rb +3 -3
- data/lib/klaviyo-api-sdk/models/included_segments_attributes.rb +240 -0
- data/lib/klaviyo-api-sdk/models/{included_profile.rb → included_tags.rb} +9 -8
- data/lib/klaviyo-api-sdk/models/included_variants.rb +3 -2
- data/lib/klaviyo-api-sdk/models/included_variants_attributes.rb +17 -3
- data/lib/klaviyo-api-sdk/models/included_variants_links.rb +2 -2
- data/lib/klaviyo-api-sdk/models/list_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/list_create_query_as_sub_resource.rb +2 -2
- data/lib/klaviyo-api-sdk/models/list_create_query_as_sub_resource_attributes.rb +3 -2
- data/lib/klaviyo-api-sdk/models/list_members_add_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/list_members_add_query_data_inner.rb +2 -2
- data/lib/klaviyo-api-sdk/models/list_members_delete_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/list_partial_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/list_partial_update_query_as_sub_resource.rb +3 -2
- data/lib/klaviyo-api-sdk/models/metric_aggregate_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/metric_aggregate_query_as_sub_resource.rb +2 -2
- data/lib/klaviyo-api-sdk/models/metric_aggregate_query_as_sub_resource_attributes.rb +29 -21
- data/lib/klaviyo-api-sdk/models/metric_aggregate_row_dto.rb +4 -2
- data/lib/klaviyo-api-sdk/models/metric_create_query.rb +4 -2
- data/lib/klaviyo-api-sdk/models/onsite_profile_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/onsite_profile_create_query_as_sub_resource.rb +2 -2
- data/lib/klaviyo-api-sdk/models/onsite_profile_meta.rb +2 -2
- data/lib/klaviyo-api-sdk/models/onsite_profile_meta_identifiers.rb +17 -12
- data/lib/klaviyo-api-sdk/models/onsite_subscription_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/onsite_subscription_create_query_as_sub_resource.rb +2 -2
- data/lib/klaviyo-api-sdk/models/onsite_subscription_create_query_as_sub_resource_attributes.rb +7 -2
- data/lib/klaviyo-api-sdk/models/profile_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/profile_create_query_as_sub_resource.rb +2 -2
- data/lib/klaviyo-api-sdk/models/profile_create_query_as_sub_resource_attributes.rb +11 -2
- data/lib/klaviyo-api-sdk/models/profile_location.rb +10 -3
- data/lib/klaviyo-api-sdk/models/profile_location_latitude.rb +3 -2
- data/lib/klaviyo-api-sdk/models/profile_location_longitude.rb +106 -0
- data/lib/klaviyo-api-sdk/models/profile_partial_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/profile_partial_update_query_as_sub_resource.rb +3 -2
- data/lib/klaviyo-api-sdk/models/segment_partial_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/segment_partial_update_query_as_sub_resource.rb +3 -3
- data/lib/klaviyo-api-sdk/models/segment_partial_update_query_as_sub_resource_attributes.rb +224 -0
- data/lib/klaviyo-api-sdk/models/send_options.rb +2 -2
- data/lib/klaviyo-api-sdk/models/send_options_sub_object.rb +220 -0
- data/lib/klaviyo-api-sdk/models/send_strategy_sub_object.rb +252 -0
- data/lib/klaviyo-api-sdk/models/send_time_sub_object.rb +240 -0
- data/lib/klaviyo-api-sdk/models/sms_message_content.rb +2 -2
- data/lib/klaviyo-api-sdk/models/sms_render_options.rb +2 -2
- data/lib/klaviyo-api-sdk/models/sms_tracking_options.rb +2 -2
- data/lib/klaviyo-api-sdk/models/static_schedule_options.rb +245 -0
- data/lib/klaviyo-api-sdk/models/sto_schedule_options.rb +225 -0
- data/lib/klaviyo-api-sdk/models/subscription.rb +27 -6
- data/lib/klaviyo-api-sdk/models/subscription_channels.rb +256 -0
- data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_as_sub_resource.rb +2 -2
- data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_as_sub_resource_attributes.rb +5 -2
- data/lib/klaviyo-api-sdk/models/suppression.rb +3 -2
- data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_as_sub_resource.rb +2 -2
- data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_as_sub_resource_attributes.rb +3 -2
- data/lib/klaviyo-api-sdk/models/tag_create_query.rb +224 -0
- data/lib/klaviyo-api-sdk/models/tag_create_query_as_sub_resource.rb +272 -0
- data/lib/klaviyo-api-sdk/models/tag_create_query_as_sub_resource_attributes.rb +235 -0
- data/lib/klaviyo-api-sdk/models/tag_group_create_query.rb +224 -0
- data/lib/klaviyo-api-sdk/models/tag_group_create_query_as_sub_resource.rb +272 -0
- data/lib/klaviyo-api-sdk/models/tag_group_create_query_as_sub_resource_attributes.rb +234 -0
- data/lib/klaviyo-api-sdk/models/tag_group_update_query.rb +224 -0
- data/lib/klaviyo-api-sdk/models/tag_group_update_query_as_sub_resource.rb +287 -0
- data/lib/klaviyo-api-sdk/models/{v2_template_render_query_as_sub_resource_attributes.rb → tag_group_update_query_as_sub_resource_attributes.rb} +16 -15
- data/lib/klaviyo-api-sdk/models/tag_segment_op.rb +226 -0
- data/lib/klaviyo-api-sdk/models/{template_delete_query_as_sub_resource.rb → tag_segment_op_data_inner.rb} +7 -7
- data/lib/klaviyo-api-sdk/models/tag_update_query.rb +224 -0
- data/lib/klaviyo-api-sdk/models/tag_update_query_as_sub_resource.rb +287 -0
- data/lib/klaviyo-api-sdk/models/tag_update_query_as_sub_resource_attributes.rb +225 -0
- data/lib/klaviyo-api-sdk/models/template_clone_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/template_clone_query_as_sub_resource.rb +2 -2
- data/lib/klaviyo-api-sdk/models/template_clone_query_as_sub_resource_attributes.rb +20 -3
- data/lib/klaviyo-api-sdk/models/template_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/template_create_query_as_sub_resource.rb +2 -2
- data/lib/klaviyo-api-sdk/models/template_create_query_as_sub_resource_attributes.rb +7 -2
- data/lib/klaviyo-api-sdk/models/template_render_query.rb +224 -0
- data/lib/klaviyo-api-sdk/models/template_render_query_as_sub_resource.rb +272 -0
- data/lib/klaviyo-api-sdk/models/template_render_query_as_sub_resource_attributes.rb +252 -0
- data/lib/klaviyo-api-sdk/models/template_update_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/template_update_query_as_sub_resource.rb +3 -2
- data/lib/klaviyo-api-sdk/models/template_update_query_as_sub_resource_attributes.rb +6 -2
- data/lib/klaviyo-api-sdk/models/throttled_schedule_options.rb +240 -0
- data/lib/klaviyo-api-sdk/models/tracking_options_sub_object.rb +252 -0
- data/lib/klaviyo-api-sdk/models/unsubscription_create_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/unsubscription_create_job_create_query_as_sub_resource.rb +2 -2
- data/lib/klaviyo-api-sdk/models/unsubscription_create_job_create_query_as_sub_resource_attributes.rb +5 -7
- data/lib/klaviyo-api-sdk/models/unsuppression_create_job_create_query.rb +2 -2
- data/lib/klaviyo-api-sdk/models/unsuppression_create_job_create_query_as_sub_resource.rb +3 -3
- data/lib/klaviyo-api-sdk/models/unsuppression_create_job_create_query_as_sub_resource_attributes.rb +227 -0
- data/lib/klaviyo-api-sdk/models/utm_param_info.rb +2 -2
- data/lib/klaviyo-api-sdk/models/utm_params_sub_object.rb +240 -0
- data/lib/klaviyo-api-sdk/models/v2_template_render_query_as_sub_resource.rb +11 -62
- data/lib/klaviyo-api-sdk/version.rb +2 -2
- data/lib/klaviyo-api-sdk.rb +68 -11
- data/spec/api/campaigns_api_spec.rb +284 -0
- data/spec/api/catalogs_api_spec.rb +94 -94
- data/spec/api/client_api_spec.rb +5 -5
- data/spec/api/data_privacy_api_spec.rb +47 -0
- data/spec/api/events_api_spec.rb +19 -19
- data/spec/api/flows_api_spec.rb +44 -33
- data/spec/api/lists_api_spec.rb +28 -15
- data/spec/api/metrics_api_spec.rb +8 -8
- data/spec/api/profiles_api_spec.rb +21 -21
- data/spec/api/segments_api_spec.rb +24 -10
- data/spec/api/tags_api_spec.rb +245 -0
- data/spec/api/templates_api_spec.rb +18 -18
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/audiences_sub_object_spec.rb +40 -0
- data/spec/models/campaign_clone_query_as_sub_resource_attributes_spec.rb +40 -0
- data/spec/models/campaign_clone_query_as_sub_resource_spec.rb +44 -0
- data/spec/models/{v2_template_render_query_spec.rb → campaign_clone_query_spec.rb} +8 -8
- data/spec/models/campaign_create_query_as_sub_resource_attributes_spec.rb +64 -0
- data/spec/models/campaign_create_query_as_sub_resource_spec.rb +44 -0
- data/spec/models/campaign_create_query_spec.rb +34 -0
- data/spec/models/campaign_message_assign_template_query_as_sub_resource_attributes_spec.rb +40 -0
- data/spec/models/campaign_message_assign_template_query_as_sub_resource_spec.rb +44 -0
- data/spec/models/campaign_message_assign_template_query_spec.rb +34 -0
- data/spec/models/campaign_message_partial_update_query_as_sub_resource_attributes_spec.rb +40 -0
- data/spec/models/campaign_message_partial_update_query_as_sub_resource_spec.rb +50 -0
- data/spec/models/campaign_message_partial_update_query_spec.rb +34 -0
- data/spec/models/campaign_partial_update_query_as_sub_resource_attributes_spec.rb +58 -0
- data/spec/models/campaign_partial_update_query_as_sub_resource_spec.rb +50 -0
- data/spec/models/campaign_partial_update_query_spec.rb +34 -0
- data/spec/models/campaign_recipient_estimation_job_create_query_as_sub_resource_attributes_spec.rb +34 -0
- data/spec/models/campaign_recipient_estimation_job_create_query_as_sub_resource_spec.rb +44 -0
- data/spec/models/campaign_recipient_estimation_job_create_query_spec.rb +34 -0
- data/spec/models/campaign_send_job_create_query_as_sub_resource_attributes_spec.rb +34 -0
- data/spec/models/campaign_send_job_create_query_as_sub_resource_spec.rb +44 -0
- data/spec/models/campaign_send_job_create_query_spec.rb +34 -0
- data/spec/models/campaign_send_job_partial_update_query_as_sub_resource_attributes_spec.rb +34 -0
- data/spec/models/campaign_send_job_partial_update_query_as_sub_resource_spec.rb +50 -0
- data/spec/models/campaign_send_job_partial_update_query_spec.rb +34 -0
- data/spec/models/{list_delete_query_as_sub_resource_spec.rb → campaign_tag_op_data_inner_spec.rb} +9 -9
- data/spec/models/campaign_tag_op_spec.rb +34 -0
- data/spec/models/catalog_category_create_job_create_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/catalog_category_create_job_create_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/catalog_category_create_job_create_query_spec.rb +2 -2
- data/spec/models/catalog_category_create_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/catalog_category_create_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/catalog_category_create_query_spec.rb +2 -2
- data/spec/models/catalog_category_delete_job_create_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/catalog_category_delete_job_create_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/catalog_category_delete_job_create_query_spec.rb +2 -2
- data/spec/models/catalog_category_delete_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/catalog_category_item_op_spec.rb +2 -2
- data/spec/models/catalog_category_update_job_create_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/catalog_category_update_job_create_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/catalog_category_update_job_create_query_spec.rb +2 -2
- data/spec/models/catalog_category_update_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/catalog_category_update_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/catalog_category_update_query_spec.rb +2 -2
- data/spec/models/catalog_item_category_op_spec.rb +2 -2
- data/spec/models/catalog_item_create_job_create_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/catalog_item_create_job_create_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/catalog_item_create_job_create_query_spec.rb +2 -2
- data/spec/models/catalog_item_create_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/catalog_item_create_query_as_sub_resource_relationships_categories_data_inner_spec.rb +2 -2
- data/spec/models/catalog_item_create_query_as_sub_resource_relationships_categories_spec.rb +2 -2
- data/spec/models/catalog_item_create_query_as_sub_resource_relationships_spec.rb +2 -2
- data/spec/models/catalog_item_create_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/catalog_item_create_query_spec.rb +2 -2
- data/spec/models/catalog_item_delete_job_create_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/catalog_item_delete_job_create_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/catalog_item_delete_job_create_query_spec.rb +2 -2
- data/spec/models/catalog_item_delete_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/catalog_item_update_job_create_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/catalog_item_update_job_create_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/catalog_item_update_job_create_query_spec.rb +2 -2
- data/spec/models/catalog_item_update_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/catalog_item_update_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/catalog_item_update_query_spec.rb +2 -2
- data/spec/models/catalog_job_error_payload_spec.rb +2 -2
- data/spec/models/catalog_variant_create_job_create_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/catalog_variant_create_job_create_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/catalog_variant_create_job_create_query_spec.rb +2 -2
- data/spec/models/catalog_variant_create_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/catalog_variant_create_query_as_sub_resource_relationships_items_data_inner_spec.rb +2 -2
- data/spec/models/catalog_variant_create_query_as_sub_resource_relationships_items_spec.rb +2 -2
- data/spec/models/catalog_variant_create_query_as_sub_resource_relationships_spec.rb +2 -2
- data/spec/models/catalog_variant_create_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/catalog_variant_create_query_spec.rb +2 -2
- data/spec/models/catalog_variant_delete_job_create_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/catalog_variant_delete_job_create_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/catalog_variant_delete_job_create_query_spec.rb +2 -2
- data/spec/models/catalog_variant_delete_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/catalog_variant_update_job_create_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/catalog_variant_update_job_create_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/catalog_variant_update_job_create_query_spec.rb +2 -2
- data/spec/models/catalog_variant_update_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/catalog_variant_update_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/catalog_variant_update_query_spec.rb +2 -2
- data/spec/models/content_sub_object_spec.rb +64 -0
- data/spec/models/data_privacy_create_deletion_job_query_as_sub_resource_attributes_spec.rb +46 -0
- data/spec/models/data_privacy_create_deletion_job_query_as_sub_resource_spec.rb +44 -0
- data/spec/models/data_privacy_create_deletion_job_query_spec.rb +34 -0
- data/spec/models/email_message_content_spec.rb +2 -2
- data/spec/models/email_tracking_options_spec.rb +2 -2
- data/spec/models/error_source_spec.rb +2 -2
- data/spec/models/event_create_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/event_create_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/event_create_query_spec.rb +2 -2
- data/spec/models/flow_update_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/flow_update_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/flow_update_query_spec.rb +2 -2
- data/spec/models/get_campaigns4_xx_response_errors_inner_source_spec.rb +40 -0
- data/spec/models/get_campaigns4_xx_response_errors_inner_spec.rb +58 -0
- data/spec/models/get_campaigns4_xx_response_spec.rb +34 -0
- data/spec/models/get_catalog_items4_xx_response_errors_inner_source_spec.rb +2 -2
- data/spec/models/get_catalog_items4_xx_response_errors_inner_spec.rb +2 -2
- data/spec/models/get_catalog_items4_xx_response_spec.rb +2 -2
- data/spec/models/included_categories_attributes_spec.rb +2 -2
- data/spec/models/included_categories_spec.rb +2 -2
- data/spec/models/included_flow_action_spec.rb +2 -2
- data/spec/models/included_flow_actions_attributes_spec.rb +2 -2
- data/spec/models/included_flow_actions_attributes_tracking_options_spec.rb +2 -2
- data/spec/models/included_flow_actions_spec.rb +2 -2
- data/spec/models/included_flow_messages_attributes_content_spec.rb +2 -2
- data/spec/models/included_flow_messages_attributes_spec.rb +2 -2
- data/spec/models/included_flow_messages_spec.rb +2 -2
- data/spec/models/included_flows_attributes_spec.rb +2 -2
- data/spec/models/included_flows_spec.rb +2 -2
- data/spec/models/included_items_attributes_spec.rb +2 -2
- data/spec/models/included_items_spec.rb +2 -2
- data/spec/models/included_lists_attributes_spec.rb +2 -2
- data/spec/models/included_lists_spec.rb +2 -2
- data/spec/models/included_metrics_attributes_spec.rb +2 -2
- data/spec/models/included_metrics_spec.rb +2 -2
- data/spec/models/included_profiles_attributes_spec.rb +2 -2
- data/spec/models/included_profiles_spec.rb +2 -2
- data/spec/models/included_segments_attributes_spec.rb +46 -0
- data/spec/models/included_segments_spec.rb +2 -2
- data/spec/models/{included_profile_spec.rb → included_tags_spec.rb} +9 -9
- data/spec/models/included_variants_attributes_spec.rb +2 -2
- data/spec/models/included_variants_links_spec.rb +2 -2
- data/spec/models/included_variants_spec.rb +2 -2
- data/spec/models/list_create_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/list_create_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/list_create_query_spec.rb +2 -2
- data/spec/models/list_members_add_query_data_inner_spec.rb +2 -2
- data/spec/models/list_members_add_query_spec.rb +2 -2
- data/spec/models/list_members_delete_query_spec.rb +2 -2
- data/spec/models/list_partial_update_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/list_partial_update_query_spec.rb +2 -2
- data/spec/models/metric_aggregate_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/metric_aggregate_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/metric_aggregate_query_spec.rb +2 -2
- data/spec/models/metric_aggregate_row_dto_spec.rb +2 -2
- data/spec/models/metric_create_query_spec.rb +2 -2
- data/spec/models/onsite_profile_create_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/onsite_profile_create_query_spec.rb +2 -2
- data/spec/models/onsite_profile_meta_identifiers_spec.rb +2 -2
- data/spec/models/onsite_profile_meta_spec.rb +2 -2
- data/spec/models/onsite_subscription_create_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/onsite_subscription_create_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/onsite_subscription_create_query_spec.rb +2 -2
- data/spec/models/profile_create_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/profile_create_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/profile_create_query_spec.rb +2 -2
- data/spec/models/profile_location_latitude_spec.rb +2 -2
- data/spec/models/profile_location_longitude_spec.rb +31 -0
- data/spec/models/profile_location_spec.rb +2 -2
- data/spec/models/profile_partial_update_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/profile_partial_update_query_spec.rb +2 -2
- data/spec/models/segment_partial_update_query_as_sub_resource_attributes_spec.rb +34 -0
- data/spec/models/segment_partial_update_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/segment_partial_update_query_spec.rb +2 -2
- data/spec/models/send_options_spec.rb +2 -2
- data/spec/models/send_options_sub_object_spec.rb +40 -0
- data/spec/models/send_strategy_sub_object_spec.rb +46 -0
- data/spec/models/send_time_sub_object_spec.rb +40 -0
- data/spec/models/sms_message_content_spec.rb +2 -2
- data/spec/models/sms_render_options_spec.rb +2 -2
- data/spec/models/sms_tracking_options_spec.rb +2 -2
- data/spec/models/static_schedule_options_spec.rb +46 -0
- data/spec/models/sto_schedule_options_spec.rb +34 -0
- data/spec/models/subscription_channels_spec.rb +48 -0
- data/spec/models/subscription_create_job_create_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/subscription_create_job_create_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/subscription_create_job_create_query_spec.rb +2 -2
- data/spec/models/subscription_spec.rb +2 -2
- data/spec/models/suppression_create_job_create_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/suppression_create_job_create_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/suppression_create_job_create_query_spec.rb +2 -2
- data/spec/models/suppression_spec.rb +2 -2
- data/spec/models/tag_create_query_as_sub_resource_attributes_spec.rb +40 -0
- data/spec/models/tag_create_query_as_sub_resource_spec.rb +44 -0
- data/spec/models/tag_create_query_spec.rb +34 -0
- data/spec/models/tag_group_create_query_as_sub_resource_attributes_spec.rb +40 -0
- data/spec/models/tag_group_create_query_as_sub_resource_spec.rb +44 -0
- data/spec/models/tag_group_create_query_spec.rb +34 -0
- data/spec/models/{v2_template_render_query_as_sub_resource_attributes_spec.rb → tag_group_update_query_as_sub_resource_attributes_spec.rb} +9 -9
- data/spec/models/tag_group_update_query_as_sub_resource_spec.rb +50 -0
- data/spec/models/tag_group_update_query_spec.rb +34 -0
- data/spec/models/tag_segment_op_data_inner_spec.rb +44 -0
- data/spec/models/tag_segment_op_spec.rb +34 -0
- data/spec/models/tag_update_query_as_sub_resource_attributes_spec.rb +34 -0
- data/spec/models/tag_update_query_as_sub_resource_spec.rb +50 -0
- data/spec/models/tag_update_query_spec.rb +34 -0
- data/spec/models/template_clone_query_as_sub_resource_attributes_spec.rb +8 -2
- data/spec/models/template_clone_query_as_sub_resource_spec.rb +8 -2
- data/spec/models/template_clone_query_spec.rb +2 -2
- data/spec/models/template_create_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/template_create_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/template_create_query_spec.rb +2 -2
- data/spec/models/template_render_query_as_sub_resource_attributes_spec.rb +46 -0
- data/spec/models/{template_delete_query_as_sub_resource_spec.rb → template_render_query_as_sub_resource_spec.rb} +9 -9
- data/spec/models/template_render_query_spec.rb +34 -0
- data/spec/models/template_update_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/template_update_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/template_update_query_spec.rb +2 -2
- data/spec/models/throttled_schedule_options_spec.rb +40 -0
- data/spec/models/tracking_options_sub_object_spec.rb +52 -0
- data/spec/models/unsubscription_create_job_create_query_as_sub_resource_attributes_spec.rb +2 -2
- data/spec/models/unsubscription_create_job_create_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/unsubscription_create_job_create_query_spec.rb +2 -2
- data/spec/models/unsuppression_create_job_create_query_as_sub_resource_attributes_spec.rb +34 -0
- data/spec/models/unsuppression_create_job_create_query_as_sub_resource_spec.rb +2 -2
- data/spec/models/unsuppression_create_job_create_query_spec.rb +2 -2
- data/spec/models/utm_param_info_spec.rb +2 -2
- data/spec/models/utm_params_sub_object_spec.rb +40 -0
- data/spec/models/v2_template_render_query_as_sub_resource_spec.rb +3 -13
- data/spec/spec_helper.rb +2 -2
- metadata +207 -19
- data/docs/V2TemplateRenderQuery.md +0 -18
- data/test.rb +0 -50
data/docs/TagsApi.md
ADDED
@@ -0,0 +1,1205 @@
|
|
1
|
+
# KlaviyoAPI::TagsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://a.klaviyo.com*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create_tag**](TagsApi.md#create_tag) | **POST** /api/tags/ | Create Tag |
|
8
|
+
| [**create_tag_group**](TagsApi.md#create_tag_group) | **POST** /api/tag-groups/ | Create Tag Group |
|
9
|
+
| [**create_tag_relationships**](TagsApi.md#create_tag_relationships) | **POST** /api/tags/{id}/relationships/{related_resource}/ | Create Tag Relationships |
|
10
|
+
| [**delete_tag**](TagsApi.md#delete_tag) | **DELETE** /api/tags/{id}/ | Delete Tag |
|
11
|
+
| [**delete_tag_group**](TagsApi.md#delete_tag_group) | **DELETE** /api/tag-groups/{id}/ | Delete Tag Group |
|
12
|
+
| [**delete_tag_relationships**](TagsApi.md#delete_tag_relationships) | **DELETE** /api/tags/{id}/relationships/{related_resource}/ | Delete Tag Relationships |
|
13
|
+
| [**get_tag**](TagsApi.md#get_tag) | **GET** /api/tags/{id}/ | Get Tag |
|
14
|
+
| [**get_tag_group**](TagsApi.md#get_tag_group) | **GET** /api/tag-groups/{id}/ | Get Tag Group |
|
15
|
+
| [**get_tag_group_relationships**](TagsApi.md#get_tag_group_relationships) | **GET** /api/tag-groups/{id}/relationships/{related_resource}/ | Get Tag Group Relationships |
|
16
|
+
| [**get_tag_group_tags**](TagsApi.md#get_tag_group_tags) | **GET** /api/tag-groups/{id}/tags/ | Get Tag Group Tags |
|
17
|
+
| [**get_tag_groups**](TagsApi.md#get_tag_groups) | **GET** /api/tag-groups/ | Get Tag Groups |
|
18
|
+
| [**get_tag_relationships**](TagsApi.md#get_tag_relationships) | **GET** /api/tags/{id}/relationships/{related_resource}/ | Get Tag Relationships |
|
19
|
+
| [**get_tag_tag_group**](TagsApi.md#get_tag_tag_group) | **GET** /api/tags/{id}/tag-group/ | Get Tag Tag Group |
|
20
|
+
| [**get_tags**](TagsApi.md#get_tags) | **GET** /api/tags/ | Get Tags |
|
21
|
+
| [**update_tag**](TagsApi.md#update_tag) | **PATCH** /api/tags/{id}/ | Update Tag |
|
22
|
+
| [**update_tag_group**](TagsApi.md#update_tag_group) | **PATCH** /api/tag-groups/{id}/ | Update Tag Group |
|
23
|
+
|
24
|
+
|
25
|
+
## create_tag
|
26
|
+
|
27
|
+
> Hash<String, Object> create_tag(tag_create_query)
|
28
|
+
|
29
|
+
Create Tag
|
30
|
+
|
31
|
+
Create a tag. An account cannot have more than **500** unique tags. A tag belongs to a single tag group. If the `tag_group_id` is not specified, the tag is added to the account's default tag group.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Tags Read` `Tags Write`
|
32
|
+
|
33
|
+
### Examples
|
34
|
+
|
35
|
+
```ruby
|
36
|
+
require 'time'
|
37
|
+
require 'klaviyo-api-sdk'
|
38
|
+
# setup authorization
|
39
|
+
KlaviyoAPI.configure do |config|
|
40
|
+
# Configure API key authorization: Klaviyo-API-Key
|
41
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
42
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
43
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
44
|
+
end
|
45
|
+
|
46
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
47
|
+
tag_create_query = KlaviyoAPI::TagCreateQuery.new({data: KlaviyoAPI::TagCreateQueryAsSubResource.new({type: 'tag', attributes: KlaviyoAPI::TagCreateQueryAsSubResourceAttributes.new({name: 'My Tag'})})}) # TagCreateQuery |
|
48
|
+
|
49
|
+
begin
|
50
|
+
# Create Tag
|
51
|
+
result = api_instance.create_tag(tag_create_query)
|
52
|
+
p result
|
53
|
+
rescue KlaviyoAPI::ApiError => e
|
54
|
+
puts "Error when calling TagsApi->create_tag: #{e}"
|
55
|
+
end
|
56
|
+
```
|
57
|
+
|
58
|
+
#### Using the create_tag_with_http_info variant
|
59
|
+
|
60
|
+
This returns an Array which contains the response data, status code and headers.
|
61
|
+
|
62
|
+
> <Array(Hash<String, Object>, Integer, Hash)> create_tag_with_http_info(tag_create_query)
|
63
|
+
|
64
|
+
```ruby
|
65
|
+
begin
|
66
|
+
# Create Tag
|
67
|
+
data, status_code, headers = api_instance.create_tag_with_http_info(tag_create_query)
|
68
|
+
p status_code # => 2xx
|
69
|
+
p headers # => { ... }
|
70
|
+
p data # => Hash<String, Object>
|
71
|
+
rescue KlaviyoAPI::ApiError => e
|
72
|
+
puts "Error when calling TagsApi->create_tag_with_http_info: #{e}"
|
73
|
+
end
|
74
|
+
```
|
75
|
+
|
76
|
+
### Parameters
|
77
|
+
|
78
|
+
| Name | Type | Description | Notes |
|
79
|
+
| ---- | ---- | ----------- | ----- |
|
80
|
+
| **tag_create_query** | [**TagCreateQuery**](TagCreateQuery.md) | | |
|
81
|
+
|
82
|
+
### Return type
|
83
|
+
|
84
|
+
**Hash<String, Object>**
|
85
|
+
|
86
|
+
### Authorization
|
87
|
+
|
88
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
89
|
+
|
90
|
+
### HTTP request headers
|
91
|
+
|
92
|
+
- **Content-Type**: application/json
|
93
|
+
- **Accept**: application/json
|
94
|
+
|
95
|
+
|
96
|
+
## create_tag_group
|
97
|
+
|
98
|
+
> Hash<String, Object> create_tag_group(tag_group_create_query)
|
99
|
+
|
100
|
+
Create Tag Group
|
101
|
+
|
102
|
+
Create a tag group. An account cannot have more than **50** unique tag groups. If `exclusive` is not specified `true` or `false`, the tag group defaults to non-exclusive. If a tag group is non-exclusive, any given related resource (campaign, flow, etc.) can be linked to multiple tags from that tag group. If a tag group is exclusive, any given related resource can only be linked to one tag from that tag group.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Tags Read` `Tags Write`
|
103
|
+
|
104
|
+
### Examples
|
105
|
+
|
106
|
+
```ruby
|
107
|
+
require 'time'
|
108
|
+
require 'klaviyo-api-sdk'
|
109
|
+
# setup authorization
|
110
|
+
KlaviyoAPI.configure do |config|
|
111
|
+
# Configure API key authorization: Klaviyo-API-Key
|
112
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
113
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
114
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
115
|
+
end
|
116
|
+
|
117
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
118
|
+
tag_group_create_query = KlaviyoAPI::TagGroupCreateQuery.new({data: KlaviyoAPI::TagGroupCreateQueryAsSubResource.new({type: 'tag-group', attributes: KlaviyoAPI::TagGroupCreateQueryAsSubResourceAttributes.new({name: 'My Tag Group'})})}) # TagGroupCreateQuery |
|
119
|
+
|
120
|
+
begin
|
121
|
+
# Create Tag Group
|
122
|
+
result = api_instance.create_tag_group(tag_group_create_query)
|
123
|
+
p result
|
124
|
+
rescue KlaviyoAPI::ApiError => e
|
125
|
+
puts "Error when calling TagsApi->create_tag_group: #{e}"
|
126
|
+
end
|
127
|
+
```
|
128
|
+
|
129
|
+
#### Using the create_tag_group_with_http_info variant
|
130
|
+
|
131
|
+
This returns an Array which contains the response data, status code and headers.
|
132
|
+
|
133
|
+
> <Array(Hash<String, Object>, Integer, Hash)> create_tag_group_with_http_info(tag_group_create_query)
|
134
|
+
|
135
|
+
```ruby
|
136
|
+
begin
|
137
|
+
# Create Tag Group
|
138
|
+
data, status_code, headers = api_instance.create_tag_group_with_http_info(tag_group_create_query)
|
139
|
+
p status_code # => 2xx
|
140
|
+
p headers # => { ... }
|
141
|
+
p data # => Hash<String, Object>
|
142
|
+
rescue KlaviyoAPI::ApiError => e
|
143
|
+
puts "Error when calling TagsApi->create_tag_group_with_http_info: #{e}"
|
144
|
+
end
|
145
|
+
```
|
146
|
+
|
147
|
+
### Parameters
|
148
|
+
|
149
|
+
| Name | Type | Description | Notes |
|
150
|
+
| ---- | ---- | ----------- | ----- |
|
151
|
+
| **tag_group_create_query** | [**TagGroupCreateQuery**](TagGroupCreateQuery.md) | | |
|
152
|
+
|
153
|
+
### Return type
|
154
|
+
|
155
|
+
**Hash<String, Object>**
|
156
|
+
|
157
|
+
### Authorization
|
158
|
+
|
159
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
160
|
+
|
161
|
+
### HTTP request headers
|
162
|
+
|
163
|
+
- **Content-Type**: application/json
|
164
|
+
- **Accept**: application/json
|
165
|
+
|
166
|
+
|
167
|
+
## create_tag_relationships
|
168
|
+
|
169
|
+
> create_tag_relationships(id, related_resource, tag_segment_op)
|
170
|
+
|
171
|
+
Create Tag Relationships
|
172
|
+
|
173
|
+
Associate a tag with other resources. Any given resource cannot be associated with more than **100** tags. The `related_resource` can be one of `campaigns`, `flows`, `lists`, or `segments`. Use the request body to pass in the ID(s) of the related resource(s) that will be associated with the tag. The scopes listed below are conditionally required depending on the specified related resource.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Write` `Lists Write` `Segments Write` `Tags Write`
|
174
|
+
|
175
|
+
### Examples
|
176
|
+
|
177
|
+
```ruby
|
178
|
+
require 'time'
|
179
|
+
require 'klaviyo-api-sdk'
|
180
|
+
# setup authorization
|
181
|
+
KlaviyoAPI.configure do |config|
|
182
|
+
# Configure API key authorization: Klaviyo-API-Key
|
183
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
184
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
185
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
186
|
+
end
|
187
|
+
|
188
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
189
|
+
id = 'id_example' # String |
|
190
|
+
related_resource = 'flows' # String |
|
191
|
+
tag_segment_op = KlaviyoAPI::TagSegmentOp.new({data: [KlaviyoAPI::TagSegmentOpDataInner.new({type: 'segment', id: 'id_example'})]}) # TagSegmentOp |
|
192
|
+
|
193
|
+
begin
|
194
|
+
# Create Tag Relationships
|
195
|
+
api_instance.create_tag_relationships(id, related_resource, tag_segment_op)
|
196
|
+
rescue KlaviyoAPI::ApiError => e
|
197
|
+
puts "Error when calling TagsApi->create_tag_relationships: #{e}"
|
198
|
+
end
|
199
|
+
```
|
200
|
+
|
201
|
+
#### Using the create_tag_relationships_with_http_info variant
|
202
|
+
|
203
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
204
|
+
|
205
|
+
> <Array(nil, Integer, Hash)> create_tag_relationships_with_http_info(id, related_resource, tag_segment_op)
|
206
|
+
|
207
|
+
```ruby
|
208
|
+
begin
|
209
|
+
# Create Tag Relationships
|
210
|
+
data, status_code, headers = api_instance.create_tag_relationships_with_http_info(id, related_resource, tag_segment_op)
|
211
|
+
p status_code # => 2xx
|
212
|
+
p headers # => { ... }
|
213
|
+
p data # => nil
|
214
|
+
rescue KlaviyoAPI::ApiError => e
|
215
|
+
puts "Error when calling TagsApi->create_tag_relationships_with_http_info: #{e}"
|
216
|
+
end
|
217
|
+
```
|
218
|
+
|
219
|
+
### Parameters
|
220
|
+
|
221
|
+
| Name | Type | Description | Notes |
|
222
|
+
| ---- | ---- | ----------- | ----- |
|
223
|
+
| **id** | **String** | | |
|
224
|
+
| **related_resource** | **String** | | |
|
225
|
+
| **tag_segment_op** | [**TagSegmentOp**](TagSegmentOp.md) | | |
|
226
|
+
|
227
|
+
### Return type
|
228
|
+
|
229
|
+
nil (empty response body)
|
230
|
+
|
231
|
+
### Authorization
|
232
|
+
|
233
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
234
|
+
|
235
|
+
### HTTP request headers
|
236
|
+
|
237
|
+
- **Content-Type**: application/json
|
238
|
+
- **Accept**: application/json
|
239
|
+
|
240
|
+
|
241
|
+
## delete_tag
|
242
|
+
|
243
|
+
> Hash<String, Object> delete_tag(id)
|
244
|
+
|
245
|
+
Delete Tag
|
246
|
+
|
247
|
+
Delete the tag with the given tag ID. Any associations between the tag and other resources will also be removed.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Tags Read` `Tags Write`
|
248
|
+
|
249
|
+
### Examples
|
250
|
+
|
251
|
+
```ruby
|
252
|
+
require 'time'
|
253
|
+
require 'klaviyo-api-sdk'
|
254
|
+
# setup authorization
|
255
|
+
KlaviyoAPI.configure do |config|
|
256
|
+
# Configure API key authorization: Klaviyo-API-Key
|
257
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
258
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
259
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
260
|
+
end
|
261
|
+
|
262
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
263
|
+
id = 'abcd1234-ef56-gh78-ij90-abcdef123456' # String | The Tag ID
|
264
|
+
|
265
|
+
begin
|
266
|
+
# Delete Tag
|
267
|
+
result = api_instance.delete_tag(id)
|
268
|
+
p result
|
269
|
+
rescue KlaviyoAPI::ApiError => e
|
270
|
+
puts "Error when calling TagsApi->delete_tag: #{e}"
|
271
|
+
end
|
272
|
+
```
|
273
|
+
|
274
|
+
#### Using the delete_tag_with_http_info variant
|
275
|
+
|
276
|
+
This returns an Array which contains the response data, status code and headers.
|
277
|
+
|
278
|
+
> <Array(Hash<String, Object>, Integer, Hash)> delete_tag_with_http_info(id)
|
279
|
+
|
280
|
+
```ruby
|
281
|
+
begin
|
282
|
+
# Delete Tag
|
283
|
+
data, status_code, headers = api_instance.delete_tag_with_http_info(id)
|
284
|
+
p status_code # => 2xx
|
285
|
+
p headers # => { ... }
|
286
|
+
p data # => Hash<String, Object>
|
287
|
+
rescue KlaviyoAPI::ApiError => e
|
288
|
+
puts "Error when calling TagsApi->delete_tag_with_http_info: #{e}"
|
289
|
+
end
|
290
|
+
```
|
291
|
+
|
292
|
+
### Parameters
|
293
|
+
|
294
|
+
| Name | Type | Description | Notes |
|
295
|
+
| ---- | ---- | ----------- | ----- |
|
296
|
+
| **id** | **String** | The Tag ID | |
|
297
|
+
|
298
|
+
### Return type
|
299
|
+
|
300
|
+
**Hash<String, Object>**
|
301
|
+
|
302
|
+
### Authorization
|
303
|
+
|
304
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
305
|
+
|
306
|
+
### HTTP request headers
|
307
|
+
|
308
|
+
- **Content-Type**: Not defined
|
309
|
+
- **Accept**: application/json
|
310
|
+
|
311
|
+
|
312
|
+
## delete_tag_group
|
313
|
+
|
314
|
+
> Hash<String, Object> delete_tag_group(id)
|
315
|
+
|
316
|
+
Delete Tag Group
|
317
|
+
|
318
|
+
Delete the tag group with the given tag group ID. Any tags inside that tag group, and any associations between those tags and other resources, will also be removed. The default tag group cannot be deleted.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Tags Read` `Tags Write`
|
319
|
+
|
320
|
+
### Examples
|
321
|
+
|
322
|
+
```ruby
|
323
|
+
require 'time'
|
324
|
+
require 'klaviyo-api-sdk'
|
325
|
+
# setup authorization
|
326
|
+
KlaviyoAPI.configure do |config|
|
327
|
+
# Configure API key authorization: Klaviyo-API-Key
|
328
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
329
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
330
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
331
|
+
end
|
332
|
+
|
333
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
334
|
+
id = 'zyxw9876-vu54-ts32-rq10-zyxwvu654321' # String | The Tag Group ID
|
335
|
+
|
336
|
+
begin
|
337
|
+
# Delete Tag Group
|
338
|
+
result = api_instance.delete_tag_group(id)
|
339
|
+
p result
|
340
|
+
rescue KlaviyoAPI::ApiError => e
|
341
|
+
puts "Error when calling TagsApi->delete_tag_group: #{e}"
|
342
|
+
end
|
343
|
+
```
|
344
|
+
|
345
|
+
#### Using the delete_tag_group_with_http_info variant
|
346
|
+
|
347
|
+
This returns an Array which contains the response data, status code and headers.
|
348
|
+
|
349
|
+
> <Array(Hash<String, Object>, Integer, Hash)> delete_tag_group_with_http_info(id)
|
350
|
+
|
351
|
+
```ruby
|
352
|
+
begin
|
353
|
+
# Delete Tag Group
|
354
|
+
data, status_code, headers = api_instance.delete_tag_group_with_http_info(id)
|
355
|
+
p status_code # => 2xx
|
356
|
+
p headers # => { ... }
|
357
|
+
p data # => Hash<String, Object>
|
358
|
+
rescue KlaviyoAPI::ApiError => e
|
359
|
+
puts "Error when calling TagsApi->delete_tag_group_with_http_info: #{e}"
|
360
|
+
end
|
361
|
+
```
|
362
|
+
|
363
|
+
### Parameters
|
364
|
+
|
365
|
+
| Name | Type | Description | Notes |
|
366
|
+
| ---- | ---- | ----------- | ----- |
|
367
|
+
| **id** | **String** | The Tag Group ID | |
|
368
|
+
|
369
|
+
### Return type
|
370
|
+
|
371
|
+
**Hash<String, Object>**
|
372
|
+
|
373
|
+
### Authorization
|
374
|
+
|
375
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
376
|
+
|
377
|
+
### HTTP request headers
|
378
|
+
|
379
|
+
- **Content-Type**: Not defined
|
380
|
+
- **Accept**: application/json
|
381
|
+
|
382
|
+
|
383
|
+
## delete_tag_relationships
|
384
|
+
|
385
|
+
> delete_tag_relationships(id, related_resource, tag_segment_op)
|
386
|
+
|
387
|
+
Delete Tag Relationships
|
388
|
+
|
389
|
+
Remove a tag's association with other resources. The `related_resource` can be one of `campaigns`, `flows`, `lists`, or `segments`. Use the request body to pass in the ID(s) of the related resource(s) whose association with the tag will be removed. The scopes listed below are conditionally required depending on the specified related resource.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Write` `Lists Write` `Segments Write` `Tags Write`
|
390
|
+
|
391
|
+
### Examples
|
392
|
+
|
393
|
+
```ruby
|
394
|
+
require 'time'
|
395
|
+
require 'klaviyo-api-sdk'
|
396
|
+
# setup authorization
|
397
|
+
KlaviyoAPI.configure do |config|
|
398
|
+
# Configure API key authorization: Klaviyo-API-Key
|
399
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
400
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
401
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
402
|
+
end
|
403
|
+
|
404
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
405
|
+
id = 'id_example' # String |
|
406
|
+
related_resource = 'flows' # String |
|
407
|
+
tag_segment_op = KlaviyoAPI::TagSegmentOp.new({data: [KlaviyoAPI::TagSegmentOpDataInner.new({type: 'segment', id: 'id_example'})]}) # TagSegmentOp |
|
408
|
+
|
409
|
+
begin
|
410
|
+
# Delete Tag Relationships
|
411
|
+
api_instance.delete_tag_relationships(id, related_resource, tag_segment_op)
|
412
|
+
rescue KlaviyoAPI::ApiError => e
|
413
|
+
puts "Error when calling TagsApi->delete_tag_relationships: #{e}"
|
414
|
+
end
|
415
|
+
```
|
416
|
+
|
417
|
+
#### Using the delete_tag_relationships_with_http_info variant
|
418
|
+
|
419
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
420
|
+
|
421
|
+
> <Array(nil, Integer, Hash)> delete_tag_relationships_with_http_info(id, related_resource, tag_segment_op)
|
422
|
+
|
423
|
+
```ruby
|
424
|
+
begin
|
425
|
+
# Delete Tag Relationships
|
426
|
+
data, status_code, headers = api_instance.delete_tag_relationships_with_http_info(id, related_resource, tag_segment_op)
|
427
|
+
p status_code # => 2xx
|
428
|
+
p headers # => { ... }
|
429
|
+
p data # => nil
|
430
|
+
rescue KlaviyoAPI::ApiError => e
|
431
|
+
puts "Error when calling TagsApi->delete_tag_relationships_with_http_info: #{e}"
|
432
|
+
end
|
433
|
+
```
|
434
|
+
|
435
|
+
### Parameters
|
436
|
+
|
437
|
+
| Name | Type | Description | Notes |
|
438
|
+
| ---- | ---- | ----------- | ----- |
|
439
|
+
| **id** | **String** | | |
|
440
|
+
| **related_resource** | **String** | | |
|
441
|
+
| **tag_segment_op** | [**TagSegmentOp**](TagSegmentOp.md) | | |
|
442
|
+
|
443
|
+
### Return type
|
444
|
+
|
445
|
+
nil (empty response body)
|
446
|
+
|
447
|
+
### Authorization
|
448
|
+
|
449
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
450
|
+
|
451
|
+
### HTTP request headers
|
452
|
+
|
453
|
+
- **Content-Type**: application/json
|
454
|
+
- **Accept**: application/json
|
455
|
+
|
456
|
+
|
457
|
+
## get_tag
|
458
|
+
|
459
|
+
> Hash<String, Object> get_tag(id, opts)
|
460
|
+
|
461
|
+
Get Tag
|
462
|
+
|
463
|
+
Retrieve the tag with the given tag ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Tags Read`
|
464
|
+
|
465
|
+
### Examples
|
466
|
+
|
467
|
+
```ruby
|
468
|
+
require 'time'
|
469
|
+
require 'klaviyo-api-sdk'
|
470
|
+
# setup authorization
|
471
|
+
KlaviyoAPI.configure do |config|
|
472
|
+
# Configure API key authorization: Klaviyo-API-Key
|
473
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
474
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
475
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
476
|
+
end
|
477
|
+
|
478
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
479
|
+
id = 'abcd1234-ef56-gh78-ij90-abcdef123456' # String | The Tag ID
|
480
|
+
opts = {
|
481
|
+
fields_tag: ['name'] # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
482
|
+
}
|
483
|
+
|
484
|
+
begin
|
485
|
+
# Get Tag
|
486
|
+
result = api_instance.get_tag(id, opts)
|
487
|
+
p result
|
488
|
+
rescue KlaviyoAPI::ApiError => e
|
489
|
+
puts "Error when calling TagsApi->get_tag: #{e}"
|
490
|
+
end
|
491
|
+
```
|
492
|
+
|
493
|
+
#### Using the get_tag_with_http_info variant
|
494
|
+
|
495
|
+
This returns an Array which contains the response data, status code and headers.
|
496
|
+
|
497
|
+
> <Array(Hash<String, Object>, Integer, Hash)> get_tag_with_http_info(id, opts)
|
498
|
+
|
499
|
+
```ruby
|
500
|
+
begin
|
501
|
+
# Get Tag
|
502
|
+
data, status_code, headers = api_instance.get_tag_with_http_info(id, opts)
|
503
|
+
p status_code # => 2xx
|
504
|
+
p headers # => { ... }
|
505
|
+
p data # => Hash<String, Object>
|
506
|
+
rescue KlaviyoAPI::ApiError => e
|
507
|
+
puts "Error when calling TagsApi->get_tag_with_http_info: #{e}"
|
508
|
+
end
|
509
|
+
```
|
510
|
+
|
511
|
+
### Parameters
|
512
|
+
|
513
|
+
| Name | Type | Description | Notes |
|
514
|
+
| ---- | ---- | ----------- | ----- |
|
515
|
+
| **id** | **String** | The Tag ID | |
|
516
|
+
| **fields_tag** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
|
517
|
+
|
518
|
+
### Return type
|
519
|
+
|
520
|
+
**Hash<String, Object>**
|
521
|
+
|
522
|
+
### Authorization
|
523
|
+
|
524
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
525
|
+
|
526
|
+
### HTTP request headers
|
527
|
+
|
528
|
+
- **Content-Type**: Not defined
|
529
|
+
- **Accept**: application/json
|
530
|
+
|
531
|
+
|
532
|
+
## get_tag_group
|
533
|
+
|
534
|
+
> Hash<String, Object> get_tag_group(id, opts)
|
535
|
+
|
536
|
+
Get Tag Group
|
537
|
+
|
538
|
+
Retrieve the tag group with the given tag group ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Tags Read`
|
539
|
+
|
540
|
+
### Examples
|
541
|
+
|
542
|
+
```ruby
|
543
|
+
require 'time'
|
544
|
+
require 'klaviyo-api-sdk'
|
545
|
+
# setup authorization
|
546
|
+
KlaviyoAPI.configure do |config|
|
547
|
+
# Configure API key authorization: Klaviyo-API-Key
|
548
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
549
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
550
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
551
|
+
end
|
552
|
+
|
553
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
554
|
+
id = 'zyxw9876-vu54-ts32-rq10-zyxwvu654321' # String | The Tag Group ID
|
555
|
+
opts = {
|
556
|
+
fields_tag_group: ['name'] # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
557
|
+
}
|
558
|
+
|
559
|
+
begin
|
560
|
+
# Get Tag Group
|
561
|
+
result = api_instance.get_tag_group(id, opts)
|
562
|
+
p result
|
563
|
+
rescue KlaviyoAPI::ApiError => e
|
564
|
+
puts "Error when calling TagsApi->get_tag_group: #{e}"
|
565
|
+
end
|
566
|
+
```
|
567
|
+
|
568
|
+
#### Using the get_tag_group_with_http_info variant
|
569
|
+
|
570
|
+
This returns an Array which contains the response data, status code and headers.
|
571
|
+
|
572
|
+
> <Array(Hash<String, Object>, Integer, Hash)> get_tag_group_with_http_info(id, opts)
|
573
|
+
|
574
|
+
```ruby
|
575
|
+
begin
|
576
|
+
# Get Tag Group
|
577
|
+
data, status_code, headers = api_instance.get_tag_group_with_http_info(id, opts)
|
578
|
+
p status_code # => 2xx
|
579
|
+
p headers # => { ... }
|
580
|
+
p data # => Hash<String, Object>
|
581
|
+
rescue KlaviyoAPI::ApiError => e
|
582
|
+
puts "Error when calling TagsApi->get_tag_group_with_http_info: #{e}"
|
583
|
+
end
|
584
|
+
```
|
585
|
+
|
586
|
+
### Parameters
|
587
|
+
|
588
|
+
| Name | Type | Description | Notes |
|
589
|
+
| ---- | ---- | ----------- | ----- |
|
590
|
+
| **id** | **String** | The Tag Group ID | |
|
591
|
+
| **fields_tag_group** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
|
592
|
+
|
593
|
+
### Return type
|
594
|
+
|
595
|
+
**Hash<String, Object>**
|
596
|
+
|
597
|
+
### Authorization
|
598
|
+
|
599
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
600
|
+
|
601
|
+
### HTTP request headers
|
602
|
+
|
603
|
+
- **Content-Type**: Not defined
|
604
|
+
- **Accept**: application/json
|
605
|
+
|
606
|
+
|
607
|
+
## get_tag_group_relationships
|
608
|
+
|
609
|
+
> Hash<String, Object> get_tag_group_relationships(id, related_resource)
|
610
|
+
|
611
|
+
Get Tag Group Relationships
|
612
|
+
|
613
|
+
When `related_resource` is `tags`, returns the tag IDs of all tags inside the given tag group.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Tags Read`
|
614
|
+
|
615
|
+
### Examples
|
616
|
+
|
617
|
+
```ruby
|
618
|
+
require 'time'
|
619
|
+
require 'klaviyo-api-sdk'
|
620
|
+
# setup authorization
|
621
|
+
KlaviyoAPI.configure do |config|
|
622
|
+
# Configure API key authorization: Klaviyo-API-Key
|
623
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
624
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
625
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
626
|
+
end
|
627
|
+
|
628
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
629
|
+
id = 'id_example' # String |
|
630
|
+
related_resource = 'tags' # String |
|
631
|
+
|
632
|
+
begin
|
633
|
+
# Get Tag Group Relationships
|
634
|
+
result = api_instance.get_tag_group_relationships(id, related_resource)
|
635
|
+
p result
|
636
|
+
rescue KlaviyoAPI::ApiError => e
|
637
|
+
puts "Error when calling TagsApi->get_tag_group_relationships: #{e}"
|
638
|
+
end
|
639
|
+
```
|
640
|
+
|
641
|
+
#### Using the get_tag_group_relationships_with_http_info variant
|
642
|
+
|
643
|
+
This returns an Array which contains the response data, status code and headers.
|
644
|
+
|
645
|
+
> <Array(Hash<String, Object>, Integer, Hash)> get_tag_group_relationships_with_http_info(id, related_resource)
|
646
|
+
|
647
|
+
```ruby
|
648
|
+
begin
|
649
|
+
# Get Tag Group Relationships
|
650
|
+
data, status_code, headers = api_instance.get_tag_group_relationships_with_http_info(id, related_resource)
|
651
|
+
p status_code # => 2xx
|
652
|
+
p headers # => { ... }
|
653
|
+
p data # => Hash<String, Object>
|
654
|
+
rescue KlaviyoAPI::ApiError => e
|
655
|
+
puts "Error when calling TagsApi->get_tag_group_relationships_with_http_info: #{e}"
|
656
|
+
end
|
657
|
+
```
|
658
|
+
|
659
|
+
### Parameters
|
660
|
+
|
661
|
+
| Name | Type | Description | Notes |
|
662
|
+
| ---- | ---- | ----------- | ----- |
|
663
|
+
| **id** | **String** | | |
|
664
|
+
| **related_resource** | **String** | | |
|
665
|
+
|
666
|
+
### Return type
|
667
|
+
|
668
|
+
**Hash<String, Object>**
|
669
|
+
|
670
|
+
### Authorization
|
671
|
+
|
672
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
673
|
+
|
674
|
+
### HTTP request headers
|
675
|
+
|
676
|
+
- **Content-Type**: Not defined
|
677
|
+
- **Accept**: application/json
|
678
|
+
|
679
|
+
|
680
|
+
## get_tag_group_tags
|
681
|
+
|
682
|
+
> Hash<String, Object> get_tag_group_tags(id, opts)
|
683
|
+
|
684
|
+
Get Tag Group Tags
|
685
|
+
|
686
|
+
Return the tags for a given tag group ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Tags Read`
|
687
|
+
|
688
|
+
### Examples
|
689
|
+
|
690
|
+
```ruby
|
691
|
+
require 'time'
|
692
|
+
require 'klaviyo-api-sdk'
|
693
|
+
# setup authorization
|
694
|
+
KlaviyoAPI.configure do |config|
|
695
|
+
# Configure API key authorization: Klaviyo-API-Key
|
696
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
697
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
698
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
699
|
+
end
|
700
|
+
|
701
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
702
|
+
id = 'zyxw9876-vu54-ts32-rq10-zyxwvu654321' # String | The Tag Group ID
|
703
|
+
opts = {
|
704
|
+
fields_tag: ['name'] # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
705
|
+
}
|
706
|
+
|
707
|
+
begin
|
708
|
+
# Get Tag Group Tags
|
709
|
+
result = api_instance.get_tag_group_tags(id, opts)
|
710
|
+
p result
|
711
|
+
rescue KlaviyoAPI::ApiError => e
|
712
|
+
puts "Error when calling TagsApi->get_tag_group_tags: #{e}"
|
713
|
+
end
|
714
|
+
```
|
715
|
+
|
716
|
+
#### Using the get_tag_group_tags_with_http_info variant
|
717
|
+
|
718
|
+
This returns an Array which contains the response data, status code and headers.
|
719
|
+
|
720
|
+
> <Array(Hash<String, Object>, Integer, Hash)> get_tag_group_tags_with_http_info(id, opts)
|
721
|
+
|
722
|
+
```ruby
|
723
|
+
begin
|
724
|
+
# Get Tag Group Tags
|
725
|
+
data, status_code, headers = api_instance.get_tag_group_tags_with_http_info(id, opts)
|
726
|
+
p status_code # => 2xx
|
727
|
+
p headers # => { ... }
|
728
|
+
p data # => Hash<String, Object>
|
729
|
+
rescue KlaviyoAPI::ApiError => e
|
730
|
+
puts "Error when calling TagsApi->get_tag_group_tags_with_http_info: #{e}"
|
731
|
+
end
|
732
|
+
```
|
733
|
+
|
734
|
+
### Parameters
|
735
|
+
|
736
|
+
| Name | Type | Description | Notes |
|
737
|
+
| ---- | ---- | ----------- | ----- |
|
738
|
+
| **id** | **String** | The Tag Group ID | |
|
739
|
+
| **fields_tag** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
|
740
|
+
|
741
|
+
### Return type
|
742
|
+
|
743
|
+
**Hash<String, Object>**
|
744
|
+
|
745
|
+
### Authorization
|
746
|
+
|
747
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
748
|
+
|
749
|
+
### HTTP request headers
|
750
|
+
|
751
|
+
- **Content-Type**: Not defined
|
752
|
+
- **Accept**: application/json
|
753
|
+
|
754
|
+
|
755
|
+
## get_tag_groups
|
756
|
+
|
757
|
+
> Hash<String, Object> get_tag_groups(opts)
|
758
|
+
|
759
|
+
Get Tag Groups
|
760
|
+
|
761
|
+
List all tag groups in an account. Every account has one default tag group. Tag groups can be filtered by `name`, `exclusive`, and `default`, and sorted by `name` or `id` in ascending or descending order. Returns a maximum of 25 tag groups per request, which can be paginated with [cursor-based pagination](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#pagination).<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Tags Read`
|
762
|
+
|
763
|
+
### Examples
|
764
|
+
|
765
|
+
```ruby
|
766
|
+
require 'time'
|
767
|
+
require 'klaviyo-api-sdk'
|
768
|
+
# setup authorization
|
769
|
+
KlaviyoAPI.configure do |config|
|
770
|
+
# Configure API key authorization: Klaviyo-API-Key
|
771
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
772
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
773
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
774
|
+
end
|
775
|
+
|
776
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
777
|
+
opts = {
|
778
|
+
fields_tag_group: ['name'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
779
|
+
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>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`exclusive`: `equals`<br>`default`: `equals`
|
780
|
+
page_cursor: 'page_cursor_example', # String | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
781
|
+
sort: 'id' # String | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
|
782
|
+
}
|
783
|
+
|
784
|
+
begin
|
785
|
+
# Get Tag Groups
|
786
|
+
result = api_instance.get_tag_groups(opts)
|
787
|
+
p result
|
788
|
+
rescue KlaviyoAPI::ApiError => e
|
789
|
+
puts "Error when calling TagsApi->get_tag_groups: #{e}"
|
790
|
+
end
|
791
|
+
```
|
792
|
+
|
793
|
+
#### Using the get_tag_groups_with_http_info variant
|
794
|
+
|
795
|
+
This returns an Array which contains the response data, status code and headers.
|
796
|
+
|
797
|
+
> <Array(Hash<String, Object>, Integer, Hash)> get_tag_groups_with_http_info(opts)
|
798
|
+
|
799
|
+
```ruby
|
800
|
+
begin
|
801
|
+
# Get Tag Groups
|
802
|
+
data, status_code, headers = api_instance.get_tag_groups_with_http_info(opts)
|
803
|
+
p status_code # => 2xx
|
804
|
+
p headers # => { ... }
|
805
|
+
p data # => Hash<String, Object>
|
806
|
+
rescue KlaviyoAPI::ApiError => e
|
807
|
+
puts "Error when calling TagsApi->get_tag_groups_with_http_info: #{e}"
|
808
|
+
end
|
809
|
+
```
|
810
|
+
|
811
|
+
### Parameters
|
812
|
+
|
813
|
+
| Name | Type | Description | Notes |
|
814
|
+
| ---- | ---- | ----------- | ----- |
|
815
|
+
| **fields_tag_group** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
|
816
|
+
| **filter** | **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>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`exclusive`: `equals`<br>`default`: `equals` | [optional] |
|
817
|
+
| **page_cursor** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination | [optional] |
|
818
|
+
| **sort** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting | [optional] |
|
819
|
+
|
820
|
+
### Return type
|
821
|
+
|
822
|
+
**Hash<String, Object>**
|
823
|
+
|
824
|
+
### Authorization
|
825
|
+
|
826
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
827
|
+
|
828
|
+
### HTTP request headers
|
829
|
+
|
830
|
+
- **Content-Type**: Not defined
|
831
|
+
- **Accept**: application/json
|
832
|
+
|
833
|
+
|
834
|
+
## get_tag_relationships
|
835
|
+
|
836
|
+
> Hash<String, Object> get_tag_relationships(id, related_resource)
|
837
|
+
|
838
|
+
Get Tag Relationships
|
839
|
+
|
840
|
+
Get the relationships for a tag. If `related_resource` is `tag-group`, the request will return the `tag_group_id` of the tag group to which the tag belongs. If `related_resource` is set to `campaigns`, `flows`, `lists`, or `segments`, the request will return the IDs of all associated resources of that type. The scopes listed below are conditionally required depending on the specified related resource.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Flows Read` `Lists Read` `Segments Read` `Tags Read`
|
841
|
+
|
842
|
+
### Examples
|
843
|
+
|
844
|
+
```ruby
|
845
|
+
require 'time'
|
846
|
+
require 'klaviyo-api-sdk'
|
847
|
+
# setup authorization
|
848
|
+
KlaviyoAPI.configure do |config|
|
849
|
+
# Configure API key authorization: Klaviyo-API-Key
|
850
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
851
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
852
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
853
|
+
end
|
854
|
+
|
855
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
856
|
+
id = 'id_example' # String |
|
857
|
+
related_resource = 'flows' # String |
|
858
|
+
|
859
|
+
begin
|
860
|
+
# Get Tag Relationships
|
861
|
+
result = api_instance.get_tag_relationships(id, related_resource)
|
862
|
+
p result
|
863
|
+
rescue KlaviyoAPI::ApiError => e
|
864
|
+
puts "Error when calling TagsApi->get_tag_relationships: #{e}"
|
865
|
+
end
|
866
|
+
```
|
867
|
+
|
868
|
+
#### Using the get_tag_relationships_with_http_info variant
|
869
|
+
|
870
|
+
This returns an Array which contains the response data, status code and headers.
|
871
|
+
|
872
|
+
> <Array(Hash<String, Object>, Integer, Hash)> get_tag_relationships_with_http_info(id, related_resource)
|
873
|
+
|
874
|
+
```ruby
|
875
|
+
begin
|
876
|
+
# Get Tag Relationships
|
877
|
+
data, status_code, headers = api_instance.get_tag_relationships_with_http_info(id, related_resource)
|
878
|
+
p status_code # => 2xx
|
879
|
+
p headers # => { ... }
|
880
|
+
p data # => Hash<String, Object>
|
881
|
+
rescue KlaviyoAPI::ApiError => e
|
882
|
+
puts "Error when calling TagsApi->get_tag_relationships_with_http_info: #{e}"
|
883
|
+
end
|
884
|
+
```
|
885
|
+
|
886
|
+
### Parameters
|
887
|
+
|
888
|
+
| Name | Type | Description | Notes |
|
889
|
+
| ---- | ---- | ----------- | ----- |
|
890
|
+
| **id** | **String** | | |
|
891
|
+
| **related_resource** | **String** | | |
|
892
|
+
|
893
|
+
### Return type
|
894
|
+
|
895
|
+
**Hash<String, Object>**
|
896
|
+
|
897
|
+
### Authorization
|
898
|
+
|
899
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
900
|
+
|
901
|
+
### HTTP request headers
|
902
|
+
|
903
|
+
- **Content-Type**: Not defined
|
904
|
+
- **Accept**: application/json
|
905
|
+
|
906
|
+
|
907
|
+
## get_tag_tag_group
|
908
|
+
|
909
|
+
> Hash<String, Object> get_tag_tag_group(id, opts)
|
910
|
+
|
911
|
+
Get Tag Tag Group
|
912
|
+
|
913
|
+
Returns the tag group resource for a given tag ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Tags Read`
|
914
|
+
|
915
|
+
### Examples
|
916
|
+
|
917
|
+
```ruby
|
918
|
+
require 'time'
|
919
|
+
require 'klaviyo-api-sdk'
|
920
|
+
# setup authorization
|
921
|
+
KlaviyoAPI.configure do |config|
|
922
|
+
# Configure API key authorization: Klaviyo-API-Key
|
923
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
924
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
925
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
926
|
+
end
|
927
|
+
|
928
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
929
|
+
id = 'abcd1234-ef56-gh78-ij90-abcdef123456' # String | The Tag ID
|
930
|
+
opts = {
|
931
|
+
fields_tag_group: ['name'] # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
932
|
+
}
|
933
|
+
|
934
|
+
begin
|
935
|
+
# Get Tag Tag Group
|
936
|
+
result = api_instance.get_tag_tag_group(id, opts)
|
937
|
+
p result
|
938
|
+
rescue KlaviyoAPI::ApiError => e
|
939
|
+
puts "Error when calling TagsApi->get_tag_tag_group: #{e}"
|
940
|
+
end
|
941
|
+
```
|
942
|
+
|
943
|
+
#### Using the get_tag_tag_group_with_http_info variant
|
944
|
+
|
945
|
+
This returns an Array which contains the response data, status code and headers.
|
946
|
+
|
947
|
+
> <Array(Hash<String, Object>, Integer, Hash)> get_tag_tag_group_with_http_info(id, opts)
|
948
|
+
|
949
|
+
```ruby
|
950
|
+
begin
|
951
|
+
# Get Tag Tag Group
|
952
|
+
data, status_code, headers = api_instance.get_tag_tag_group_with_http_info(id, opts)
|
953
|
+
p status_code # => 2xx
|
954
|
+
p headers # => { ... }
|
955
|
+
p data # => Hash<String, Object>
|
956
|
+
rescue KlaviyoAPI::ApiError => e
|
957
|
+
puts "Error when calling TagsApi->get_tag_tag_group_with_http_info: #{e}"
|
958
|
+
end
|
959
|
+
```
|
960
|
+
|
961
|
+
### Parameters
|
962
|
+
|
963
|
+
| Name | Type | Description | Notes |
|
964
|
+
| ---- | ---- | ----------- | ----- |
|
965
|
+
| **id** | **String** | The Tag ID | |
|
966
|
+
| **fields_tag_group** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
|
967
|
+
|
968
|
+
### Return type
|
969
|
+
|
970
|
+
**Hash<String, Object>**
|
971
|
+
|
972
|
+
### Authorization
|
973
|
+
|
974
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
975
|
+
|
976
|
+
### HTTP request headers
|
977
|
+
|
978
|
+
- **Content-Type**: Not defined
|
979
|
+
- **Accept**: application/json
|
980
|
+
|
981
|
+
|
982
|
+
## get_tags
|
983
|
+
|
984
|
+
> Hash<String, Object> get_tags(opts)
|
985
|
+
|
986
|
+
Get Tags
|
987
|
+
|
988
|
+
List all tags in an account. Tags can be filtered by `name`, and sorted by `name` or `id` in ascending or descending order. Returns a maximum of 50 tags per request, which can be paginated with [cursor-based pagination](https://developers.klaviyo.com/en/v2022-10-17/reference/api_overview#pagination).<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Tags Read`
|
989
|
+
|
990
|
+
### Examples
|
991
|
+
|
992
|
+
```ruby
|
993
|
+
require 'time'
|
994
|
+
require 'klaviyo-api-sdk'
|
995
|
+
# setup authorization
|
996
|
+
KlaviyoAPI.configure do |config|
|
997
|
+
# Configure API key authorization: Klaviyo-API-Key
|
998
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
999
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1000
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
1001
|
+
end
|
1002
|
+
|
1003
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
1004
|
+
opts = {
|
1005
|
+
fields_tag: ['name'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets
|
1006
|
+
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>`name`: `contains`, `ends-with`, `equals`, `starts-with`
|
1007
|
+
page_cursor: 'page_cursor_example', # String | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination
|
1008
|
+
sort: 'id' # String | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting
|
1009
|
+
}
|
1010
|
+
|
1011
|
+
begin
|
1012
|
+
# Get Tags
|
1013
|
+
result = api_instance.get_tags(opts)
|
1014
|
+
p result
|
1015
|
+
rescue KlaviyoAPI::ApiError => e
|
1016
|
+
puts "Error when calling TagsApi->get_tags: #{e}"
|
1017
|
+
end
|
1018
|
+
```
|
1019
|
+
|
1020
|
+
#### Using the get_tags_with_http_info variant
|
1021
|
+
|
1022
|
+
This returns an Array which contains the response data, status code and headers.
|
1023
|
+
|
1024
|
+
> <Array(Hash<String, Object>, Integer, Hash)> get_tags_with_http_info(opts)
|
1025
|
+
|
1026
|
+
```ruby
|
1027
|
+
begin
|
1028
|
+
# Get Tags
|
1029
|
+
data, status_code, headers = api_instance.get_tags_with_http_info(opts)
|
1030
|
+
p status_code # => 2xx
|
1031
|
+
p headers # => { ... }
|
1032
|
+
p data # => Hash<String, Object>
|
1033
|
+
rescue KlaviyoAPI::ApiError => e
|
1034
|
+
puts "Error when calling TagsApi->get_tags_with_http_info: #{e}"
|
1035
|
+
end
|
1036
|
+
```
|
1037
|
+
|
1038
|
+
### Parameters
|
1039
|
+
|
1040
|
+
| Name | Type | Description | Notes |
|
1041
|
+
| ---- | ---- | ----------- | ----- |
|
1042
|
+
| **fields_tag** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sparse-fieldsets | [optional] |
|
1043
|
+
| **filter** | **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>`name`: `contains`, `ends-with`, `equals`, `starts-with` | [optional] |
|
1044
|
+
| **page_cursor** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#pagination | [optional] |
|
1045
|
+
| **sort** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-02-22/reference/api-overview#sorting | [optional] |
|
1046
|
+
|
1047
|
+
### Return type
|
1048
|
+
|
1049
|
+
**Hash<String, Object>**
|
1050
|
+
|
1051
|
+
### Authorization
|
1052
|
+
|
1053
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
1054
|
+
|
1055
|
+
### HTTP request headers
|
1056
|
+
|
1057
|
+
- **Content-Type**: Not defined
|
1058
|
+
- **Accept**: application/json
|
1059
|
+
|
1060
|
+
|
1061
|
+
## update_tag
|
1062
|
+
|
1063
|
+
> Hash<String, Object> update_tag(id, tag_update_query)
|
1064
|
+
|
1065
|
+
Update Tag
|
1066
|
+
|
1067
|
+
Update the tag with the given tag ID. Only a tag's `name` can be changed. A tag cannot be moved from one tag group to another.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Tags Read` `Tags Write`
|
1068
|
+
|
1069
|
+
### Examples
|
1070
|
+
|
1071
|
+
```ruby
|
1072
|
+
require 'time'
|
1073
|
+
require 'klaviyo-api-sdk'
|
1074
|
+
# setup authorization
|
1075
|
+
KlaviyoAPI.configure do |config|
|
1076
|
+
# Configure API key authorization: Klaviyo-API-Key
|
1077
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
1078
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1079
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
1080
|
+
end
|
1081
|
+
|
1082
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
1083
|
+
id = 'abcd1234-ef56-gh78-ij90-abcdef123456' # String | The Tag ID
|
1084
|
+
tag_update_query = KlaviyoAPI::TagUpdateQuery.new({data: KlaviyoAPI::TagUpdateQueryAsSubResource.new({type: 'tag', id: 'abcd1234-ef56-gh78-ij90-abcdef123456', attributes: KlaviyoAPI::TagUpdateQueryAsSubResourceAttributes.new({name: 'My Tag'})})}) # TagUpdateQuery |
|
1085
|
+
|
1086
|
+
begin
|
1087
|
+
# Update Tag
|
1088
|
+
result = api_instance.update_tag(id, tag_update_query)
|
1089
|
+
p result
|
1090
|
+
rescue KlaviyoAPI::ApiError => e
|
1091
|
+
puts "Error when calling TagsApi->update_tag: #{e}"
|
1092
|
+
end
|
1093
|
+
```
|
1094
|
+
|
1095
|
+
#### Using the update_tag_with_http_info variant
|
1096
|
+
|
1097
|
+
This returns an Array which contains the response data, status code and headers.
|
1098
|
+
|
1099
|
+
> <Array(Hash<String, Object>, Integer, Hash)> update_tag_with_http_info(id, tag_update_query)
|
1100
|
+
|
1101
|
+
```ruby
|
1102
|
+
begin
|
1103
|
+
# Update Tag
|
1104
|
+
data, status_code, headers = api_instance.update_tag_with_http_info(id, tag_update_query)
|
1105
|
+
p status_code # => 2xx
|
1106
|
+
p headers # => { ... }
|
1107
|
+
p data # => Hash<String, Object>
|
1108
|
+
rescue KlaviyoAPI::ApiError => e
|
1109
|
+
puts "Error when calling TagsApi->update_tag_with_http_info: #{e}"
|
1110
|
+
end
|
1111
|
+
```
|
1112
|
+
|
1113
|
+
### Parameters
|
1114
|
+
|
1115
|
+
| Name | Type | Description | Notes |
|
1116
|
+
| ---- | ---- | ----------- | ----- |
|
1117
|
+
| **id** | **String** | The Tag ID | |
|
1118
|
+
| **tag_update_query** | [**TagUpdateQuery**](TagUpdateQuery.md) | | |
|
1119
|
+
|
1120
|
+
### Return type
|
1121
|
+
|
1122
|
+
**Hash<String, Object>**
|
1123
|
+
|
1124
|
+
### Authorization
|
1125
|
+
|
1126
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
1127
|
+
|
1128
|
+
### HTTP request headers
|
1129
|
+
|
1130
|
+
- **Content-Type**: application/json
|
1131
|
+
- **Accept**: application/json
|
1132
|
+
|
1133
|
+
|
1134
|
+
## update_tag_group
|
1135
|
+
|
1136
|
+
> Hash<String, Object> update_tag_group(id, tag_group_update_query)
|
1137
|
+
|
1138
|
+
Update Tag Group
|
1139
|
+
|
1140
|
+
Update the tag group with the given tag group ID. Only a tag group's `name` can be changed. A tag group's `exclusive` or `default` value cannot be changed.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `Tags Read` `Tags Write`
|
1141
|
+
|
1142
|
+
### Examples
|
1143
|
+
|
1144
|
+
```ruby
|
1145
|
+
require 'time'
|
1146
|
+
require 'klaviyo-api-sdk'
|
1147
|
+
# setup authorization
|
1148
|
+
KlaviyoAPI.configure do |config|
|
1149
|
+
# Configure API key authorization: Klaviyo-API-Key
|
1150
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
1151
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1152
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
1153
|
+
end
|
1154
|
+
|
1155
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
1156
|
+
id = 'zyxw9876-vu54-ts32-rq10-zyxwvu654321' # String | The Tag Group ID
|
1157
|
+
tag_group_update_query = KlaviyoAPI::TagGroupUpdateQuery.new({data: KlaviyoAPI::TagGroupUpdateQueryAsSubResource.new({type: 'tag-group', id: 'zyxw9876-vu54-ts32-rq10-zyxwvu654321', attributes: KlaviyoAPI::TagGroupUpdateQueryAsSubResourceAttributes.new({name: 'My Tag Group'})})}) # TagGroupUpdateQuery |
|
1158
|
+
|
1159
|
+
begin
|
1160
|
+
# Update Tag Group
|
1161
|
+
result = api_instance.update_tag_group(id, tag_group_update_query)
|
1162
|
+
p result
|
1163
|
+
rescue KlaviyoAPI::ApiError => e
|
1164
|
+
puts "Error when calling TagsApi->update_tag_group: #{e}"
|
1165
|
+
end
|
1166
|
+
```
|
1167
|
+
|
1168
|
+
#### Using the update_tag_group_with_http_info variant
|
1169
|
+
|
1170
|
+
This returns an Array which contains the response data, status code and headers.
|
1171
|
+
|
1172
|
+
> <Array(Hash<String, Object>, Integer, Hash)> update_tag_group_with_http_info(id, tag_group_update_query)
|
1173
|
+
|
1174
|
+
```ruby
|
1175
|
+
begin
|
1176
|
+
# Update Tag Group
|
1177
|
+
data, status_code, headers = api_instance.update_tag_group_with_http_info(id, tag_group_update_query)
|
1178
|
+
p status_code # => 2xx
|
1179
|
+
p headers # => { ... }
|
1180
|
+
p data # => Hash<String, Object>
|
1181
|
+
rescue KlaviyoAPI::ApiError => e
|
1182
|
+
puts "Error when calling TagsApi->update_tag_group_with_http_info: #{e}"
|
1183
|
+
end
|
1184
|
+
```
|
1185
|
+
|
1186
|
+
### Parameters
|
1187
|
+
|
1188
|
+
| Name | Type | Description | Notes |
|
1189
|
+
| ---- | ---- | ----------- | ----- |
|
1190
|
+
| **id** | **String** | The Tag Group ID | |
|
1191
|
+
| **tag_group_update_query** | [**TagGroupUpdateQuery**](TagGroupUpdateQuery.md) | | |
|
1192
|
+
|
1193
|
+
### Return type
|
1194
|
+
|
1195
|
+
**Hash<String, Object>**
|
1196
|
+
|
1197
|
+
### Authorization
|
1198
|
+
|
1199
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
1200
|
+
|
1201
|
+
### HTTP request headers
|
1202
|
+
|
1203
|
+
- **Content-Type**: application/json
|
1204
|
+
- **Accept**: application/json
|
1205
|
+
|