klaviyo-api-sdk 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +9 -0
- data/README.md +205 -175
- data/Rakefile +10 -0
- data/docs/AccountsApi.md +157 -0
- data/docs/AudiencesSubObject.md +20 -0
- data/docs/BackInStockSubscriptionEnum.md +15 -0
- data/docs/CampaignCloneQuery.md +18 -0
- data/docs/CampaignCloneQueryResourceObject.md +20 -0
- data/docs/CampaignCloneQueryResourceObjectAttributes.md +20 -0
- data/docs/CampaignCreateQuery.md +18 -0
- data/docs/CampaignCreateQueryResourceObject.md +20 -0
- data/docs/CampaignCreateQueryResourceObjectAttributes.md +28 -0
- data/docs/CampaignCreateQueryResourceObjectAttributesCampaignMessages.md +18 -0
- data/docs/CampaignCreateQueryResourceObjectAttributesSendOptions.md +49 -0
- data/docs/CampaignCreateQueryResourceObjectAttributesTrackingOptions.md +49 -0
- data/docs/CampaignEnum.md +15 -0
- data/docs/CampaignMessageAssignTemplateQuery.md +18 -0
- data/docs/CampaignMessageAssignTemplateQueryResourceObject.md +22 -0
- data/docs/CampaignMessageAssignTemplateQueryResourceObjectAttributes.md +18 -0
- data/docs/CampaignMessageAssignTemplateQueryResourceObjectRelationships.md +18 -0
- data/docs/CampaignMessageAssignTemplateQueryResourceObjectRelationshipsTemplate.md +18 -0
- data/docs/CampaignMessageAssignTemplateQueryResourceObjectRelationshipsTemplateData.md +20 -0
- data/docs/CampaignMessageCreateQueryResourceObject.md +20 -0
- data/docs/CampaignMessageCreateQueryResourceObjectAttributes.md +24 -0
- data/docs/CampaignMessageCreateQueryResourceObjectAttributesContent.md +49 -0
- data/docs/CampaignMessageEnum.md +15 -0
- data/docs/CampaignMessagePartialUpdateQuery.md +18 -0
- data/docs/CampaignMessagePartialUpdateQueryResourceObject.md +22 -0
- data/docs/CampaignMessagePartialUpdateQueryResourceObjectAttributes.md +22 -0
- data/docs/CampaignPartialUpdateQuery.md +18 -0
- data/docs/CampaignPartialUpdateQueryResourceObject.md +22 -0
- data/docs/CampaignPartialUpdateQueryResourceObjectAttributes.md +26 -0
- data/docs/CampaignRecipientEstimationJobCreateQuery.md +18 -0
- data/docs/CampaignRecipientEstimationJobCreateQueryResourceObject.md +20 -0
- data/docs/CampaignRecipientEstimationJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/CampaignRecipientEstimationJobEnum.md +15 -0
- data/docs/CampaignSendJobCreateQuery.md +18 -0
- data/docs/CampaignSendJobCreateQueryResourceObject.md +20 -0
- data/docs/CampaignSendJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/CampaignSendJobEnum.md +15 -0
- data/docs/CampaignSendJobPartialUpdateQuery.md +18 -0
- data/docs/CampaignSendJobPartialUpdateQueryResourceObject.md +22 -0
- data/docs/CampaignSendJobPartialUpdateQueryResourceObjectAttributes.md +18 -0
- data/docs/CampaignsApi.md +1735 -0
- data/docs/CatalogCategoryBulkCreateJobEnum.md +15 -0
- data/docs/CatalogCategoryBulkDeleteJobEnum.md +15 -0
- data/docs/CatalogCategoryBulkUpdateJobEnum.md +15 -0
- data/docs/CatalogCategoryCreateJobCreateQuery.md +18 -0
- data/docs/CatalogCategoryCreateJobCreateQueryResourceObject.md +20 -0
- data/docs/CatalogCategoryCreateJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/CatalogCategoryCreateJobCreateQueryResourceObjectAttributesCategories.md +18 -0
- data/docs/CatalogCategoryCreateQuery.md +18 -0
- data/docs/CatalogCategoryCreateQueryResourceObject.md +22 -0
- data/docs/CatalogCategoryCreateQueryResourceObjectAttributes.md +24 -0
- data/docs/CatalogCategoryCreateQueryResourceObjectRelationships.md +18 -0
- data/docs/CatalogCategoryCreateQueryResourceObjectRelationshipsItems.md +18 -0
- data/docs/CatalogCategoryDeleteJobCreateQuery.md +18 -0
- data/docs/CatalogCategoryDeleteJobCreateQueryResourceObject.md +20 -0
- data/docs/CatalogCategoryDeleteJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/CatalogCategoryDeleteJobCreateQueryResourceObjectAttributesCategories.md +18 -0
- data/docs/CatalogCategoryDeleteQueryResourceObject.md +20 -0
- data/docs/CatalogCategoryEnum.md +15 -0
- data/docs/CatalogCategoryItemOp.md +18 -0
- data/docs/CatalogCategoryUpdateJobCreateQuery.md +18 -0
- data/docs/CatalogCategoryUpdateJobCreateQueryResourceObject.md +20 -0
- data/docs/CatalogCategoryUpdateJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/CatalogCategoryUpdateJobCreateQueryResourceObjectAttributesCategories.md +18 -0
- data/docs/CatalogCategoryUpdateQuery.md +18 -0
- data/docs/CatalogCategoryUpdateQueryResourceObject.md +24 -0
- data/docs/CatalogCategoryUpdateQueryResourceObjectAttributes.md +18 -0
- data/docs/CatalogItemBulkCreateJobEnum.md +15 -0
- data/docs/CatalogItemBulkDeleteJobEnum.md +15 -0
- data/docs/CatalogItemBulkUpdateJobEnum.md +15 -0
- data/docs/CatalogItemCategoryOp.md +18 -0
- data/docs/CatalogItemCreateJobCreateQuery.md +18 -0
- data/docs/CatalogItemCreateJobCreateQueryResourceObject.md +20 -0
- data/docs/CatalogItemCreateJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/CatalogItemCreateJobCreateQueryResourceObjectAttributesItems.md +18 -0
- data/docs/CatalogItemCreateQuery.md +18 -0
- data/docs/CatalogItemCreateQueryResourceObject.md +22 -0
- data/docs/CatalogItemCreateQueryResourceObjectAttributes.md +40 -0
- data/docs/CatalogItemCreateQueryResourceObjectRelationships.md +18 -0
- data/docs/CatalogItemCreateQueryResourceObjectRelationshipsCategories.md +18 -0
- data/docs/CatalogItemCreateQueryResourceObjectRelationshipsCategoriesDataInner.md +20 -0
- data/docs/CatalogItemDeleteJobCreateQuery.md +18 -0
- data/docs/CatalogItemDeleteJobCreateQueryResourceObject.md +20 -0
- data/docs/CatalogItemDeleteJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/CatalogItemDeleteJobCreateQueryResourceObjectAttributesItems.md +18 -0
- data/docs/CatalogItemDeleteQueryResourceObject.md +20 -0
- data/docs/CatalogItemEnum.md +15 -0
- data/docs/CatalogItemUpdateJobCreateQuery.md +18 -0
- data/docs/CatalogItemUpdateJobCreateQueryResourceObject.md +20 -0
- data/docs/CatalogItemUpdateJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/CatalogItemUpdateJobCreateQueryResourceObjectAttributesItems.md +18 -0
- data/docs/CatalogItemUpdateQuery.md +18 -0
- data/docs/CatalogItemUpdateQueryResourceObject.md +24 -0
- data/docs/CatalogItemUpdateQueryResourceObjectAttributes.md +34 -0
- data/docs/CatalogVariantBulkCreateJobEnum.md +15 -0
- data/docs/CatalogVariantBulkDeleteJobEnum.md +15 -0
- data/docs/CatalogVariantBulkUpdateJobEnum.md +15 -0
- data/docs/CatalogVariantCreateJobCreateQuery.md +18 -0
- data/docs/CatalogVariantCreateJobCreateQueryResourceObject.md +20 -0
- data/docs/CatalogVariantCreateJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/CatalogVariantCreateJobCreateQueryResourceObjectAttributesVariants.md +18 -0
- data/docs/CatalogVariantCreateQuery.md +18 -0
- data/docs/CatalogVariantCreateQueryResourceObject.md +22 -0
- data/docs/CatalogVariantCreateQueryResourceObjectAttributes.md +46 -0
- data/docs/CatalogVariantCreateQueryResourceObjectRelationships.md +18 -0
- data/docs/CatalogVariantCreateQueryResourceObjectRelationshipsItem.md +18 -0
- data/docs/CatalogVariantCreateQueryResourceObjectRelationshipsItemData.md +20 -0
- data/docs/CatalogVariantDeleteJobCreateQuery.md +18 -0
- data/docs/CatalogVariantDeleteJobCreateQueryResourceObject.md +20 -0
- data/docs/CatalogVariantDeleteJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/CatalogVariantDeleteJobCreateQueryResourceObjectAttributesVariants.md +18 -0
- data/docs/CatalogVariantDeleteQueryResourceObject.md +20 -0
- data/docs/CatalogVariantEnum.md +15 -0
- data/docs/CatalogVariantUpdateJobCreateQuery.md +18 -0
- data/docs/CatalogVariantUpdateJobCreateQueryResourceObject.md +20 -0
- data/docs/CatalogVariantUpdateJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/CatalogVariantUpdateJobCreateQueryResourceObjectAttributesVariants.md +18 -0
- data/docs/CatalogVariantUpdateQuery.md +18 -0
- data/docs/CatalogVariantUpdateQueryResourceObject.md +22 -0
- data/docs/CatalogVariantUpdateQueryResourceObjectAttributes.md +40 -0
- data/docs/CatalogsApi.md +4103 -0
- data/docs/DataPrivacyApi.md +78 -0
- data/docs/DataPrivacyCreateDeletionJobQuery.md +18 -0
- data/docs/DataPrivacyCreateDeletionJobQueryResourceObject.md +20 -0
- data/docs/DataPrivacyCreateDeletionJobQueryResourceObjectAttributes.md +18 -0
- data/docs/DataPrivacyCreateDeletionJobQueryResourceObjectAttributesProfile.md +18 -0
- data/docs/DataPrivacyDeletionJobEnum.md +15 -0
- data/docs/DataPrivacyProfileQueryResourceObject.md +22 -0
- data/docs/DataPrivacyProfileQueryResourceObjectAttributes.md +20 -0
- data/docs/DeviceMetadata.md +40 -0
- data/docs/EmailContentSubObject.md +30 -0
- data/docs/EmailSendOptionsSubObject.md +18 -0
- data/docs/EmailTrackingOptionsSubObject.md +24 -0
- data/docs/EventCreateQueryV2.md +18 -0
- data/docs/EventCreateQueryV2ResourceObject.md +20 -0
- data/docs/EventCreateQueryV2ResourceObjectAttributes.md +28 -0
- data/docs/EventCreateQueryV2ResourceObjectAttributesMetric.md +18 -0
- data/docs/EventCreateQueryV2ResourceObjectAttributesProfile.md +18 -0
- data/docs/EventEnum.md +15 -0
- data/docs/EventsApi.md +544 -0
- data/docs/FlowEnum.md +15 -0
- data/docs/FlowUpdateQuery.md +18 -0
- data/docs/FlowUpdateQueryResourceObject.md +22 -0
- data/docs/FlowUpdateQueryResourceObjectAttributes.md +18 -0
- data/docs/FlowsApi.md +1335 -0
- data/docs/GetAccounts4XXResponse.md +18 -0
- data/docs/GetAccounts4XXResponseErrorsInner.md +26 -0
- data/docs/GetAccounts4XXResponseErrorsInnerSource.md +20 -0
- data/docs/ListCreateQuery.md +18 -0
- data/docs/ListCreateQueryResourceObject.md +20 -0
- data/docs/ListCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/ListEnum.md +15 -0
- data/docs/ListMembersAddQuery.md +18 -0
- data/docs/ListMembersAddQueryDataInner.md +20 -0
- data/docs/ListMembersDeleteQuery.md +18 -0
- data/docs/ListPartialUpdateQuery.md +18 -0
- data/docs/ListPartialUpdateQueryResourceObject.md +22 -0
- data/docs/ListsApi.md +842 -0
- data/docs/MetricAggregateEnum.md +15 -0
- data/docs/MetricAggregateQuery.md +18 -0
- data/docs/MetricAggregateQueryResourceObject.md +20 -0
- data/docs/MetricAggregateQueryResourceObjectAttributes.md +36 -0
- data/docs/MetricCreateQueryResourceObject.md +20 -0
- data/docs/MetricCreateQueryResourceObjectAttributes.md +20 -0
- data/docs/MetricEnum.md +15 -0
- data/docs/MetricsApi.md +233 -0
- data/docs/OnsiteProfileCreateQueryResourceObject.md +24 -0
- data/docs/OnsiteProfileCreateQueryResourceObjectAttributes.md +38 -0
- data/docs/OnsiteProfileMeta.md +18 -0
- data/docs/ProfileCreateQuery.md +18 -0
- data/docs/ProfileCreateQueryResourceObject.md +20 -0
- data/docs/ProfileCreateQueryResourceObjectAttributes.md +36 -0
- data/docs/ProfileEnum.md +15 -0
- data/docs/ProfileIdentifierDTOResourceObject.md +22 -0
- data/docs/ProfileIdentifierDTOResourceObjectAttributes.md +24 -0
- data/docs/ProfileLocation.md +34 -0
- data/docs/ProfileLocationLatitude.md +49 -0
- data/docs/ProfileLocationLongitude.md +49 -0
- data/docs/ProfileMeta.md +18 -0
- data/docs/ProfileMetaPatchProperties.md +22 -0
- data/docs/ProfileMetaPatchPropertiesUnset.md +49 -0
- data/docs/ProfilePartialUpdateQuery.md +18 -0
- data/docs/ProfilePartialUpdateQueryResourceObject.md +24 -0
- data/docs/ProfileSubscriptionBulkCreateJobEnum.md +15 -0
- data/docs/ProfileSubscriptionBulkDeleteJobEnum.md +15 -0
- data/docs/ProfileSubscriptionCreateQueryResourceObject.md +22 -0
- data/docs/ProfileSubscriptionCreateQueryResourceObjectAttributes.md +22 -0
- data/docs/ProfileSubscriptionDeleteQueryResourceObject.md +20 -0
- data/docs/ProfileSubscriptionDeleteQueryResourceObjectAttributes.md +20 -0
- data/docs/ProfileSuppressionBulkCreateJobEnum.md +15 -0
- data/docs/ProfileSuppressionBulkDeleteJobEnum.md +15 -0
- data/docs/ProfileSuppressionCreateQueryResourceObject.md +20 -0
- data/docs/ProfileSuppressionCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/ProfileSuppressionDeleteQueryResourceObject.md +20 -0
- data/docs/ProfileSuppressionDeleteQueryResourceObjectAttributes.md +18 -0
- data/docs/ProfileUpsertQueryResourceObject.md +22 -0
- data/docs/ProfileUpsertQueryResourceObjectAttributes.md +40 -0
- data/docs/ProfilesApi.md +972 -0
- data/docs/PushTokenCreateQuery.md +18 -0
- data/docs/PushTokenCreateQueryResourceObject.md +20 -0
- data/docs/PushTokenCreateQueryResourceObjectAttributes.md +30 -0
- data/docs/PushTokenCreateQueryResourceObjectAttributesProfile.md +18 -0
- data/docs/PushTokenEnum.md +15 -0
- data/docs/RenderOptionsSubObject.md +24 -0
- data/docs/SMSContentSubObjectCreate.md +18 -0
- data/docs/SMSSendOptionsSubObject.md +18 -0
- data/docs/SMSTrackingOptionsSubObject.md +20 -0
- data/docs/STOScheduleOptions.md +18 -0
- data/docs/SegmentEnum.md +15 -0
- data/docs/SegmentPartialUpdateQuery.md +18 -0
- data/docs/SegmentPartialUpdateQueryResourceObject.md +22 -0
- data/docs/SegmentPartialUpdateQueryResourceObjectAttributes.md +18 -0
- data/docs/SegmentsApi.md +553 -0
- data/docs/SendStrategySubObject.md +24 -0
- data/docs/ServerBISSubscriptionCreateQuery.md +18 -0
- data/docs/ServerBISSubscriptionCreateQueryResourceObject.md +22 -0
- data/docs/ServerBISSubscriptionCreateQueryResourceObjectAttributes.md +20 -0
- data/docs/ServerBISSubscriptionCreateQueryResourceObjectAttributesProfile.md +18 -0
- data/docs/ServerBISSubscriptionCreateQueryResourceObjectRelationships.md +18 -0
- data/docs/ServerBISSubscriptionCreateQueryResourceObjectRelationshipsVariant.md +18 -0
- data/docs/ServerBISSubscriptionCreateQueryResourceObjectRelationshipsVariantData.md +20 -0
- data/docs/StaticScheduleOptions.md +22 -0
- data/docs/SubscriptionChannels.md +20 -0
- data/docs/SubscriptionCreateJobCreateQuery.md +18 -0
- data/docs/SubscriptionCreateJobCreateQueryResourceObject.md +22 -0
- data/docs/SubscriptionCreateJobCreateQueryResourceObjectAttributes.md +20 -0
- data/docs/SubscriptionCreateJobCreateQueryResourceObjectAttributesProfiles.md +18 -0
- data/docs/SubscriptionCreateJobCreateQueryResourceObjectRelationships.md +18 -0
- data/docs/SubscriptionCreateJobCreateQueryResourceObjectRelationshipsList.md +18 -0
- data/docs/SubscriptionCreateJobCreateQueryResourceObjectRelationshipsListData.md +20 -0
- data/docs/SubscriptionDeleteJobCreateQuery.md +18 -0
- data/docs/SubscriptionDeleteJobCreateQueryResourceObject.md +22 -0
- data/docs/SubscriptionDeleteJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/SubscriptionDeleteJobCreateQueryResourceObjectAttributesProfiles.md +18 -0
- data/docs/SuppressionCreateJobCreateQuery.md +18 -0
- data/docs/SuppressionCreateJobCreateQueryResourceObject.md +20 -0
- data/docs/SuppressionCreateJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/SuppressionCreateJobCreateQueryResourceObjectAttributesProfiles.md +18 -0
- data/docs/SuppressionDeleteJobCreateQuery.md +18 -0
- data/docs/SuppressionDeleteJobCreateQueryResourceObject.md +20 -0
- data/docs/SuppressionDeleteJobCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/SuppressionDeleteJobCreateQueryResourceObjectAttributesProfiles.md +18 -0
- data/docs/TagCampaignOp.md +18 -0
- data/docs/TagCampaignOpDataInner.md +20 -0
- data/docs/TagCreateQuery.md +18 -0
- data/docs/TagCreateQueryResourceObject.md +22 -0
- data/docs/TagCreateQueryResourceObjectAttributes.md +18 -0
- data/docs/TagCreateQueryResourceObjectRelationships.md +18 -0
- data/docs/TagCreateQueryResourceObjectRelationshipsTagGroup.md +18 -0
- data/docs/TagCreateQueryResourceObjectRelationshipsTagGroupData.md +20 -0
- data/docs/TagEnum.md +15 -0
- data/docs/TagFlowOp.md +18 -0
- data/docs/TagFlowOpDataInner.md +20 -0
- data/docs/TagGroupCreateQuery.md +18 -0
- data/docs/TagGroupCreateQueryResourceObject.md +20 -0
- data/docs/TagGroupCreateQueryResourceObjectAttributes.md +20 -0
- data/docs/TagGroupEnum.md +15 -0
- data/docs/TagGroupUpdateQuery.md +18 -0
- data/docs/TagGroupUpdateQueryResourceObject.md +22 -0
- data/docs/TagGroupUpdateQueryResourceObjectAttributes.md +20 -0
- data/docs/TagListOp.md +18 -0
- data/docs/TagListOpDataInner.md +20 -0
- data/docs/TagSegmentOp.md +18 -0
- data/docs/TagSegmentOpDataInner.md +20 -0
- data/docs/TagUpdateQuery.md +18 -0
- data/docs/TagUpdateQueryResourceObject.md +22 -0
- data/docs/TagsApi.md +1929 -0
- data/docs/TemplateCloneQuery.md +18 -0
- data/docs/TemplateCloneQueryResourceObject.md +20 -0
- data/docs/TemplateCloneQueryResourceObjectAttributes.md +20 -0
- data/docs/TemplateCreateQuery.md +18 -0
- data/docs/TemplateCreateQueryResourceObject.md +20 -0
- data/docs/TemplateCreateQueryResourceObjectAttributes.md +30 -0
- data/docs/TemplateEnum.md +15 -0
- data/docs/TemplateRenderQuery.md +18 -0
- data/docs/TemplateRenderQueryResourceObject.md +20 -0
- data/docs/TemplateRenderQueryResourceObjectAttributes.md +20 -0
- data/docs/TemplateUpdateQuery.md +18 -0
- data/docs/TemplateUpdateQueryResourceObject.md +22 -0
- data/docs/TemplateUpdateQueryResourceObjectAttributes.md +28 -0
- data/docs/TemplatesApi.md +524 -0
- data/docs/ThrottledScheduleOptions.md +20 -0
- data/docs/UTMParamsSubObject.md +20 -0
- data/git_push.sh +57 -0
- data/klaviyo-api-sdk.gemspec +2 -2
- data/lib/klaviyo-api-sdk/api/accounts_api.rb +9 -9
- data/lib/klaviyo-api-sdk/api/campaigns_api.rb +85 -85
- data/lib/klaviyo-api-sdk/api/catalogs_api.rb +309 -309
- data/lib/klaviyo-api-sdk/api/data_privacy_api.rb +4 -4
- data/lib/klaviyo-api-sdk/api/events_api.rb +40 -40
- data/lib/klaviyo-api-sdk/api/flows_api.rb +235 -91
- data/lib/klaviyo-api-sdk/api/lists_api.rb +48 -48
- data/lib/klaviyo-api-sdk/api/metrics_api.rb +14 -14
- data/lib/klaviyo-api-sdk/api/profiles_api.rb +119 -49
- data/lib/klaviyo-api-sdk/api/segments_api.rb +40 -40
- data/lib/klaviyo-api-sdk/api/tags_api.rb +89 -89
- data/lib/klaviyo-api-sdk/api/templates_api.rb +24 -24
- data/lib/klaviyo-api-sdk/api_client.rb +2 -2
- data/lib/klaviyo-api-sdk/api_error.rb +1 -1
- data/lib/klaviyo-api-sdk/configuration.rb +1 -1
- data/lib/klaviyo-api-sdk/models/audiences_sub_object.rb +1 -1
- data/lib/klaviyo-api-sdk/models/back_in_stock_subscription_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/campaign_clone_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/campaign_clone_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/campaign_clone_query_resource_object_attributes.rb +15 -15
- data/lib/klaviyo-api-sdk/models/campaign_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object_attributes.rb +28 -28
- data/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object_attributes_campaign_messages.rb +1 -1
- data/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object_attributes_send_options.rb +1 -1
- data/lib/klaviyo-api-sdk/models/campaign_create_query_resource_object_attributes_tracking_options.rb +1 -1
- data/lib/klaviyo-api-sdk/models/campaign_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object_relationships.rb +1 -1
- data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object_relationships_template.rb +1 -1
- data/lib/klaviyo-api-sdk/models/campaign_message_assign_template_query_resource_object_relationships_template_data.rb +2 -36
- data/lib/klaviyo-api-sdk/models/campaign_message_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/campaign_message_create_query_resource_object_attributes.rb +23 -23
- data/lib/klaviyo-api-sdk/models/campaign_message_create_query_resource_object_attributes_content.rb +1 -1
- data/lib/klaviyo-api-sdk/models/campaign_message_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/campaign_message_partial_update_query_resource_object_attributes.rb +15 -15
- data/lib/klaviyo-api-sdk/models/campaign_partial_update_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/campaign_partial_update_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/campaign_partial_update_query_resource_object_attributes.rb +27 -27
- data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_create_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/campaign_recipient_estimation_job_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/campaign_send_job_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/campaign_send_job_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/campaign_send_job_create_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/campaign_send_job_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/campaign_send_job_partial_update_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_category_bulk_create_job_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_category_bulk_delete_job_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_category_bulk_update_job_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_category_create_job_create_query_resource_object_attributes_categories.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_category_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/catalog_category_create_query_resource_object_attributes.rb +17 -17
- data/lib/klaviyo-api-sdk/models/{catalog_category_update_query_resource_object_relationships.rb → catalog_category_create_query_resource_object_relationships.rb} +5 -5
- data/lib/klaviyo-api-sdk/models/{catalog_category_update_query_resource_object_relationships_items.rb → catalog_category_create_query_resource_object_relationships_items.rb} +5 -5
- data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_category_delete_job_create_query_resource_object_attributes_categories.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_category_delete_query_resource_object.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_category_enum.rb +1 -1
- 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 +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_category_update_job_create_query_resource_object_attributes_categories.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_category_update_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_category_update_query_resource_object.rb +28 -28
- data/lib/klaviyo-api-sdk/models/catalog_category_update_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_item_bulk_create_job_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_item_bulk_delete_job_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_item_bulk_update_job_enum.rb +1 -1
- 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 +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_item_create_job_create_query_resource_object_attributes_items.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_attributes.rb +72 -72
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_relationships.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_relationships_categories.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_item_create_query_resource_object_relationships_categories_data_inner.rb +238 -0
- data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_item_delete_job_create_query_resource_object_attributes_items.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_item_delete_query_resource_object.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_item_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_item_update_job_create_query_resource_object_attributes_items.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_item_update_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_item_update_query_resource_object.rb +28 -28
- data/lib/klaviyo-api-sdk/models/catalog_item_update_query_resource_object_attributes.rb +43 -43
- data/lib/klaviyo-api-sdk/models/catalog_variant_bulk_create_job_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_variant_bulk_delete_job_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_variant_bulk_update_job_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_job_create_query_resource_object_attributes_variants.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_attributes.rb +116 -116
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_relationships.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_relationships_item.rb +2 -2
- data/lib/klaviyo-api-sdk/models/catalog_variant_create_query_resource_object_relationships_item_data.rb +238 -0
- data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_variant_delete_job_create_query_resource_object_attributes_variants.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_variant_delete_query_resource_object.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_variant_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_job_create_query_resource_object_attributes_variants.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/catalog_variant_update_query_resource_object_attributes.rb +58 -58
- data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/data_privacy_create_deletion_job_query_resource_object_attributes_profile.rb +1 -1
- data/lib/klaviyo-api-sdk/models/data_privacy_deletion_job_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/data_privacy_profile_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/data_privacy_profile_query_resource_object_attributes.rb +15 -15
- data/lib/klaviyo-api-sdk/models/{catalog_item_category_op_data_inner.rb → device_metadata.rb} +151 -35
- data/lib/klaviyo-api-sdk/models/email_content_sub_object.rb +39 -9
- data/lib/klaviyo-api-sdk/models/email_send_options_sub_object.rb +1 -1
- data/lib/klaviyo-api-sdk/models/email_tracking_options_sub_object.rb +22 -22
- data/lib/klaviyo-api-sdk/models/event_create_query_v2.rb +1 -1
- data/lib/klaviyo-api-sdk/models/event_create_query_v2_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/event_create_query_v2_resource_object_attributes.rb +41 -41
- data/lib/klaviyo-api-sdk/models/event_create_query_v2_resource_object_attributes_metric.rb +1 -1
- data/lib/klaviyo-api-sdk/models/event_create_query_v2_resource_object_attributes_profile.rb +1 -1
- data/lib/klaviyo-api-sdk/models/event_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/flow_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/flow_update_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/flow_update_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/flow_update_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/{get_create_variants_jobs5_xx_response.rb → get_accounts4_xx_response.rb} +5 -5
- data/lib/klaviyo-api-sdk/models/{get_create_variants_jobs5_xx_response_errors_inner.rb → get_accounts4_xx_response_errors_inner.rb} +40 -40
- data/lib/klaviyo-api-sdk/models/{get_create_variants_jobs5_xx_response_errors_inner_source.rb → get_accounts4_xx_response_errors_inner_source.rb} +17 -17
- data/lib/klaviyo-api-sdk/models/list_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/list_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/list_create_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/list_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/list_members_add_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/list_members_add_query_data_inner.rb +2 -36
- data/lib/klaviyo-api-sdk/models/list_members_delete_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/list_partial_update_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/list_partial_update_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/metric_aggregate_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/metric_aggregate_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/metric_aggregate_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/metric_aggregate_query_resource_object_attributes.rb +63 -63
- data/lib/klaviyo-api-sdk/models/metric_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/metric_create_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/metric_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/onsite_profile_create_query_resource_object.rb +28 -28
- data/lib/klaviyo-api-sdk/models/onsite_profile_create_query_resource_object_attributes.rb +45 -55
- data/lib/klaviyo-api-sdk/models/onsite_profile_meta.rb +1 -1
- data/lib/klaviyo-api-sdk/models/profile_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/profile_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/profile_create_query_resource_object_attributes.rb +39 -39
- data/lib/klaviyo-api-sdk/models/profile_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/profile_identifier_dto_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/profile_identifier_dto_resource_object_attributes.rb +12 -12
- data/lib/klaviyo-api-sdk/models/profile_location.rb +38 -38
- data/lib/klaviyo-api-sdk/models/profile_location_latitude.rb +1 -1
- data/lib/klaviyo-api-sdk/models/profile_location_longitude.rb +1 -1
- data/lib/klaviyo-api-sdk/models/profile_meta.rb +1 -1
- data/lib/klaviyo-api-sdk/models/profile_meta_patch_properties.rb +15 -15
- data/lib/klaviyo-api-sdk/models/profile_meta_patch_properties_unset.rb +1 -1
- data/lib/klaviyo-api-sdk/models/profile_partial_update_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/profile_partial_update_query_resource_object.rb +28 -28
- data/lib/klaviyo-api-sdk/models/profile_subscription_bulk_create_job_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/profile_subscription_bulk_delete_job_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/profile_subscription_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/profile_subscription_create_query_resource_object_attributes.rb +12 -12
- data/lib/klaviyo-api-sdk/models/profile_subscription_delete_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/profile_subscription_delete_query_resource_object_attributes.rb +15 -15
- data/lib/klaviyo-api-sdk/models/profile_suppression_bulk_create_job_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/profile_suppression_bulk_delete_job_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/profile_suppression_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/profile_suppression_create_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/profile_suppression_delete_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/profile_suppression_delete_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/profile_upsert_query_resource_object.rb +248 -0
- data/lib/klaviyo-api-sdk/models/{profile_partial_update_query_resource_object_attributes.rb → profile_upsert_query_resource_object_attributes.rb} +55 -45
- data/lib/klaviyo-api-sdk/models/push_token_create_query.rb +224 -0
- data/lib/klaviyo-api-sdk/models/push_token_create_query_resource_object.rb +238 -0
- data/lib/klaviyo-api-sdk/models/{subscription_delete_job_create_query_resource_object_relationships_list_data.rb → push_token_create_query_resource_object_attributes.rb} +131 -31
- data/lib/klaviyo-api-sdk/models/push_token_create_query_resource_object_attributes_profile.rb +225 -0
- data/lib/klaviyo-api-sdk/models/push_token_enum.rb +36 -0
- data/lib/klaviyo-api-sdk/models/render_options_sub_object.rb +16 -25
- data/lib/klaviyo-api-sdk/models/segment_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/segment_partial_update_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/segment_partial_update_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/segment_partial_update_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/send_strategy_sub_object.rb +17 -17
- data/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_attributes_profile.rb +1 -1
- data/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_relationships.rb +1 -1
- data/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_relationships_variant.rb +1 -1
- data/lib/klaviyo-api-sdk/models/server_bis_subscription_create_query_resource_object_relationships_variant_data.rb +2 -36
- data/lib/klaviyo-api-sdk/models/sms_content_sub_object_create.rb +1 -1
- data/lib/klaviyo-api-sdk/models/sms_send_options_sub_object.rb +1 -1
- data/lib/klaviyo-api-sdk/models/sms_tracking_options_sub_object.rb +15 -15
- data/lib/klaviyo-api-sdk/models/static_schedule_options.rb +15 -15
- data/lib/klaviyo-api-sdk/models/sto_schedule_options.rb +1 -1
- data/lib/klaviyo-api-sdk/models/subscription_channels.rb +17 -17
- data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_attributes.rb +14 -14
- data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_attributes_profiles.rb +1 -1
- data/lib/klaviyo-api-sdk/models/{subscription_delete_job_create_query_resource_object_relationships.rb → subscription_create_job_create_query_resource_object_relationships.rb} +5 -5
- data/lib/klaviyo-api-sdk/models/{subscription_delete_job_create_query_resource_object_relationships_list.rb → subscription_create_job_create_query_resource_object_relationships_list.rb} +5 -5
- data/lib/klaviyo-api-sdk/models/subscription_create_job_create_query_resource_object_relationships_list_data.rb +238 -0
- data/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/subscription_delete_job_create_query_resource_object_attributes_profiles.rb +1 -1
- data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/suppression_create_job_create_query_resource_object_attributes_profiles.rb +1 -1
- data/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/suppression_delete_job_create_query_resource_object_attributes_profiles.rb +1 -1
- data/lib/klaviyo-api-sdk/models/tag_campaign_op.rb +1 -1
- data/lib/klaviyo-api-sdk/models/tag_campaign_op_data_inner.rb +2 -36
- data/lib/klaviyo-api-sdk/models/tag_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/tag_create_query_resource_object.rb +20 -20
- data/lib/klaviyo-api-sdk/models/{tag_update_query_resource_object_attributes.rb → tag_create_query_resource_object_attributes.rb} +4 -4
- data/lib/klaviyo-api-sdk/models/tag_create_query_resource_object_relationships.rb +1 -1
- data/lib/klaviyo-api-sdk/models/tag_create_query_resource_object_relationships_tag_group.rb +1 -1
- data/lib/klaviyo-api-sdk/models/tag_create_query_resource_object_relationships_tag_group_data.rb +2 -36
- data/lib/klaviyo-api-sdk/models/tag_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/tag_flow_op.rb +1 -1
- data/lib/klaviyo-api-sdk/models/tag_flow_op_data_inner.rb +2 -36
- data/lib/klaviyo-api-sdk/models/tag_group_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/tag_group_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/tag_group_create_query_resource_object_attributes.rb +14 -14
- data/lib/klaviyo-api-sdk/models/tag_group_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/tag_group_update_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/tag_group_update_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/tag_group_update_query_resource_object_attributes.rb +14 -14
- data/lib/klaviyo-api-sdk/models/tag_list_op.rb +1 -1
- data/lib/klaviyo-api-sdk/models/tag_list_op_data_inner.rb +2 -36
- data/lib/klaviyo-api-sdk/models/tag_segment_op.rb +1 -1
- data/lib/klaviyo-api-sdk/models/tag_segment_op_data_inner.rb +2 -36
- data/lib/klaviyo-api-sdk/models/tag_update_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/tag_update_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/template_clone_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/template_clone_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/template_clone_query_resource_object_attributes.rb +1 -1
- data/lib/klaviyo-api-sdk/models/template_create_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/template_create_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/template_create_query_resource_object_attributes.rb +25 -25
- data/lib/klaviyo-api-sdk/models/template_enum.rb +1 -1
- data/lib/klaviyo-api-sdk/models/template_render_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/template_render_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/template_render_query_resource_object_attributes.rb +2 -2
- data/lib/klaviyo-api-sdk/models/template_update_query.rb +1 -1
- data/lib/klaviyo-api-sdk/models/template_update_query_resource_object.rb +19 -19
- data/lib/klaviyo-api-sdk/models/template_update_query_resource_object_attributes.rb +16 -16
- data/lib/klaviyo-api-sdk/models/throttled_schedule_options.rb +20 -20
- data/lib/klaviyo-api-sdk/models/utm_params_sub_object.rb +1 -1
- data/lib/klaviyo-api-sdk/version.rb +1 -1
- data/lib/klaviyo-api-sdk.rb +20 -13
- data/spec/api/accounts_api_spec.rb +60 -0
- data/spec/api/campaigns_api_spec.rb +338 -0
- data/spec/api/catalogs_api_spec.rb +763 -0
- data/spec/api/data_privacy_api_spec.rb +47 -0
- data/spec/api/events_api_spec.rb +132 -0
- data/spec/api/flows_api_spec.rb +279 -0
- data/spec/api/lists_api_spec.rb +185 -0
- data/spec/api/metrics_api_spec.rb +74 -0
- data/spec/api/profiles_api_spec.rb +204 -0
- data/spec/api/segments_api_spec.rb +135 -0
- data/spec/api/tags_api_spec.rb +371 -0
- data/spec/api/templates_api_spec.rb +124 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/audiences_sub_object_spec.rb +40 -0
- data/spec/models/back_in_stock_subscription_enum_spec.rb +28 -0
- data/spec/models/campaign_clone_query_resource_object_attributes_spec.rb +40 -0
- data/spec/models/campaign_clone_query_resource_object_spec.rb +40 -0
- data/spec/models/campaign_clone_query_spec.rb +34 -0
- data/spec/models/campaign_create_query_resource_object_attributes_campaign_messages_spec.rb +34 -0
- data/spec/models/campaign_create_query_resource_object_attributes_send_options_spec.rb +31 -0
- data/spec/models/campaign_create_query_resource_object_attributes_spec.rb +64 -0
- data/spec/models/campaign_create_query_resource_object_attributes_tracking_options_spec.rb +31 -0
- data/spec/models/campaign_create_query_resource_object_spec.rb +40 -0
- data/spec/models/campaign_create_query_spec.rb +34 -0
- data/spec/models/campaign_enum_spec.rb +28 -0
- data/spec/models/campaign_message_assign_template_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/campaign_message_assign_template_query_resource_object_relationships_spec.rb +34 -0
- data/spec/models/campaign_message_assign_template_query_resource_object_relationships_template_data_spec.rb +40 -0
- data/spec/models/campaign_message_assign_template_query_resource_object_relationships_template_spec.rb +34 -0
- data/spec/models/campaign_message_assign_template_query_resource_object_spec.rb +46 -0
- data/spec/models/campaign_message_assign_template_query_spec.rb +34 -0
- data/spec/models/campaign_message_create_query_resource_object_attributes_content_spec.rb +31 -0
- data/spec/models/campaign_message_create_query_resource_object_attributes_spec.rb +52 -0
- data/spec/models/campaign_message_create_query_resource_object_spec.rb +40 -0
- data/spec/models/campaign_message_enum_spec.rb +28 -0
- data/spec/models/campaign_message_partial_update_query_resource_object_attributes_spec.rb +46 -0
- data/spec/models/campaign_message_partial_update_query_resource_object_spec.rb +46 -0
- data/spec/models/campaign_message_partial_update_query_spec.rb +34 -0
- data/spec/models/campaign_partial_update_query_resource_object_attributes_spec.rb +58 -0
- data/spec/models/campaign_partial_update_query_resource_object_spec.rb +46 -0
- data/spec/models/campaign_partial_update_query_spec.rb +34 -0
- data/spec/models/campaign_recipient_estimation_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/campaign_recipient_estimation_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/campaign_recipient_estimation_job_create_query_spec.rb +34 -0
- data/spec/models/campaign_recipient_estimation_job_enum_spec.rb +28 -0
- data/spec/models/campaign_send_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/campaign_send_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/campaign_send_job_create_query_spec.rb +34 -0
- data/spec/models/campaign_send_job_enum_spec.rb +28 -0
- data/spec/models/campaign_send_job_partial_update_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/campaign_send_job_partial_update_query_resource_object_spec.rb +46 -0
- data/spec/models/campaign_send_job_partial_update_query_spec.rb +34 -0
- data/spec/models/catalog_category_bulk_create_job_enum_spec.rb +28 -0
- data/spec/models/catalog_category_bulk_delete_job_enum_spec.rb +28 -0
- data/spec/models/catalog_category_bulk_update_job_enum_spec.rb +28 -0
- data/spec/models/catalog_category_create_job_create_query_resource_object_attributes_categories_spec.rb +34 -0
- data/spec/models/catalog_category_create_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/catalog_category_create_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/catalog_category_create_job_create_query_spec.rb +34 -0
- data/spec/models/catalog_category_create_query_resource_object_attributes_spec.rb +56 -0
- data/spec/models/catalog_category_create_query_resource_object_relationships_items_spec.rb +34 -0
- data/spec/models/catalog_category_create_query_resource_object_relationships_spec.rb +34 -0
- data/spec/models/catalog_category_create_query_resource_object_spec.rb +46 -0
- data/spec/models/catalog_category_create_query_spec.rb +34 -0
- data/spec/models/catalog_category_delete_job_create_query_resource_object_attributes_categories_spec.rb +34 -0
- data/spec/models/catalog_category_delete_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/catalog_category_delete_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/catalog_category_delete_job_create_query_spec.rb +34 -0
- data/spec/models/catalog_category_delete_query_resource_object_spec.rb +40 -0
- data/spec/models/catalog_category_enum_spec.rb +28 -0
- data/spec/models/catalog_category_item_op_spec.rb +34 -0
- data/spec/models/catalog_category_update_job_create_query_resource_object_attributes_categories_spec.rb +34 -0
- data/spec/models/catalog_category_update_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/catalog_category_update_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/catalog_category_update_job_create_query_spec.rb +34 -0
- data/spec/models/catalog_category_update_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/catalog_category_update_query_resource_object_spec.rb +52 -0
- data/spec/models/catalog_category_update_query_spec.rb +34 -0
- data/spec/models/catalog_item_bulk_create_job_enum_spec.rb +28 -0
- data/spec/models/catalog_item_bulk_delete_job_enum_spec.rb +28 -0
- data/spec/models/catalog_item_bulk_update_job_enum_spec.rb +28 -0
- data/spec/models/catalog_item_category_op_spec.rb +34 -0
- data/spec/models/catalog_item_create_job_create_query_resource_object_attributes_items_spec.rb +34 -0
- data/spec/models/catalog_item_create_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/catalog_item_create_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/catalog_item_create_job_create_query_spec.rb +34 -0
- data/spec/models/catalog_item_create_query_resource_object_attributes_spec.rb +104 -0
- data/spec/models/catalog_item_create_query_resource_object_relationships_categories_data_inner_spec.rb +40 -0
- data/spec/models/catalog_item_create_query_resource_object_relationships_categories_spec.rb +34 -0
- data/spec/models/catalog_item_create_query_resource_object_relationships_spec.rb +34 -0
- data/spec/models/catalog_item_create_query_resource_object_spec.rb +46 -0
- data/spec/models/catalog_item_create_query_spec.rb +34 -0
- data/spec/models/catalog_item_delete_job_create_query_resource_object_attributes_items_spec.rb +34 -0
- data/spec/models/catalog_item_delete_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/catalog_item_delete_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/catalog_item_delete_job_create_query_spec.rb +34 -0
- data/spec/models/catalog_item_delete_query_resource_object_spec.rb +40 -0
- data/spec/models/catalog_item_enum_spec.rb +28 -0
- data/spec/models/catalog_item_update_job_create_query_resource_object_attributes_items_spec.rb +34 -0
- data/spec/models/catalog_item_update_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/catalog_item_update_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/catalog_item_update_job_create_query_spec.rb +34 -0
- data/spec/models/catalog_item_update_query_resource_object_attributes_spec.rb +82 -0
- data/spec/models/catalog_item_update_query_resource_object_spec.rb +52 -0
- data/spec/models/catalog_item_update_query_spec.rb +34 -0
- data/spec/models/catalog_variant_bulk_create_job_enum_spec.rb +28 -0
- data/spec/models/catalog_variant_bulk_delete_job_enum_spec.rb +28 -0
- data/spec/models/catalog_variant_bulk_update_job_enum_spec.rb +28 -0
- data/spec/models/catalog_variant_create_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/catalog_variant_create_job_create_query_resource_object_attributes_variants_spec.rb +34 -0
- data/spec/models/catalog_variant_create_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/catalog_variant_create_job_create_query_spec.rb +34 -0
- data/spec/models/catalog_variant_create_query_resource_object_attributes_spec.rb +126 -0
- data/spec/models/catalog_variant_create_query_resource_object_relationships_item_data_spec.rb +40 -0
- data/spec/models/catalog_variant_create_query_resource_object_relationships_item_spec.rb +34 -0
- data/spec/models/catalog_variant_create_query_resource_object_relationships_spec.rb +34 -0
- data/spec/models/catalog_variant_create_query_resource_object_spec.rb +46 -0
- data/spec/models/catalog_variant_create_query_spec.rb +34 -0
- data/spec/models/catalog_variant_delete_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/catalog_variant_delete_job_create_query_resource_object_attributes_variants_spec.rb +34 -0
- data/spec/models/catalog_variant_delete_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/catalog_variant_delete_job_create_query_spec.rb +34 -0
- data/spec/models/catalog_variant_delete_query_resource_object_spec.rb +40 -0
- data/spec/models/catalog_variant_enum_spec.rb +28 -0
- data/spec/models/catalog_variant_update_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/catalog_variant_update_job_create_query_resource_object_attributes_variants_spec.rb +34 -0
- data/spec/models/catalog_variant_update_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/catalog_variant_update_job_create_query_spec.rb +34 -0
- data/spec/models/catalog_variant_update_query_resource_object_attributes_spec.rb +104 -0
- data/spec/models/catalog_variant_update_query_resource_object_spec.rb +46 -0
- data/spec/models/catalog_variant_update_query_spec.rb +34 -0
- data/spec/models/data_privacy_create_deletion_job_query_resource_object_attributes_profile_spec.rb +34 -0
- data/spec/models/data_privacy_create_deletion_job_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/data_privacy_create_deletion_job_query_resource_object_spec.rb +40 -0
- data/spec/models/data_privacy_create_deletion_job_query_spec.rb +34 -0
- data/spec/models/data_privacy_deletion_job_enum_spec.rb +28 -0
- data/spec/models/data_privacy_profile_query_resource_object_attributes_spec.rb +40 -0
- data/spec/models/data_privacy_profile_query_resource_object_spec.rb +46 -0
- data/spec/models/device_metadata_spec.rb +112 -0
- data/spec/models/email_content_sub_object_spec.rb +70 -0
- data/spec/models/email_send_options_sub_object_spec.rb +34 -0
- data/spec/models/email_tracking_options_sub_object_spec.rb +52 -0
- data/spec/models/event_create_query_v2_resource_object_attributes_metric_spec.rb +34 -0
- data/spec/models/event_create_query_v2_resource_object_attributes_profile_spec.rb +34 -0
- data/spec/models/event_create_query_v2_resource_object_attributes_spec.rb +64 -0
- data/spec/models/event_create_query_v2_resource_object_spec.rb +40 -0
- data/spec/models/event_create_query_v2_spec.rb +34 -0
- data/spec/models/event_enum_spec.rb +28 -0
- data/spec/models/flow_enum_spec.rb +28 -0
- data/spec/models/flow_update_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/flow_update_query_resource_object_spec.rb +46 -0
- data/spec/models/flow_update_query_spec.rb +34 -0
- data/spec/models/get_accounts4_xx_response_errors_inner_source_spec.rb +40 -0
- data/spec/models/get_accounts4_xx_response_errors_inner_spec.rb +58 -0
- data/spec/models/get_accounts4_xx_response_spec.rb +34 -0
- data/spec/models/list_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/list_create_query_resource_object_spec.rb +40 -0
- data/spec/models/list_create_query_spec.rb +34 -0
- data/spec/models/list_enum_spec.rb +28 -0
- data/spec/models/list_members_add_query_data_inner_spec.rb +40 -0
- data/spec/models/list_members_add_query_spec.rb +34 -0
- data/spec/models/list_members_delete_query_spec.rb +34 -0
- data/spec/models/list_partial_update_query_resource_object_spec.rb +46 -0
- data/spec/models/list_partial_update_query_spec.rb +34 -0
- data/spec/models/metric_aggregate_enum_spec.rb +28 -0
- data/spec/models/metric_aggregate_query_resource_object_attributes_spec.rb +104 -0
- data/spec/models/metric_aggregate_query_resource_object_spec.rb +40 -0
- data/spec/models/metric_aggregate_query_spec.rb +34 -0
- data/spec/models/metric_create_query_resource_object_attributes_spec.rb +40 -0
- data/spec/models/metric_create_query_resource_object_spec.rb +40 -0
- data/spec/models/metric_enum_spec.rb +28 -0
- data/spec/models/onsite_profile_create_query_resource_object_attributes_spec.rb +94 -0
- data/spec/models/onsite_profile_create_query_resource_object_spec.rb +52 -0
- data/spec/models/onsite_profile_meta_spec.rb +34 -0
- data/spec/models/profile_create_query_resource_object_attributes_spec.rb +88 -0
- data/spec/models/profile_create_query_resource_object_spec.rb +40 -0
- data/spec/models/profile_create_query_spec.rb +34 -0
- data/spec/models/profile_enum_spec.rb +28 -0
- data/spec/models/profile_identifier_dto_resource_object_attributes_spec.rb +52 -0
- data/spec/models/profile_identifier_dto_resource_object_spec.rb +46 -0
- data/spec/models/profile_location_latitude_spec.rb +31 -0
- data/spec/models/profile_location_longitude_spec.rb +31 -0
- data/spec/models/profile_location_spec.rb +82 -0
- data/spec/models/profile_meta_patch_properties_spec.rb +46 -0
- data/spec/models/profile_meta_patch_properties_unset_spec.rb +31 -0
- data/spec/models/profile_meta_spec.rb +34 -0
- data/spec/models/profile_partial_update_query_resource_object_spec.rb +52 -0
- data/spec/models/profile_partial_update_query_spec.rb +34 -0
- data/spec/models/profile_subscription_bulk_create_job_enum_spec.rb +28 -0
- data/spec/models/profile_subscription_bulk_delete_job_enum_spec.rb +28 -0
- data/spec/models/profile_subscription_create_query_resource_object_attributes_spec.rb +46 -0
- data/spec/models/profile_subscription_create_query_resource_object_spec.rb +46 -0
- data/spec/models/profile_subscription_delete_query_resource_object_attributes_spec.rb +40 -0
- data/spec/models/profile_subscription_delete_query_resource_object_spec.rb +40 -0
- data/spec/models/profile_suppression_bulk_create_job_enum_spec.rb +28 -0
- data/spec/models/profile_suppression_bulk_delete_job_enum_spec.rb +28 -0
- data/spec/models/profile_suppression_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/profile_suppression_create_query_resource_object_spec.rb +40 -0
- data/spec/models/profile_suppression_delete_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/profile_suppression_delete_query_resource_object_spec.rb +40 -0
- data/spec/models/profile_upsert_query_resource_object_attributes_spec.rb +100 -0
- data/spec/models/profile_upsert_query_resource_object_spec.rb +46 -0
- data/spec/models/push_token_create_query_resource_object_attributes_profile_spec.rb +34 -0
- data/spec/models/push_token_create_query_resource_object_attributes_spec.rb +86 -0
- data/spec/models/push_token_create_query_resource_object_spec.rb +40 -0
- data/spec/models/push_token_create_query_spec.rb +34 -0
- data/spec/models/push_token_enum_spec.rb +28 -0
- data/spec/models/render_options_sub_object_spec.rb +52 -0
- data/spec/models/segment_enum_spec.rb +28 -0
- data/spec/models/segment_partial_update_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/segment_partial_update_query_resource_object_spec.rb +46 -0
- data/spec/models/segment_partial_update_query_spec.rb +34 -0
- data/spec/models/send_strategy_sub_object_spec.rb +52 -0
- data/spec/models/server_bis_subscription_create_query_resource_object_attributes_profile_spec.rb +34 -0
- data/spec/models/server_bis_subscription_create_query_resource_object_attributes_spec.rb +44 -0
- data/spec/models/server_bis_subscription_create_query_resource_object_relationships_spec.rb +34 -0
- data/spec/models/server_bis_subscription_create_query_resource_object_relationships_variant_data_spec.rb +40 -0
- data/spec/models/server_bis_subscription_create_query_resource_object_relationships_variant_spec.rb +34 -0
- data/spec/models/server_bis_subscription_create_query_resource_object_spec.rb +46 -0
- data/spec/models/server_bis_subscription_create_query_spec.rb +34 -0
- data/spec/models/sms_content_sub_object_create_spec.rb +34 -0
- data/spec/models/sms_send_options_sub_object_spec.rb +34 -0
- data/spec/models/sms_tracking_options_sub_object_spec.rb +40 -0
- 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_resource_object_attributes_profiles_spec.rb +34 -0
- data/spec/models/subscription_create_job_create_query_resource_object_attributes_spec.rb +40 -0
- data/spec/models/subscription_create_job_create_query_resource_object_relationships_list_data_spec.rb +40 -0
- data/spec/models/subscription_create_job_create_query_resource_object_relationships_list_spec.rb +34 -0
- data/spec/models/subscription_create_job_create_query_resource_object_relationships_spec.rb +34 -0
- data/spec/models/subscription_create_job_create_query_resource_object_spec.rb +46 -0
- data/spec/models/subscription_create_job_create_query_spec.rb +34 -0
- data/spec/models/subscription_delete_job_create_query_resource_object_attributes_profiles_spec.rb +34 -0
- data/spec/models/subscription_delete_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/subscription_delete_job_create_query_resource_object_spec.rb +46 -0
- data/spec/models/subscription_delete_job_create_query_spec.rb +34 -0
- data/spec/models/suppression_create_job_create_query_resource_object_attributes_profiles_spec.rb +34 -0
- data/spec/models/suppression_create_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/suppression_create_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/suppression_create_job_create_query_spec.rb +34 -0
- data/spec/models/suppression_delete_job_create_query_resource_object_attributes_profiles_spec.rb +34 -0
- data/spec/models/suppression_delete_job_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/suppression_delete_job_create_query_resource_object_spec.rb +40 -0
- data/spec/models/suppression_delete_job_create_query_spec.rb +34 -0
- data/spec/models/tag_campaign_op_data_inner_spec.rb +40 -0
- data/spec/models/tag_campaign_op_spec.rb +34 -0
- data/spec/models/tag_create_query_resource_object_attributes_spec.rb +34 -0
- data/spec/models/tag_create_query_resource_object_relationships_spec.rb +34 -0
- data/spec/models/tag_create_query_resource_object_relationships_tag_group_data_spec.rb +40 -0
- data/spec/models/tag_create_query_resource_object_relationships_tag_group_spec.rb +34 -0
- data/spec/models/tag_create_query_resource_object_spec.rb +46 -0
- data/spec/models/tag_create_query_spec.rb +34 -0
- data/spec/models/tag_enum_spec.rb +28 -0
- data/spec/models/tag_flow_op_data_inner_spec.rb +40 -0
- data/spec/models/tag_flow_op_spec.rb +34 -0
- data/spec/models/tag_group_create_query_resource_object_attributes_spec.rb +40 -0
- data/spec/models/tag_group_create_query_resource_object_spec.rb +40 -0
- data/spec/models/tag_group_create_query_spec.rb +34 -0
- data/spec/models/tag_group_enum_spec.rb +28 -0
- data/spec/models/tag_group_update_query_resource_object_attributes_spec.rb +40 -0
- data/spec/models/tag_group_update_query_resource_object_spec.rb +46 -0
- data/spec/models/tag_group_update_query_spec.rb +34 -0
- data/spec/models/tag_list_op_data_inner_spec.rb +40 -0
- data/spec/models/tag_list_op_spec.rb +34 -0
- data/spec/models/tag_segment_op_data_inner_spec.rb +40 -0
- data/spec/models/tag_segment_op_spec.rb +34 -0
- data/spec/models/tag_update_query_resource_object_spec.rb +46 -0
- data/spec/models/tag_update_query_spec.rb +34 -0
- data/spec/models/template_clone_query_resource_object_attributes_spec.rb +40 -0
- data/spec/models/template_clone_query_resource_object_spec.rb +40 -0
- data/spec/models/template_clone_query_spec.rb +34 -0
- data/spec/models/template_create_query_resource_object_attributes_spec.rb +52 -0
- data/spec/models/template_create_query_resource_object_spec.rb +40 -0
- data/spec/models/template_create_query_spec.rb +34 -0
- data/spec/models/template_enum_spec.rb +28 -0
- data/spec/models/template_render_query_resource_object_attributes_spec.rb +40 -0
- data/spec/models/template_render_query_resource_object_spec.rb +40 -0
- data/spec/models/template_render_query_spec.rb +34 -0
- data/spec/models/template_update_query_resource_object_attributes_spec.rb +46 -0
- data/spec/models/template_update_query_resource_object_spec.rb +46 -0
- data/spec/models/template_update_query_spec.rb +34 -0
- data/spec/models/throttled_schedule_options_spec.rb +40 -0
- data/spec/models/utm_params_sub_object_spec.rb +40 -0
- data/spec/spec_helper.rb +111 -0
- metadata +598 -19
- data/CHANGELOG.md +0 -91
- data/lib/klaviyo-api-sdk/models/catalog_category_update_query_resource_object_relationships_items_data_inner.rb +0 -272
data/docs/TagsApi.md
ADDED
@@ -0,0 +1,1929 @@
|
|
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_campaigns**](TagsApi.md#create_tag_relationships_campaigns) | **POST** /api/tags/{id}/relationships/campaigns/ | Create Tag Relationships Campaigns |
|
10
|
+
| [**create_tag_relationships_flows**](TagsApi.md#create_tag_relationships_flows) | **POST** /api/tags/{id}/relationships/flows/ | Create Tag Relationships Flows |
|
11
|
+
| [**create_tag_relationships_lists**](TagsApi.md#create_tag_relationships_lists) | **POST** /api/tags/{id}/relationships/lists/ | Create Tag Relationships Lists |
|
12
|
+
| [**create_tag_relationships_segments**](TagsApi.md#create_tag_relationships_segments) | **POST** /api/tags/{id}/relationships/segments/ | Create Tag Relationships Segments |
|
13
|
+
| [**delete_tag**](TagsApi.md#delete_tag) | **DELETE** /api/tags/{id}/ | Delete Tag |
|
14
|
+
| [**delete_tag_group**](TagsApi.md#delete_tag_group) | **DELETE** /api/tag-groups/{id}/ | Delete Tag Group |
|
15
|
+
| [**delete_tag_relationships_campaigns**](TagsApi.md#delete_tag_relationships_campaigns) | **DELETE** /api/tags/{id}/relationships/campaigns/ | Delete Tag Relationships Campaigns |
|
16
|
+
| [**delete_tag_relationships_flows**](TagsApi.md#delete_tag_relationships_flows) | **DELETE** /api/tags/{id}/relationships/flows/ | Delete Tag Relationships Flows |
|
17
|
+
| [**delete_tag_relationships_lists**](TagsApi.md#delete_tag_relationships_lists) | **DELETE** /api/tags/{id}/relationships/lists/ | Delete Tag Relationships Lists |
|
18
|
+
| [**delete_tag_relationships_segments**](TagsApi.md#delete_tag_relationships_segments) | **DELETE** /api/tags/{id}/relationships/segments/ | Delete Tag Relationships Segments |
|
19
|
+
| [**get_tag**](TagsApi.md#get_tag) | **GET** /api/tags/{id}/ | Get Tag |
|
20
|
+
| [**get_tag_group**](TagsApi.md#get_tag_group) | **GET** /api/tag-groups/{id}/ | Get Tag Group |
|
21
|
+
| [**get_tag_group_relationships_tags**](TagsApi.md#get_tag_group_relationships_tags) | **GET** /api/tag-groups/{id}/relationships/tags/ | Get Tag Group Relationships Tags |
|
22
|
+
| [**get_tag_group_tags**](TagsApi.md#get_tag_group_tags) | **GET** /api/tag-groups/{id}/tags/ | Get Tag Group Tags |
|
23
|
+
| [**get_tag_groups**](TagsApi.md#get_tag_groups) | **GET** /api/tag-groups/ | Get Tag Groups |
|
24
|
+
| [**get_tag_relationships_campaigns**](TagsApi.md#get_tag_relationships_campaigns) | **GET** /api/tags/{id}/relationships/campaigns/ | Get Tag Relationships Campaigns |
|
25
|
+
| [**get_tag_relationships_flows**](TagsApi.md#get_tag_relationships_flows) | **GET** /api/tags/{id}/relationships/flows/ | Get Tag Relationships Flows |
|
26
|
+
| [**get_tag_relationships_lists**](TagsApi.md#get_tag_relationships_lists) | **GET** /api/tags/{id}/relationships/lists/ | Get Tag Relationships Lists |
|
27
|
+
| [**get_tag_relationships_segments**](TagsApi.md#get_tag_relationships_segments) | **GET** /api/tags/{id}/relationships/segments/ | Get Tag Relationships Segments |
|
28
|
+
| [**get_tag_relationships_tag_group**](TagsApi.md#get_tag_relationships_tag_group) | **GET** /api/tags/{id}/relationships/tag-group/ | Get Tag Relationships Tag Group |
|
29
|
+
| [**get_tag_tag_group**](TagsApi.md#get_tag_tag_group) | **GET** /api/tags/{id}/tag-group/ | Get Tag Tag Group |
|
30
|
+
| [**get_tags**](TagsApi.md#get_tags) | **GET** /api/tags/ | Get Tags |
|
31
|
+
| [**update_tag**](TagsApi.md#update_tag) | **PATCH** /api/tags/{id}/ | Update Tag |
|
32
|
+
| [**update_tag_group**](TagsApi.md#update_tag_group) | **PATCH** /api/tag-groups/{id}/ | Update Tag Group |
|
33
|
+
|
34
|
+
|
35
|
+
## create_tag
|
36
|
+
|
37
|
+
> Hash<String, Object> create_tag(tag_create_query)
|
38
|
+
|
39
|
+
Create Tag
|
40
|
+
|
41
|
+
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`
|
42
|
+
|
43
|
+
### Examples
|
44
|
+
|
45
|
+
```ruby
|
46
|
+
require 'time'
|
47
|
+
require 'klaviyo-api-sdk'
|
48
|
+
# setup authorization
|
49
|
+
KlaviyoAPI.configure do |config|
|
50
|
+
# Configure API key authorization: Klaviyo-API-Key
|
51
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
52
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
53
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
54
|
+
end
|
55
|
+
|
56
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
57
|
+
tag_create_query = KlaviyoAPI::TagCreateQuery.new({data: KlaviyoAPI::TagCreateQueryResourceObject.new({type: KlaviyoAPI::TagEnum::TAG, attributes: KlaviyoAPI::TagCreateQueryResourceObjectAttributes.new({name: 'My Tag'})})}) # TagCreateQuery |
|
58
|
+
|
59
|
+
begin
|
60
|
+
# Create Tag
|
61
|
+
result = api_instance.create_tag(tag_create_query)
|
62
|
+
p result
|
63
|
+
rescue KlaviyoAPI::ApiError => e
|
64
|
+
puts "Error when calling TagsApi->create_tag: #{e}"
|
65
|
+
end
|
66
|
+
```
|
67
|
+
|
68
|
+
#### Using the create_tag_with_http_info variant
|
69
|
+
|
70
|
+
This returns an Array which contains the response data, status code and headers.
|
71
|
+
|
72
|
+
> <Array(Hash<String, Object>, Integer, Hash)> create_tag_with_http_info(tag_create_query)
|
73
|
+
|
74
|
+
```ruby
|
75
|
+
begin
|
76
|
+
# Create Tag
|
77
|
+
data, status_code, headers = api_instance.create_tag_with_http_info(tag_create_query)
|
78
|
+
p status_code # => 2xx
|
79
|
+
p headers # => { ... }
|
80
|
+
p data # => Hash<String, Object>
|
81
|
+
rescue KlaviyoAPI::ApiError => e
|
82
|
+
puts "Error when calling TagsApi->create_tag_with_http_info: #{e}"
|
83
|
+
end
|
84
|
+
```
|
85
|
+
|
86
|
+
### Parameters
|
87
|
+
|
88
|
+
| Name | Type | Description | Notes |
|
89
|
+
| ---- | ---- | ----------- | ----- |
|
90
|
+
| **tag_create_query** | [**TagCreateQuery**](TagCreateQuery.md) | | |
|
91
|
+
|
92
|
+
### Return type
|
93
|
+
|
94
|
+
**Hash<String, Object>**
|
95
|
+
|
96
|
+
### Authorization
|
97
|
+
|
98
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
99
|
+
|
100
|
+
### HTTP request headers
|
101
|
+
|
102
|
+
- **Content-Type**: application/json
|
103
|
+
- **Accept**: application/json
|
104
|
+
|
105
|
+
|
106
|
+
## create_tag_group
|
107
|
+
|
108
|
+
> Hash<String, Object> create_tag_group(tag_group_create_query)
|
109
|
+
|
110
|
+
Create Tag Group
|
111
|
+
|
112
|
+
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`
|
113
|
+
|
114
|
+
### Examples
|
115
|
+
|
116
|
+
```ruby
|
117
|
+
require 'time'
|
118
|
+
require 'klaviyo-api-sdk'
|
119
|
+
# setup authorization
|
120
|
+
KlaviyoAPI.configure do |config|
|
121
|
+
# Configure API key authorization: Klaviyo-API-Key
|
122
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
123
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
124
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
125
|
+
end
|
126
|
+
|
127
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
128
|
+
tag_group_create_query = KlaviyoAPI::TagGroupCreateQuery.new({data: KlaviyoAPI::TagGroupCreateQueryResourceObject.new({type: KlaviyoAPI::TagGroupEnum::TAG_GROUP, attributes: KlaviyoAPI::TagGroupCreateQueryResourceObjectAttributes.new({name: 'My Tag Group'})})}) # TagGroupCreateQuery |
|
129
|
+
|
130
|
+
begin
|
131
|
+
# Create Tag Group
|
132
|
+
result = api_instance.create_tag_group(tag_group_create_query)
|
133
|
+
p result
|
134
|
+
rescue KlaviyoAPI::ApiError => e
|
135
|
+
puts "Error when calling TagsApi->create_tag_group: #{e}"
|
136
|
+
end
|
137
|
+
```
|
138
|
+
|
139
|
+
#### Using the create_tag_group_with_http_info variant
|
140
|
+
|
141
|
+
This returns an Array which contains the response data, status code and headers.
|
142
|
+
|
143
|
+
> <Array(Hash<String, Object>, Integer, Hash)> create_tag_group_with_http_info(tag_group_create_query)
|
144
|
+
|
145
|
+
```ruby
|
146
|
+
begin
|
147
|
+
# Create Tag Group
|
148
|
+
data, status_code, headers = api_instance.create_tag_group_with_http_info(tag_group_create_query)
|
149
|
+
p status_code # => 2xx
|
150
|
+
p headers # => { ... }
|
151
|
+
p data # => Hash<String, Object>
|
152
|
+
rescue KlaviyoAPI::ApiError => e
|
153
|
+
puts "Error when calling TagsApi->create_tag_group_with_http_info: #{e}"
|
154
|
+
end
|
155
|
+
```
|
156
|
+
|
157
|
+
### Parameters
|
158
|
+
|
159
|
+
| Name | Type | Description | Notes |
|
160
|
+
| ---- | ---- | ----------- | ----- |
|
161
|
+
| **tag_group_create_query** | [**TagGroupCreateQuery**](TagGroupCreateQuery.md) | | |
|
162
|
+
|
163
|
+
### Return type
|
164
|
+
|
165
|
+
**Hash<String, Object>**
|
166
|
+
|
167
|
+
### Authorization
|
168
|
+
|
169
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
170
|
+
|
171
|
+
### HTTP request headers
|
172
|
+
|
173
|
+
- **Content-Type**: application/json
|
174
|
+
- **Accept**: application/json
|
175
|
+
|
176
|
+
|
177
|
+
## create_tag_relationships_campaigns
|
178
|
+
|
179
|
+
> create_tag_relationships_campaigns(id, tag_campaign_op)
|
180
|
+
|
181
|
+
Create Tag Relationships Campaigns
|
182
|
+
|
183
|
+
Associate a tag with one or more campaigns. Any campaign cannot be associated with more than **100** tags. Use the request body to pass in the ID(s) of the campaign(s) that will be associated with the tag.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `campaigns:write` `tags:write`
|
184
|
+
|
185
|
+
### Examples
|
186
|
+
|
187
|
+
```ruby
|
188
|
+
require 'time'
|
189
|
+
require 'klaviyo-api-sdk'
|
190
|
+
# setup authorization
|
191
|
+
KlaviyoAPI.configure do |config|
|
192
|
+
# Configure API key authorization: Klaviyo-API-Key
|
193
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
194
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
195
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
196
|
+
end
|
197
|
+
|
198
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
199
|
+
id = 'id_example' # String |
|
200
|
+
tag_campaign_op = KlaviyoAPI::TagCampaignOp.new({data: [KlaviyoAPI::TagCampaignOpDataInner.new({type: KlaviyoAPI::CampaignEnum::CAMPAIGN, id: 'id_example'})]}) # TagCampaignOp |
|
201
|
+
|
202
|
+
begin
|
203
|
+
# Create Tag Relationships Campaigns
|
204
|
+
api_instance.create_tag_relationships_campaigns(id, tag_campaign_op)
|
205
|
+
rescue KlaviyoAPI::ApiError => e
|
206
|
+
puts "Error when calling TagsApi->create_tag_relationships_campaigns: #{e}"
|
207
|
+
end
|
208
|
+
```
|
209
|
+
|
210
|
+
#### Using the create_tag_relationships_campaigns_with_http_info variant
|
211
|
+
|
212
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
213
|
+
|
214
|
+
> <Array(nil, Integer, Hash)> create_tag_relationships_campaigns_with_http_info(id, tag_campaign_op)
|
215
|
+
|
216
|
+
```ruby
|
217
|
+
begin
|
218
|
+
# Create Tag Relationships Campaigns
|
219
|
+
data, status_code, headers = api_instance.create_tag_relationships_campaigns_with_http_info(id, tag_campaign_op)
|
220
|
+
p status_code # => 2xx
|
221
|
+
p headers # => { ... }
|
222
|
+
p data # => nil
|
223
|
+
rescue KlaviyoAPI::ApiError => e
|
224
|
+
puts "Error when calling TagsApi->create_tag_relationships_campaigns_with_http_info: #{e}"
|
225
|
+
end
|
226
|
+
```
|
227
|
+
|
228
|
+
### Parameters
|
229
|
+
|
230
|
+
| Name | Type | Description | Notes |
|
231
|
+
| ---- | ---- | ----------- | ----- |
|
232
|
+
| **id** | **String** | | |
|
233
|
+
| **tag_campaign_op** | [**TagCampaignOp**](TagCampaignOp.md) | | |
|
234
|
+
|
235
|
+
### Return type
|
236
|
+
|
237
|
+
nil (empty response body)
|
238
|
+
|
239
|
+
### Authorization
|
240
|
+
|
241
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
242
|
+
|
243
|
+
### HTTP request headers
|
244
|
+
|
245
|
+
- **Content-Type**: application/json
|
246
|
+
- **Accept**: application/json
|
247
|
+
|
248
|
+
|
249
|
+
## create_tag_relationships_flows
|
250
|
+
|
251
|
+
> create_tag_relationships_flows(id, tag_flow_op)
|
252
|
+
|
253
|
+
Create Tag Relationships Flows
|
254
|
+
|
255
|
+
Associate a tag with one or more flows. Any flow cannot be associated with more than **100** tags. Use the request body to pass in the ID(s) of the flow(s) that will be associated with the tag.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:write` `tags:write`
|
256
|
+
|
257
|
+
### Examples
|
258
|
+
|
259
|
+
```ruby
|
260
|
+
require 'time'
|
261
|
+
require 'klaviyo-api-sdk'
|
262
|
+
# setup authorization
|
263
|
+
KlaviyoAPI.configure do |config|
|
264
|
+
# Configure API key authorization: Klaviyo-API-Key
|
265
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
266
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
267
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
268
|
+
end
|
269
|
+
|
270
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
271
|
+
id = 'id_example' # String |
|
272
|
+
tag_flow_op = KlaviyoAPI::TagFlowOp.new({data: [KlaviyoAPI::TagFlowOpDataInner.new({type: KlaviyoAPI::FlowEnum::FLOW, id: 'id_example'})]}) # TagFlowOp |
|
273
|
+
|
274
|
+
begin
|
275
|
+
# Create Tag Relationships Flows
|
276
|
+
api_instance.create_tag_relationships_flows(id, tag_flow_op)
|
277
|
+
rescue KlaviyoAPI::ApiError => e
|
278
|
+
puts "Error when calling TagsApi->create_tag_relationships_flows: #{e}"
|
279
|
+
end
|
280
|
+
```
|
281
|
+
|
282
|
+
#### Using the create_tag_relationships_flows_with_http_info variant
|
283
|
+
|
284
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
285
|
+
|
286
|
+
> <Array(nil, Integer, Hash)> create_tag_relationships_flows_with_http_info(id, tag_flow_op)
|
287
|
+
|
288
|
+
```ruby
|
289
|
+
begin
|
290
|
+
# Create Tag Relationships Flows
|
291
|
+
data, status_code, headers = api_instance.create_tag_relationships_flows_with_http_info(id, tag_flow_op)
|
292
|
+
p status_code # => 2xx
|
293
|
+
p headers # => { ... }
|
294
|
+
p data # => nil
|
295
|
+
rescue KlaviyoAPI::ApiError => e
|
296
|
+
puts "Error when calling TagsApi->create_tag_relationships_flows_with_http_info: #{e}"
|
297
|
+
end
|
298
|
+
```
|
299
|
+
|
300
|
+
### Parameters
|
301
|
+
|
302
|
+
| Name | Type | Description | Notes |
|
303
|
+
| ---- | ---- | ----------- | ----- |
|
304
|
+
| **id** | **String** | | |
|
305
|
+
| **tag_flow_op** | [**TagFlowOp**](TagFlowOp.md) | | |
|
306
|
+
|
307
|
+
### Return type
|
308
|
+
|
309
|
+
nil (empty response body)
|
310
|
+
|
311
|
+
### Authorization
|
312
|
+
|
313
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
314
|
+
|
315
|
+
### HTTP request headers
|
316
|
+
|
317
|
+
- **Content-Type**: application/json
|
318
|
+
- **Accept**: application/json
|
319
|
+
|
320
|
+
|
321
|
+
## create_tag_relationships_lists
|
322
|
+
|
323
|
+
> create_tag_relationships_lists(id, tag_list_op)
|
324
|
+
|
325
|
+
Create Tag Relationships Lists
|
326
|
+
|
327
|
+
Associate a tag with one or more lists. Any list cannot be associated with more than **100** tags. Use the request body to pass in the ID(s) of the lists(s) that will be associated with the tag.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `list:write` `tags:write`
|
328
|
+
|
329
|
+
### Examples
|
330
|
+
|
331
|
+
```ruby
|
332
|
+
require 'time'
|
333
|
+
require 'klaviyo-api-sdk'
|
334
|
+
# setup authorization
|
335
|
+
KlaviyoAPI.configure do |config|
|
336
|
+
# Configure API key authorization: Klaviyo-API-Key
|
337
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
338
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
339
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
340
|
+
end
|
341
|
+
|
342
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
343
|
+
id = 'id_example' # String |
|
344
|
+
tag_list_op = KlaviyoAPI::TagListOp.new({data: [KlaviyoAPI::TagListOpDataInner.new({type: KlaviyoAPI::ListEnum::LIST, id: 'id_example'})]}) # TagListOp |
|
345
|
+
|
346
|
+
begin
|
347
|
+
# Create Tag Relationships Lists
|
348
|
+
api_instance.create_tag_relationships_lists(id, tag_list_op)
|
349
|
+
rescue KlaviyoAPI::ApiError => e
|
350
|
+
puts "Error when calling TagsApi->create_tag_relationships_lists: #{e}"
|
351
|
+
end
|
352
|
+
```
|
353
|
+
|
354
|
+
#### Using the create_tag_relationships_lists_with_http_info variant
|
355
|
+
|
356
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
357
|
+
|
358
|
+
> <Array(nil, Integer, Hash)> create_tag_relationships_lists_with_http_info(id, tag_list_op)
|
359
|
+
|
360
|
+
```ruby
|
361
|
+
begin
|
362
|
+
# Create Tag Relationships Lists
|
363
|
+
data, status_code, headers = api_instance.create_tag_relationships_lists_with_http_info(id, tag_list_op)
|
364
|
+
p status_code # => 2xx
|
365
|
+
p headers # => { ... }
|
366
|
+
p data # => nil
|
367
|
+
rescue KlaviyoAPI::ApiError => e
|
368
|
+
puts "Error when calling TagsApi->create_tag_relationships_lists_with_http_info: #{e}"
|
369
|
+
end
|
370
|
+
```
|
371
|
+
|
372
|
+
### Parameters
|
373
|
+
|
374
|
+
| Name | Type | Description | Notes |
|
375
|
+
| ---- | ---- | ----------- | ----- |
|
376
|
+
| **id** | **String** | | |
|
377
|
+
| **tag_list_op** | [**TagListOp**](TagListOp.md) | | |
|
378
|
+
|
379
|
+
### Return type
|
380
|
+
|
381
|
+
nil (empty response body)
|
382
|
+
|
383
|
+
### Authorization
|
384
|
+
|
385
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
386
|
+
|
387
|
+
### HTTP request headers
|
388
|
+
|
389
|
+
- **Content-Type**: application/json
|
390
|
+
- **Accept**: application/json
|
391
|
+
|
392
|
+
|
393
|
+
## create_tag_relationships_segments
|
394
|
+
|
395
|
+
> create_tag_relationships_segments(id, tag_segment_op)
|
396
|
+
|
397
|
+
Create Tag Relationships Segments
|
398
|
+
|
399
|
+
Associate a tag with one or more segments. Any segment cannot be associated with more than **100** tags. Use the request body to pass in the ID(s) of the segments(s) that will be associated with the tag.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `segments:write` `tags:write`
|
400
|
+
|
401
|
+
### Examples
|
402
|
+
|
403
|
+
```ruby
|
404
|
+
require 'time'
|
405
|
+
require 'klaviyo-api-sdk'
|
406
|
+
# setup authorization
|
407
|
+
KlaviyoAPI.configure do |config|
|
408
|
+
# Configure API key authorization: Klaviyo-API-Key
|
409
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
410
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
411
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
412
|
+
end
|
413
|
+
|
414
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
415
|
+
id = 'id_example' # String |
|
416
|
+
tag_segment_op = KlaviyoAPI::TagSegmentOp.new({data: [KlaviyoAPI::TagSegmentOpDataInner.new({type: KlaviyoAPI::SegmentEnum::SEGMENT, id: 'id_example'})]}) # TagSegmentOp |
|
417
|
+
|
418
|
+
begin
|
419
|
+
# Create Tag Relationships Segments
|
420
|
+
api_instance.create_tag_relationships_segments(id, tag_segment_op)
|
421
|
+
rescue KlaviyoAPI::ApiError => e
|
422
|
+
puts "Error when calling TagsApi->create_tag_relationships_segments: #{e}"
|
423
|
+
end
|
424
|
+
```
|
425
|
+
|
426
|
+
#### Using the create_tag_relationships_segments_with_http_info variant
|
427
|
+
|
428
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
429
|
+
|
430
|
+
> <Array(nil, Integer, Hash)> create_tag_relationships_segments_with_http_info(id, tag_segment_op)
|
431
|
+
|
432
|
+
```ruby
|
433
|
+
begin
|
434
|
+
# Create Tag Relationships Segments
|
435
|
+
data, status_code, headers = api_instance.create_tag_relationships_segments_with_http_info(id, tag_segment_op)
|
436
|
+
p status_code # => 2xx
|
437
|
+
p headers # => { ... }
|
438
|
+
p data # => nil
|
439
|
+
rescue KlaviyoAPI::ApiError => e
|
440
|
+
puts "Error when calling TagsApi->create_tag_relationships_segments_with_http_info: #{e}"
|
441
|
+
end
|
442
|
+
```
|
443
|
+
|
444
|
+
### Parameters
|
445
|
+
|
446
|
+
| Name | Type | Description | Notes |
|
447
|
+
| ---- | ---- | ----------- | ----- |
|
448
|
+
| **id** | **String** | | |
|
449
|
+
| **tag_segment_op** | [**TagSegmentOp**](TagSegmentOp.md) | | |
|
450
|
+
|
451
|
+
### Return type
|
452
|
+
|
453
|
+
nil (empty response body)
|
454
|
+
|
455
|
+
### Authorization
|
456
|
+
|
457
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
458
|
+
|
459
|
+
### HTTP request headers
|
460
|
+
|
461
|
+
- **Content-Type**: application/json
|
462
|
+
- **Accept**: application/json
|
463
|
+
|
464
|
+
|
465
|
+
## delete_tag
|
466
|
+
|
467
|
+
> delete_tag(id)
|
468
|
+
|
469
|
+
Delete Tag
|
470
|
+
|
471
|
+
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`
|
472
|
+
|
473
|
+
### Examples
|
474
|
+
|
475
|
+
```ruby
|
476
|
+
require 'time'
|
477
|
+
require 'klaviyo-api-sdk'
|
478
|
+
# setup authorization
|
479
|
+
KlaviyoAPI.configure do |config|
|
480
|
+
# Configure API key authorization: Klaviyo-API-Key
|
481
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
482
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
483
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
484
|
+
end
|
485
|
+
|
486
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
487
|
+
id = 'abcd1234-ef56-gh78-ij90-abcdef123456' # String | The Tag ID
|
488
|
+
|
489
|
+
begin
|
490
|
+
# Delete Tag
|
491
|
+
api_instance.delete_tag(id)
|
492
|
+
rescue KlaviyoAPI::ApiError => e
|
493
|
+
puts "Error when calling TagsApi->delete_tag: #{e}"
|
494
|
+
end
|
495
|
+
```
|
496
|
+
|
497
|
+
#### Using the delete_tag_with_http_info variant
|
498
|
+
|
499
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
500
|
+
|
501
|
+
> <Array(nil, Integer, Hash)> delete_tag_with_http_info(id)
|
502
|
+
|
503
|
+
```ruby
|
504
|
+
begin
|
505
|
+
# Delete Tag
|
506
|
+
data, status_code, headers = api_instance.delete_tag_with_http_info(id)
|
507
|
+
p status_code # => 2xx
|
508
|
+
p headers # => { ... }
|
509
|
+
p data # => nil
|
510
|
+
rescue KlaviyoAPI::ApiError => e
|
511
|
+
puts "Error when calling TagsApi->delete_tag_with_http_info: #{e}"
|
512
|
+
end
|
513
|
+
```
|
514
|
+
|
515
|
+
### Parameters
|
516
|
+
|
517
|
+
| Name | Type | Description | Notes |
|
518
|
+
| ---- | ---- | ----------- | ----- |
|
519
|
+
| **id** | **String** | The Tag ID | |
|
520
|
+
|
521
|
+
### Return type
|
522
|
+
|
523
|
+
nil (empty response body)
|
524
|
+
|
525
|
+
### Authorization
|
526
|
+
|
527
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
528
|
+
|
529
|
+
### HTTP request headers
|
530
|
+
|
531
|
+
- **Content-Type**: Not defined
|
532
|
+
- **Accept**: application/json
|
533
|
+
|
534
|
+
|
535
|
+
## delete_tag_group
|
536
|
+
|
537
|
+
> Hash<String, Object> delete_tag_group(id)
|
538
|
+
|
539
|
+
Delete Tag Group
|
540
|
+
|
541
|
+
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`
|
542
|
+
|
543
|
+
### Examples
|
544
|
+
|
545
|
+
```ruby
|
546
|
+
require 'time'
|
547
|
+
require 'klaviyo-api-sdk'
|
548
|
+
# setup authorization
|
549
|
+
KlaviyoAPI.configure do |config|
|
550
|
+
# Configure API key authorization: Klaviyo-API-Key
|
551
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
552
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
553
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
554
|
+
end
|
555
|
+
|
556
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
557
|
+
id = 'zyxw9876-vu54-ts32-rq10-zyxwvu654321' # String | The Tag Group ID
|
558
|
+
|
559
|
+
begin
|
560
|
+
# Delete Tag Group
|
561
|
+
result = api_instance.delete_tag_group(id)
|
562
|
+
p result
|
563
|
+
rescue KlaviyoAPI::ApiError => e
|
564
|
+
puts "Error when calling TagsApi->delete_tag_group: #{e}"
|
565
|
+
end
|
566
|
+
```
|
567
|
+
|
568
|
+
#### Using the delete_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)> delete_tag_group_with_http_info(id)
|
573
|
+
|
574
|
+
```ruby
|
575
|
+
begin
|
576
|
+
# Delete Tag Group
|
577
|
+
data, status_code, headers = api_instance.delete_tag_group_with_http_info(id)
|
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->delete_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
|
+
|
592
|
+
### Return type
|
593
|
+
|
594
|
+
**Hash<String, Object>**
|
595
|
+
|
596
|
+
### Authorization
|
597
|
+
|
598
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
599
|
+
|
600
|
+
### HTTP request headers
|
601
|
+
|
602
|
+
- **Content-Type**: Not defined
|
603
|
+
- **Accept**: application/json
|
604
|
+
|
605
|
+
|
606
|
+
## delete_tag_relationships_campaigns
|
607
|
+
|
608
|
+
> delete_tag_relationships_campaigns(id, tag_campaign_op)
|
609
|
+
|
610
|
+
Delete Tag Relationships Campaigns
|
611
|
+
|
612
|
+
Remove a tag's association with one or more campaigns. Use the request body to pass in the ID(s) of the campaign(s) whose association with the tag will be removed.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `campaigns:write` `tags:write`
|
613
|
+
|
614
|
+
### Examples
|
615
|
+
|
616
|
+
```ruby
|
617
|
+
require 'time'
|
618
|
+
require 'klaviyo-api-sdk'
|
619
|
+
# setup authorization
|
620
|
+
KlaviyoAPI.configure do |config|
|
621
|
+
# Configure API key authorization: Klaviyo-API-Key
|
622
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
623
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
624
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
625
|
+
end
|
626
|
+
|
627
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
628
|
+
id = 'id_example' # String |
|
629
|
+
tag_campaign_op = KlaviyoAPI::TagCampaignOp.new({data: [KlaviyoAPI::TagCampaignOpDataInner.new({type: KlaviyoAPI::CampaignEnum::CAMPAIGN, id: 'id_example'})]}) # TagCampaignOp |
|
630
|
+
|
631
|
+
begin
|
632
|
+
# Delete Tag Relationships Campaigns
|
633
|
+
api_instance.delete_tag_relationships_campaigns(id, tag_campaign_op)
|
634
|
+
rescue KlaviyoAPI::ApiError => e
|
635
|
+
puts "Error when calling TagsApi->delete_tag_relationships_campaigns: #{e}"
|
636
|
+
end
|
637
|
+
```
|
638
|
+
|
639
|
+
#### Using the delete_tag_relationships_campaigns_with_http_info variant
|
640
|
+
|
641
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
642
|
+
|
643
|
+
> <Array(nil, Integer, Hash)> delete_tag_relationships_campaigns_with_http_info(id, tag_campaign_op)
|
644
|
+
|
645
|
+
```ruby
|
646
|
+
begin
|
647
|
+
# Delete Tag Relationships Campaigns
|
648
|
+
data, status_code, headers = api_instance.delete_tag_relationships_campaigns_with_http_info(id, tag_campaign_op)
|
649
|
+
p status_code # => 2xx
|
650
|
+
p headers # => { ... }
|
651
|
+
p data # => nil
|
652
|
+
rescue KlaviyoAPI::ApiError => e
|
653
|
+
puts "Error when calling TagsApi->delete_tag_relationships_campaigns_with_http_info: #{e}"
|
654
|
+
end
|
655
|
+
```
|
656
|
+
|
657
|
+
### Parameters
|
658
|
+
|
659
|
+
| Name | Type | Description | Notes |
|
660
|
+
| ---- | ---- | ----------- | ----- |
|
661
|
+
| **id** | **String** | | |
|
662
|
+
| **tag_campaign_op** | [**TagCampaignOp**](TagCampaignOp.md) | | |
|
663
|
+
|
664
|
+
### Return type
|
665
|
+
|
666
|
+
nil (empty response body)
|
667
|
+
|
668
|
+
### Authorization
|
669
|
+
|
670
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
671
|
+
|
672
|
+
### HTTP request headers
|
673
|
+
|
674
|
+
- **Content-Type**: application/json
|
675
|
+
- **Accept**: application/json
|
676
|
+
|
677
|
+
|
678
|
+
## delete_tag_relationships_flows
|
679
|
+
|
680
|
+
> delete_tag_relationships_flows(id, tag_flow_op)
|
681
|
+
|
682
|
+
Delete Tag Relationships Flows
|
683
|
+
|
684
|
+
Remove a tag's association with one or more flows. Use the request body to pass in the ID(s) of the flows(s) whose association with the tag will be removed.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:write` `tags:write`
|
685
|
+
|
686
|
+
### Examples
|
687
|
+
|
688
|
+
```ruby
|
689
|
+
require 'time'
|
690
|
+
require 'klaviyo-api-sdk'
|
691
|
+
# setup authorization
|
692
|
+
KlaviyoAPI.configure do |config|
|
693
|
+
# Configure API key authorization: Klaviyo-API-Key
|
694
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
695
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
696
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
697
|
+
end
|
698
|
+
|
699
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
700
|
+
id = 'id_example' # String |
|
701
|
+
tag_flow_op = KlaviyoAPI::TagFlowOp.new({data: [KlaviyoAPI::TagFlowOpDataInner.new({type: KlaviyoAPI::FlowEnum::FLOW, id: 'id_example'})]}) # TagFlowOp |
|
702
|
+
|
703
|
+
begin
|
704
|
+
# Delete Tag Relationships Flows
|
705
|
+
api_instance.delete_tag_relationships_flows(id, tag_flow_op)
|
706
|
+
rescue KlaviyoAPI::ApiError => e
|
707
|
+
puts "Error when calling TagsApi->delete_tag_relationships_flows: #{e}"
|
708
|
+
end
|
709
|
+
```
|
710
|
+
|
711
|
+
#### Using the delete_tag_relationships_flows_with_http_info variant
|
712
|
+
|
713
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
714
|
+
|
715
|
+
> <Array(nil, Integer, Hash)> delete_tag_relationships_flows_with_http_info(id, tag_flow_op)
|
716
|
+
|
717
|
+
```ruby
|
718
|
+
begin
|
719
|
+
# Delete Tag Relationships Flows
|
720
|
+
data, status_code, headers = api_instance.delete_tag_relationships_flows_with_http_info(id, tag_flow_op)
|
721
|
+
p status_code # => 2xx
|
722
|
+
p headers # => { ... }
|
723
|
+
p data # => nil
|
724
|
+
rescue KlaviyoAPI::ApiError => e
|
725
|
+
puts "Error when calling TagsApi->delete_tag_relationships_flows_with_http_info: #{e}"
|
726
|
+
end
|
727
|
+
```
|
728
|
+
|
729
|
+
### Parameters
|
730
|
+
|
731
|
+
| Name | Type | Description | Notes |
|
732
|
+
| ---- | ---- | ----------- | ----- |
|
733
|
+
| **id** | **String** | | |
|
734
|
+
| **tag_flow_op** | [**TagFlowOp**](TagFlowOp.md) | | |
|
735
|
+
|
736
|
+
### Return type
|
737
|
+
|
738
|
+
nil (empty response body)
|
739
|
+
|
740
|
+
### Authorization
|
741
|
+
|
742
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
743
|
+
|
744
|
+
### HTTP request headers
|
745
|
+
|
746
|
+
- **Content-Type**: application/json
|
747
|
+
- **Accept**: application/json
|
748
|
+
|
749
|
+
|
750
|
+
## delete_tag_relationships_lists
|
751
|
+
|
752
|
+
> delete_tag_relationships_lists(id, tag_list_op)
|
753
|
+
|
754
|
+
Delete Tag Relationships Lists
|
755
|
+
|
756
|
+
Remove a tag's association with one or more lists. Use the request body to pass in the ID(s) of the list(s) whose association with the tag will be removed.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `list:write` `tags:write`
|
757
|
+
|
758
|
+
### Examples
|
759
|
+
|
760
|
+
```ruby
|
761
|
+
require 'time'
|
762
|
+
require 'klaviyo-api-sdk'
|
763
|
+
# setup authorization
|
764
|
+
KlaviyoAPI.configure do |config|
|
765
|
+
# Configure API key authorization: Klaviyo-API-Key
|
766
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
767
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
768
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
769
|
+
end
|
770
|
+
|
771
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
772
|
+
id = 'id_example' # String |
|
773
|
+
tag_list_op = KlaviyoAPI::TagListOp.new({data: [KlaviyoAPI::TagListOpDataInner.new({type: KlaviyoAPI::ListEnum::LIST, id: 'id_example'})]}) # TagListOp |
|
774
|
+
|
775
|
+
begin
|
776
|
+
# Delete Tag Relationships Lists
|
777
|
+
api_instance.delete_tag_relationships_lists(id, tag_list_op)
|
778
|
+
rescue KlaviyoAPI::ApiError => e
|
779
|
+
puts "Error when calling TagsApi->delete_tag_relationships_lists: #{e}"
|
780
|
+
end
|
781
|
+
```
|
782
|
+
|
783
|
+
#### Using the delete_tag_relationships_lists_with_http_info variant
|
784
|
+
|
785
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
786
|
+
|
787
|
+
> <Array(nil, Integer, Hash)> delete_tag_relationships_lists_with_http_info(id, tag_list_op)
|
788
|
+
|
789
|
+
```ruby
|
790
|
+
begin
|
791
|
+
# Delete Tag Relationships Lists
|
792
|
+
data, status_code, headers = api_instance.delete_tag_relationships_lists_with_http_info(id, tag_list_op)
|
793
|
+
p status_code # => 2xx
|
794
|
+
p headers # => { ... }
|
795
|
+
p data # => nil
|
796
|
+
rescue KlaviyoAPI::ApiError => e
|
797
|
+
puts "Error when calling TagsApi->delete_tag_relationships_lists_with_http_info: #{e}"
|
798
|
+
end
|
799
|
+
```
|
800
|
+
|
801
|
+
### Parameters
|
802
|
+
|
803
|
+
| Name | Type | Description | Notes |
|
804
|
+
| ---- | ---- | ----------- | ----- |
|
805
|
+
| **id** | **String** | | |
|
806
|
+
| **tag_list_op** | [**TagListOp**](TagListOp.md) | | |
|
807
|
+
|
808
|
+
### Return type
|
809
|
+
|
810
|
+
nil (empty response body)
|
811
|
+
|
812
|
+
### Authorization
|
813
|
+
|
814
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
815
|
+
|
816
|
+
### HTTP request headers
|
817
|
+
|
818
|
+
- **Content-Type**: application/json
|
819
|
+
- **Accept**: application/json
|
820
|
+
|
821
|
+
|
822
|
+
## delete_tag_relationships_segments
|
823
|
+
|
824
|
+
> delete_tag_relationships_segments(id, tag_segment_op)
|
825
|
+
|
826
|
+
Delete Tag Relationships Segments
|
827
|
+
|
828
|
+
Remove a tag's association with one or more segments. Use the request body to pass in the ID(s) of the segments(s) whose association with the tag will be removed.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `segments:write` `tags:write`
|
829
|
+
|
830
|
+
### Examples
|
831
|
+
|
832
|
+
```ruby
|
833
|
+
require 'time'
|
834
|
+
require 'klaviyo-api-sdk'
|
835
|
+
# setup authorization
|
836
|
+
KlaviyoAPI.configure do |config|
|
837
|
+
# Configure API key authorization: Klaviyo-API-Key
|
838
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
839
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
840
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
841
|
+
end
|
842
|
+
|
843
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
844
|
+
id = 'id_example' # String |
|
845
|
+
tag_segment_op = KlaviyoAPI::TagSegmentOp.new({data: [KlaviyoAPI::TagSegmentOpDataInner.new({type: KlaviyoAPI::SegmentEnum::SEGMENT, id: 'id_example'})]}) # TagSegmentOp |
|
846
|
+
|
847
|
+
begin
|
848
|
+
# Delete Tag Relationships Segments
|
849
|
+
api_instance.delete_tag_relationships_segments(id, tag_segment_op)
|
850
|
+
rescue KlaviyoAPI::ApiError => e
|
851
|
+
puts "Error when calling TagsApi->delete_tag_relationships_segments: #{e}"
|
852
|
+
end
|
853
|
+
```
|
854
|
+
|
855
|
+
#### Using the delete_tag_relationships_segments_with_http_info variant
|
856
|
+
|
857
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
858
|
+
|
859
|
+
> <Array(nil, Integer, Hash)> delete_tag_relationships_segments_with_http_info(id, tag_segment_op)
|
860
|
+
|
861
|
+
```ruby
|
862
|
+
begin
|
863
|
+
# Delete Tag Relationships Segments
|
864
|
+
data, status_code, headers = api_instance.delete_tag_relationships_segments_with_http_info(id, tag_segment_op)
|
865
|
+
p status_code # => 2xx
|
866
|
+
p headers # => { ... }
|
867
|
+
p data # => nil
|
868
|
+
rescue KlaviyoAPI::ApiError => e
|
869
|
+
puts "Error when calling TagsApi->delete_tag_relationships_segments_with_http_info: #{e}"
|
870
|
+
end
|
871
|
+
```
|
872
|
+
|
873
|
+
### Parameters
|
874
|
+
|
875
|
+
| Name | Type | Description | Notes |
|
876
|
+
| ---- | ---- | ----------- | ----- |
|
877
|
+
| **id** | **String** | | |
|
878
|
+
| **tag_segment_op** | [**TagSegmentOp**](TagSegmentOp.md) | | |
|
879
|
+
|
880
|
+
### Return type
|
881
|
+
|
882
|
+
nil (empty response body)
|
883
|
+
|
884
|
+
### Authorization
|
885
|
+
|
886
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
887
|
+
|
888
|
+
### HTTP request headers
|
889
|
+
|
890
|
+
- **Content-Type**: application/json
|
891
|
+
- **Accept**: application/json
|
892
|
+
|
893
|
+
|
894
|
+
## get_tag
|
895
|
+
|
896
|
+
> Hash<String, Object> get_tag(id, opts)
|
897
|
+
|
898
|
+
Get Tag
|
899
|
+
|
900
|
+
Retrieve the tag with the given tag ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `tags:read`
|
901
|
+
|
902
|
+
### Examples
|
903
|
+
|
904
|
+
```ruby
|
905
|
+
require 'time'
|
906
|
+
require 'klaviyo-api-sdk'
|
907
|
+
# setup authorization
|
908
|
+
KlaviyoAPI.configure do |config|
|
909
|
+
# Configure API key authorization: Klaviyo-API-Key
|
910
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
911
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
912
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
913
|
+
end
|
914
|
+
|
915
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
916
|
+
id = 'abcd1234-ef56-gh78-ij90-abcdef123456' # String | The Tag ID
|
917
|
+
opts = {
|
918
|
+
fields_tag_group: ['name'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets
|
919
|
+
fields_tag: ['name'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets
|
920
|
+
include: ['tag-group'] # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#relationships
|
921
|
+
}
|
922
|
+
|
923
|
+
begin
|
924
|
+
# Get Tag
|
925
|
+
result = api_instance.get_tag(id, opts)
|
926
|
+
p result
|
927
|
+
rescue KlaviyoAPI::ApiError => e
|
928
|
+
puts "Error when calling TagsApi->get_tag: #{e}"
|
929
|
+
end
|
930
|
+
```
|
931
|
+
|
932
|
+
#### Using the get_tag_with_http_info variant
|
933
|
+
|
934
|
+
This returns an Array which contains the response data, status code and headers.
|
935
|
+
|
936
|
+
> <Array(Hash<String, Object>, Integer, Hash)> get_tag_with_http_info(id, opts)
|
937
|
+
|
938
|
+
```ruby
|
939
|
+
begin
|
940
|
+
# Get Tag
|
941
|
+
data, status_code, headers = api_instance.get_tag_with_http_info(id, opts)
|
942
|
+
p status_code # => 2xx
|
943
|
+
p headers # => { ... }
|
944
|
+
p data # => Hash<String, Object>
|
945
|
+
rescue KlaviyoAPI::ApiError => e
|
946
|
+
puts "Error when calling TagsApi->get_tag_with_http_info: #{e}"
|
947
|
+
end
|
948
|
+
```
|
949
|
+
|
950
|
+
### Parameters
|
951
|
+
|
952
|
+
| Name | Type | Description | Notes |
|
953
|
+
| ---- | ---- | ----------- | ----- |
|
954
|
+
| **id** | **String** | The Tag ID | |
|
955
|
+
| **fields_tag_group** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets | [optional] |
|
956
|
+
| **fields_tag** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets | [optional] |
|
957
|
+
| **include** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#relationships | [optional] |
|
958
|
+
|
959
|
+
### Return type
|
960
|
+
|
961
|
+
**Hash<String, Object>**
|
962
|
+
|
963
|
+
### Authorization
|
964
|
+
|
965
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
966
|
+
|
967
|
+
### HTTP request headers
|
968
|
+
|
969
|
+
- **Content-Type**: Not defined
|
970
|
+
- **Accept**: application/json
|
971
|
+
|
972
|
+
|
973
|
+
## get_tag_group
|
974
|
+
|
975
|
+
> Hash<String, Object> get_tag_group(id, opts)
|
976
|
+
|
977
|
+
Get Tag Group
|
978
|
+
|
979
|
+
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`
|
980
|
+
|
981
|
+
### Examples
|
982
|
+
|
983
|
+
```ruby
|
984
|
+
require 'time'
|
985
|
+
require 'klaviyo-api-sdk'
|
986
|
+
# setup authorization
|
987
|
+
KlaviyoAPI.configure do |config|
|
988
|
+
# Configure API key authorization: Klaviyo-API-Key
|
989
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
990
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
991
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
992
|
+
end
|
993
|
+
|
994
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
995
|
+
id = 'zyxw9876-vu54-ts32-rq10-zyxwvu654321' # String | The Tag Group ID
|
996
|
+
opts = {
|
997
|
+
fields_tag_group: ['name'] # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets
|
998
|
+
}
|
999
|
+
|
1000
|
+
begin
|
1001
|
+
# Get Tag Group
|
1002
|
+
result = api_instance.get_tag_group(id, opts)
|
1003
|
+
p result
|
1004
|
+
rescue KlaviyoAPI::ApiError => e
|
1005
|
+
puts "Error when calling TagsApi->get_tag_group: #{e}"
|
1006
|
+
end
|
1007
|
+
```
|
1008
|
+
|
1009
|
+
#### Using the get_tag_group_with_http_info variant
|
1010
|
+
|
1011
|
+
This returns an Array which contains the response data, status code and headers.
|
1012
|
+
|
1013
|
+
> <Array(Hash<String, Object>, Integer, Hash)> get_tag_group_with_http_info(id, opts)
|
1014
|
+
|
1015
|
+
```ruby
|
1016
|
+
begin
|
1017
|
+
# Get Tag Group
|
1018
|
+
data, status_code, headers = api_instance.get_tag_group_with_http_info(id, opts)
|
1019
|
+
p status_code # => 2xx
|
1020
|
+
p headers # => { ... }
|
1021
|
+
p data # => Hash<String, Object>
|
1022
|
+
rescue KlaviyoAPI::ApiError => e
|
1023
|
+
puts "Error when calling TagsApi->get_tag_group_with_http_info: #{e}"
|
1024
|
+
end
|
1025
|
+
```
|
1026
|
+
|
1027
|
+
### Parameters
|
1028
|
+
|
1029
|
+
| Name | Type | Description | Notes |
|
1030
|
+
| ---- | ---- | ----------- | ----- |
|
1031
|
+
| **id** | **String** | The Tag Group ID | |
|
1032
|
+
| **fields_tag_group** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets | [optional] |
|
1033
|
+
|
1034
|
+
### Return type
|
1035
|
+
|
1036
|
+
**Hash<String, Object>**
|
1037
|
+
|
1038
|
+
### Authorization
|
1039
|
+
|
1040
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
1041
|
+
|
1042
|
+
### HTTP request headers
|
1043
|
+
|
1044
|
+
- **Content-Type**: Not defined
|
1045
|
+
- **Accept**: application/json
|
1046
|
+
|
1047
|
+
|
1048
|
+
## get_tag_group_relationships_tags
|
1049
|
+
|
1050
|
+
> Hash<String, Object> get_tag_group_relationships_tags(id)
|
1051
|
+
|
1052
|
+
Get Tag Group Relationships Tags
|
1053
|
+
|
1054
|
+
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`
|
1055
|
+
|
1056
|
+
### Examples
|
1057
|
+
|
1058
|
+
```ruby
|
1059
|
+
require 'time'
|
1060
|
+
require 'klaviyo-api-sdk'
|
1061
|
+
# setup authorization
|
1062
|
+
KlaviyoAPI.configure do |config|
|
1063
|
+
# Configure API key authorization: Klaviyo-API-Key
|
1064
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
1065
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1066
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
1067
|
+
end
|
1068
|
+
|
1069
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
1070
|
+
id = 'id_example' # String |
|
1071
|
+
|
1072
|
+
begin
|
1073
|
+
# Get Tag Group Relationships Tags
|
1074
|
+
result = api_instance.get_tag_group_relationships_tags(id)
|
1075
|
+
p result
|
1076
|
+
rescue KlaviyoAPI::ApiError => e
|
1077
|
+
puts "Error when calling TagsApi->get_tag_group_relationships_tags: #{e}"
|
1078
|
+
end
|
1079
|
+
```
|
1080
|
+
|
1081
|
+
#### Using the get_tag_group_relationships_tags_with_http_info variant
|
1082
|
+
|
1083
|
+
This returns an Array which contains the response data, status code and headers.
|
1084
|
+
|
1085
|
+
> <Array(Hash<String, Object>, Integer, Hash)> get_tag_group_relationships_tags_with_http_info(id)
|
1086
|
+
|
1087
|
+
```ruby
|
1088
|
+
begin
|
1089
|
+
# Get Tag Group Relationships Tags
|
1090
|
+
data, status_code, headers = api_instance.get_tag_group_relationships_tags_with_http_info(id)
|
1091
|
+
p status_code # => 2xx
|
1092
|
+
p headers # => { ... }
|
1093
|
+
p data # => Hash<String, Object>
|
1094
|
+
rescue KlaviyoAPI::ApiError => e
|
1095
|
+
puts "Error when calling TagsApi->get_tag_group_relationships_tags_with_http_info: #{e}"
|
1096
|
+
end
|
1097
|
+
```
|
1098
|
+
|
1099
|
+
### Parameters
|
1100
|
+
|
1101
|
+
| Name | Type | Description | Notes |
|
1102
|
+
| ---- | ---- | ----------- | ----- |
|
1103
|
+
| **id** | **String** | | |
|
1104
|
+
|
1105
|
+
### Return type
|
1106
|
+
|
1107
|
+
**Hash<String, Object>**
|
1108
|
+
|
1109
|
+
### Authorization
|
1110
|
+
|
1111
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
1112
|
+
|
1113
|
+
### HTTP request headers
|
1114
|
+
|
1115
|
+
- **Content-Type**: Not defined
|
1116
|
+
- **Accept**: application/json
|
1117
|
+
|
1118
|
+
|
1119
|
+
## get_tag_group_tags
|
1120
|
+
|
1121
|
+
> Hash<String, Object> get_tag_group_tags(id, opts)
|
1122
|
+
|
1123
|
+
Get Tag Group Tags
|
1124
|
+
|
1125
|
+
Return the tags for a given tag group ID.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `tags:read`
|
1126
|
+
|
1127
|
+
### Examples
|
1128
|
+
|
1129
|
+
```ruby
|
1130
|
+
require 'time'
|
1131
|
+
require 'klaviyo-api-sdk'
|
1132
|
+
# setup authorization
|
1133
|
+
KlaviyoAPI.configure do |config|
|
1134
|
+
# Configure API key authorization: Klaviyo-API-Key
|
1135
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
1136
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1137
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
1138
|
+
end
|
1139
|
+
|
1140
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
1141
|
+
id = 'id_example' # String |
|
1142
|
+
opts = {
|
1143
|
+
fields_tag: ['name'] # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets
|
1144
|
+
}
|
1145
|
+
|
1146
|
+
begin
|
1147
|
+
# Get Tag Group Tags
|
1148
|
+
result = api_instance.get_tag_group_tags(id, opts)
|
1149
|
+
p result
|
1150
|
+
rescue KlaviyoAPI::ApiError => e
|
1151
|
+
puts "Error when calling TagsApi->get_tag_group_tags: #{e}"
|
1152
|
+
end
|
1153
|
+
```
|
1154
|
+
|
1155
|
+
#### Using the get_tag_group_tags_with_http_info variant
|
1156
|
+
|
1157
|
+
This returns an Array which contains the response data, status code and headers.
|
1158
|
+
|
1159
|
+
> <Array(Hash<String, Object>, Integer, Hash)> get_tag_group_tags_with_http_info(id, opts)
|
1160
|
+
|
1161
|
+
```ruby
|
1162
|
+
begin
|
1163
|
+
# Get Tag Group Tags
|
1164
|
+
data, status_code, headers = api_instance.get_tag_group_tags_with_http_info(id, opts)
|
1165
|
+
p status_code # => 2xx
|
1166
|
+
p headers # => { ... }
|
1167
|
+
p data # => Hash<String, Object>
|
1168
|
+
rescue KlaviyoAPI::ApiError => e
|
1169
|
+
puts "Error when calling TagsApi->get_tag_group_tags_with_http_info: #{e}"
|
1170
|
+
end
|
1171
|
+
```
|
1172
|
+
|
1173
|
+
### Parameters
|
1174
|
+
|
1175
|
+
| Name | Type | Description | Notes |
|
1176
|
+
| ---- | ---- | ----------- | ----- |
|
1177
|
+
| **id** | **String** | | |
|
1178
|
+
| **fields_tag** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets | [optional] |
|
1179
|
+
|
1180
|
+
### Return type
|
1181
|
+
|
1182
|
+
**Hash<String, Object>**
|
1183
|
+
|
1184
|
+
### Authorization
|
1185
|
+
|
1186
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
1187
|
+
|
1188
|
+
### HTTP request headers
|
1189
|
+
|
1190
|
+
- **Content-Type**: Not defined
|
1191
|
+
- **Accept**: application/json
|
1192
|
+
|
1193
|
+
|
1194
|
+
## get_tag_groups
|
1195
|
+
|
1196
|
+
> Hash<String, Object> get_tag_groups(opts)
|
1197
|
+
|
1198
|
+
Get Tag Groups
|
1199
|
+
|
1200
|
+
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`
|
1201
|
+
|
1202
|
+
### Examples
|
1203
|
+
|
1204
|
+
```ruby
|
1205
|
+
require 'time'
|
1206
|
+
require 'klaviyo-api-sdk'
|
1207
|
+
# setup authorization
|
1208
|
+
KlaviyoAPI.configure do |config|
|
1209
|
+
# Configure API key authorization: Klaviyo-API-Key
|
1210
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
1211
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1212
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
1213
|
+
end
|
1214
|
+
|
1215
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
1216
|
+
opts = {
|
1217
|
+
fields_tag_group: ['name'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets
|
1218
|
+
filter: 'filter_example', # String | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `contains`, `ends-with`, `equals`, `starts-with`<br>`exclusive`: `equals`<br>`default`: `equals`
|
1219
|
+
page_cursor: 'page_cursor_example', # String | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#pagination
|
1220
|
+
sort: 'id' # String | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sorting
|
1221
|
+
}
|
1222
|
+
|
1223
|
+
begin
|
1224
|
+
# Get Tag Groups
|
1225
|
+
result = api_instance.get_tag_groups(opts)
|
1226
|
+
p result
|
1227
|
+
rescue KlaviyoAPI::ApiError => e
|
1228
|
+
puts "Error when calling TagsApi->get_tag_groups: #{e}"
|
1229
|
+
end
|
1230
|
+
```
|
1231
|
+
|
1232
|
+
#### Using the get_tag_groups_with_http_info variant
|
1233
|
+
|
1234
|
+
This returns an Array which contains the response data, status code and headers.
|
1235
|
+
|
1236
|
+
> <Array(Hash<String, Object>, Integer, Hash)> get_tag_groups_with_http_info(opts)
|
1237
|
+
|
1238
|
+
```ruby
|
1239
|
+
begin
|
1240
|
+
# Get Tag Groups
|
1241
|
+
data, status_code, headers = api_instance.get_tag_groups_with_http_info(opts)
|
1242
|
+
p status_code # => 2xx
|
1243
|
+
p headers # => { ... }
|
1244
|
+
p data # => Hash<String, Object>
|
1245
|
+
rescue KlaviyoAPI::ApiError => e
|
1246
|
+
puts "Error when calling TagsApi->get_tag_groups_with_http_info: #{e}"
|
1247
|
+
end
|
1248
|
+
```
|
1249
|
+
|
1250
|
+
### Parameters
|
1251
|
+
|
1252
|
+
| Name | Type | Description | Notes |
|
1253
|
+
| ---- | ---- | ----------- | ----- |
|
1254
|
+
| **fields_tag_group** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets | [optional] |
|
1255
|
+
| **filter** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/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] |
|
1256
|
+
| **page_cursor** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#pagination | [optional] |
|
1257
|
+
| **sort** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sorting | [optional] |
|
1258
|
+
|
1259
|
+
### Return type
|
1260
|
+
|
1261
|
+
**Hash<String, Object>**
|
1262
|
+
|
1263
|
+
### Authorization
|
1264
|
+
|
1265
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
1266
|
+
|
1267
|
+
### HTTP request headers
|
1268
|
+
|
1269
|
+
- **Content-Type**: Not defined
|
1270
|
+
- **Accept**: application/json
|
1271
|
+
|
1272
|
+
|
1273
|
+
## get_tag_relationships_campaigns
|
1274
|
+
|
1275
|
+
> Hash<String, Object> get_tag_relationships_campaigns(id)
|
1276
|
+
|
1277
|
+
Get Tag Relationships Campaigns
|
1278
|
+
|
1279
|
+
Returns the IDs of all campaigns associated with the given tag.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `campaigns:read` `tags:read`
|
1280
|
+
|
1281
|
+
### Examples
|
1282
|
+
|
1283
|
+
```ruby
|
1284
|
+
require 'time'
|
1285
|
+
require 'klaviyo-api-sdk'
|
1286
|
+
# setup authorization
|
1287
|
+
KlaviyoAPI.configure do |config|
|
1288
|
+
# Configure API key authorization: Klaviyo-API-Key
|
1289
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
1290
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1291
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
1292
|
+
end
|
1293
|
+
|
1294
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
1295
|
+
id = 'id_example' # String |
|
1296
|
+
|
1297
|
+
begin
|
1298
|
+
# Get Tag Relationships Campaigns
|
1299
|
+
result = api_instance.get_tag_relationships_campaigns(id)
|
1300
|
+
p result
|
1301
|
+
rescue KlaviyoAPI::ApiError => e
|
1302
|
+
puts "Error when calling TagsApi->get_tag_relationships_campaigns: #{e}"
|
1303
|
+
end
|
1304
|
+
```
|
1305
|
+
|
1306
|
+
#### Using the get_tag_relationships_campaigns_with_http_info variant
|
1307
|
+
|
1308
|
+
This returns an Array which contains the response data, status code and headers.
|
1309
|
+
|
1310
|
+
> <Array(Hash<String, Object>, Integer, Hash)> get_tag_relationships_campaigns_with_http_info(id)
|
1311
|
+
|
1312
|
+
```ruby
|
1313
|
+
begin
|
1314
|
+
# Get Tag Relationships Campaigns
|
1315
|
+
data, status_code, headers = api_instance.get_tag_relationships_campaigns_with_http_info(id)
|
1316
|
+
p status_code # => 2xx
|
1317
|
+
p headers # => { ... }
|
1318
|
+
p data # => Hash<String, Object>
|
1319
|
+
rescue KlaviyoAPI::ApiError => e
|
1320
|
+
puts "Error when calling TagsApi->get_tag_relationships_campaigns_with_http_info: #{e}"
|
1321
|
+
end
|
1322
|
+
```
|
1323
|
+
|
1324
|
+
### Parameters
|
1325
|
+
|
1326
|
+
| Name | Type | Description | Notes |
|
1327
|
+
| ---- | ---- | ----------- | ----- |
|
1328
|
+
| **id** | **String** | | |
|
1329
|
+
|
1330
|
+
### Return type
|
1331
|
+
|
1332
|
+
**Hash<String, Object>**
|
1333
|
+
|
1334
|
+
### Authorization
|
1335
|
+
|
1336
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
1337
|
+
|
1338
|
+
### HTTP request headers
|
1339
|
+
|
1340
|
+
- **Content-Type**: Not defined
|
1341
|
+
- **Accept**: application/json
|
1342
|
+
|
1343
|
+
|
1344
|
+
## get_tag_relationships_flows
|
1345
|
+
|
1346
|
+
> Hash<String, Object> get_tag_relationships_flows(id)
|
1347
|
+
|
1348
|
+
Get Tag Relationships Flows
|
1349
|
+
|
1350
|
+
Returns the IDs of all flows associated with the given tag.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `flows:read` `tags:read`
|
1351
|
+
|
1352
|
+
### Examples
|
1353
|
+
|
1354
|
+
```ruby
|
1355
|
+
require 'time'
|
1356
|
+
require 'klaviyo-api-sdk'
|
1357
|
+
# setup authorization
|
1358
|
+
KlaviyoAPI.configure do |config|
|
1359
|
+
# Configure API key authorization: Klaviyo-API-Key
|
1360
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
1361
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1362
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
1363
|
+
end
|
1364
|
+
|
1365
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
1366
|
+
id = 'id_example' # String |
|
1367
|
+
|
1368
|
+
begin
|
1369
|
+
# Get Tag Relationships Flows
|
1370
|
+
result = api_instance.get_tag_relationships_flows(id)
|
1371
|
+
p result
|
1372
|
+
rescue KlaviyoAPI::ApiError => e
|
1373
|
+
puts "Error when calling TagsApi->get_tag_relationships_flows: #{e}"
|
1374
|
+
end
|
1375
|
+
```
|
1376
|
+
|
1377
|
+
#### Using the get_tag_relationships_flows_with_http_info variant
|
1378
|
+
|
1379
|
+
This returns an Array which contains the response data, status code and headers.
|
1380
|
+
|
1381
|
+
> <Array(Hash<String, Object>, Integer, Hash)> get_tag_relationships_flows_with_http_info(id)
|
1382
|
+
|
1383
|
+
```ruby
|
1384
|
+
begin
|
1385
|
+
# Get Tag Relationships Flows
|
1386
|
+
data, status_code, headers = api_instance.get_tag_relationships_flows_with_http_info(id)
|
1387
|
+
p status_code # => 2xx
|
1388
|
+
p headers # => { ... }
|
1389
|
+
p data # => Hash<String, Object>
|
1390
|
+
rescue KlaviyoAPI::ApiError => e
|
1391
|
+
puts "Error when calling TagsApi->get_tag_relationships_flows_with_http_info: #{e}"
|
1392
|
+
end
|
1393
|
+
```
|
1394
|
+
|
1395
|
+
### Parameters
|
1396
|
+
|
1397
|
+
| Name | Type | Description | Notes |
|
1398
|
+
| ---- | ---- | ----------- | ----- |
|
1399
|
+
| **id** | **String** | | |
|
1400
|
+
|
1401
|
+
### Return type
|
1402
|
+
|
1403
|
+
**Hash<String, Object>**
|
1404
|
+
|
1405
|
+
### Authorization
|
1406
|
+
|
1407
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
1408
|
+
|
1409
|
+
### HTTP request headers
|
1410
|
+
|
1411
|
+
- **Content-Type**: Not defined
|
1412
|
+
- **Accept**: application/json
|
1413
|
+
|
1414
|
+
|
1415
|
+
## get_tag_relationships_lists
|
1416
|
+
|
1417
|
+
> Hash<String, Object> get_tag_relationships_lists(id)
|
1418
|
+
|
1419
|
+
Get Tag Relationships Lists
|
1420
|
+
|
1421
|
+
Returns the IDs of all lists associated with the given tag.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `list:read` `tags:read`
|
1422
|
+
|
1423
|
+
### Examples
|
1424
|
+
|
1425
|
+
```ruby
|
1426
|
+
require 'time'
|
1427
|
+
require 'klaviyo-api-sdk'
|
1428
|
+
# setup authorization
|
1429
|
+
KlaviyoAPI.configure do |config|
|
1430
|
+
# Configure API key authorization: Klaviyo-API-Key
|
1431
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
1432
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1433
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
1434
|
+
end
|
1435
|
+
|
1436
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
1437
|
+
id = 'id_example' # String |
|
1438
|
+
|
1439
|
+
begin
|
1440
|
+
# Get Tag Relationships Lists
|
1441
|
+
result = api_instance.get_tag_relationships_lists(id)
|
1442
|
+
p result
|
1443
|
+
rescue KlaviyoAPI::ApiError => e
|
1444
|
+
puts "Error when calling TagsApi->get_tag_relationships_lists: #{e}"
|
1445
|
+
end
|
1446
|
+
```
|
1447
|
+
|
1448
|
+
#### Using the get_tag_relationships_lists_with_http_info variant
|
1449
|
+
|
1450
|
+
This returns an Array which contains the response data, status code and headers.
|
1451
|
+
|
1452
|
+
> <Array(Hash<String, Object>, Integer, Hash)> get_tag_relationships_lists_with_http_info(id)
|
1453
|
+
|
1454
|
+
```ruby
|
1455
|
+
begin
|
1456
|
+
# Get Tag Relationships Lists
|
1457
|
+
data, status_code, headers = api_instance.get_tag_relationships_lists_with_http_info(id)
|
1458
|
+
p status_code # => 2xx
|
1459
|
+
p headers # => { ... }
|
1460
|
+
p data # => Hash<String, Object>
|
1461
|
+
rescue KlaviyoAPI::ApiError => e
|
1462
|
+
puts "Error when calling TagsApi->get_tag_relationships_lists_with_http_info: #{e}"
|
1463
|
+
end
|
1464
|
+
```
|
1465
|
+
|
1466
|
+
### Parameters
|
1467
|
+
|
1468
|
+
| Name | Type | Description | Notes |
|
1469
|
+
| ---- | ---- | ----------- | ----- |
|
1470
|
+
| **id** | **String** | | |
|
1471
|
+
|
1472
|
+
### Return type
|
1473
|
+
|
1474
|
+
**Hash<String, Object>**
|
1475
|
+
|
1476
|
+
### Authorization
|
1477
|
+
|
1478
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
1479
|
+
|
1480
|
+
### HTTP request headers
|
1481
|
+
|
1482
|
+
- **Content-Type**: Not defined
|
1483
|
+
- **Accept**: application/json
|
1484
|
+
|
1485
|
+
|
1486
|
+
## get_tag_relationships_segments
|
1487
|
+
|
1488
|
+
> Hash<String, Object> get_tag_relationships_segments(id)
|
1489
|
+
|
1490
|
+
Get Tag Relationships Segments
|
1491
|
+
|
1492
|
+
Returns the IDs of all segments associated with the given tag.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `segments:read` `tags:read`
|
1493
|
+
|
1494
|
+
### Examples
|
1495
|
+
|
1496
|
+
```ruby
|
1497
|
+
require 'time'
|
1498
|
+
require 'klaviyo-api-sdk'
|
1499
|
+
# setup authorization
|
1500
|
+
KlaviyoAPI.configure do |config|
|
1501
|
+
# Configure API key authorization: Klaviyo-API-Key
|
1502
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
1503
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1504
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
1505
|
+
end
|
1506
|
+
|
1507
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
1508
|
+
id = 'id_example' # String |
|
1509
|
+
|
1510
|
+
begin
|
1511
|
+
# Get Tag Relationships Segments
|
1512
|
+
result = api_instance.get_tag_relationships_segments(id)
|
1513
|
+
p result
|
1514
|
+
rescue KlaviyoAPI::ApiError => e
|
1515
|
+
puts "Error when calling TagsApi->get_tag_relationships_segments: #{e}"
|
1516
|
+
end
|
1517
|
+
```
|
1518
|
+
|
1519
|
+
#### Using the get_tag_relationships_segments_with_http_info variant
|
1520
|
+
|
1521
|
+
This returns an Array which contains the response data, status code and headers.
|
1522
|
+
|
1523
|
+
> <Array(Hash<String, Object>, Integer, Hash)> get_tag_relationships_segments_with_http_info(id)
|
1524
|
+
|
1525
|
+
```ruby
|
1526
|
+
begin
|
1527
|
+
# Get Tag Relationships Segments
|
1528
|
+
data, status_code, headers = api_instance.get_tag_relationships_segments_with_http_info(id)
|
1529
|
+
p status_code # => 2xx
|
1530
|
+
p headers # => { ... }
|
1531
|
+
p data # => Hash<String, Object>
|
1532
|
+
rescue KlaviyoAPI::ApiError => e
|
1533
|
+
puts "Error when calling TagsApi->get_tag_relationships_segments_with_http_info: #{e}"
|
1534
|
+
end
|
1535
|
+
```
|
1536
|
+
|
1537
|
+
### Parameters
|
1538
|
+
|
1539
|
+
| Name | Type | Description | Notes |
|
1540
|
+
| ---- | ---- | ----------- | ----- |
|
1541
|
+
| **id** | **String** | | |
|
1542
|
+
|
1543
|
+
### Return type
|
1544
|
+
|
1545
|
+
**Hash<String, Object>**
|
1546
|
+
|
1547
|
+
### Authorization
|
1548
|
+
|
1549
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
1550
|
+
|
1551
|
+
### HTTP request headers
|
1552
|
+
|
1553
|
+
- **Content-Type**: Not defined
|
1554
|
+
- **Accept**: application/json
|
1555
|
+
|
1556
|
+
|
1557
|
+
## get_tag_relationships_tag_group
|
1558
|
+
|
1559
|
+
> Hash<String, Object> get_tag_relationships_tag_group(id)
|
1560
|
+
|
1561
|
+
Get Tag Relationships Tag Group
|
1562
|
+
|
1563
|
+
Returns the id of the tag group related to the given tag.<br><br>*Rate limits*:<br>Burst: `3/s`<br>Steady: `60/m` **Scopes:** `tags:read`
|
1564
|
+
|
1565
|
+
### Examples
|
1566
|
+
|
1567
|
+
```ruby
|
1568
|
+
require 'time'
|
1569
|
+
require 'klaviyo-api-sdk'
|
1570
|
+
# setup authorization
|
1571
|
+
KlaviyoAPI.configure do |config|
|
1572
|
+
# Configure API key authorization: Klaviyo-API-Key
|
1573
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
1574
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1575
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
1576
|
+
end
|
1577
|
+
|
1578
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
1579
|
+
id = 'id_example' # String |
|
1580
|
+
|
1581
|
+
begin
|
1582
|
+
# Get Tag Relationships Tag Group
|
1583
|
+
result = api_instance.get_tag_relationships_tag_group(id)
|
1584
|
+
p result
|
1585
|
+
rescue KlaviyoAPI::ApiError => e
|
1586
|
+
puts "Error when calling TagsApi->get_tag_relationships_tag_group: #{e}"
|
1587
|
+
end
|
1588
|
+
```
|
1589
|
+
|
1590
|
+
#### Using the get_tag_relationships_tag_group_with_http_info variant
|
1591
|
+
|
1592
|
+
This returns an Array which contains the response data, status code and headers.
|
1593
|
+
|
1594
|
+
> <Array(Hash<String, Object>, Integer, Hash)> get_tag_relationships_tag_group_with_http_info(id)
|
1595
|
+
|
1596
|
+
```ruby
|
1597
|
+
begin
|
1598
|
+
# Get Tag Relationships Tag Group
|
1599
|
+
data, status_code, headers = api_instance.get_tag_relationships_tag_group_with_http_info(id)
|
1600
|
+
p status_code # => 2xx
|
1601
|
+
p headers # => { ... }
|
1602
|
+
p data # => Hash<String, Object>
|
1603
|
+
rescue KlaviyoAPI::ApiError => e
|
1604
|
+
puts "Error when calling TagsApi->get_tag_relationships_tag_group_with_http_info: #{e}"
|
1605
|
+
end
|
1606
|
+
```
|
1607
|
+
|
1608
|
+
### Parameters
|
1609
|
+
|
1610
|
+
| Name | Type | Description | Notes |
|
1611
|
+
| ---- | ---- | ----------- | ----- |
|
1612
|
+
| **id** | **String** | | |
|
1613
|
+
|
1614
|
+
### Return type
|
1615
|
+
|
1616
|
+
**Hash<String, Object>**
|
1617
|
+
|
1618
|
+
### Authorization
|
1619
|
+
|
1620
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
1621
|
+
|
1622
|
+
### HTTP request headers
|
1623
|
+
|
1624
|
+
- **Content-Type**: Not defined
|
1625
|
+
- **Accept**: application/json
|
1626
|
+
|
1627
|
+
|
1628
|
+
## get_tag_tag_group
|
1629
|
+
|
1630
|
+
> Hash<String, Object> get_tag_tag_group(id, opts)
|
1631
|
+
|
1632
|
+
Get Tag Tag Group
|
1633
|
+
|
1634
|
+
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`
|
1635
|
+
|
1636
|
+
### Examples
|
1637
|
+
|
1638
|
+
```ruby
|
1639
|
+
require 'time'
|
1640
|
+
require 'klaviyo-api-sdk'
|
1641
|
+
# setup authorization
|
1642
|
+
KlaviyoAPI.configure do |config|
|
1643
|
+
# Configure API key authorization: Klaviyo-API-Key
|
1644
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
1645
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1646
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
1647
|
+
end
|
1648
|
+
|
1649
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
1650
|
+
id = 'id_example' # String |
|
1651
|
+
opts = {
|
1652
|
+
fields_tag_group: ['name'] # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets
|
1653
|
+
}
|
1654
|
+
|
1655
|
+
begin
|
1656
|
+
# Get Tag Tag Group
|
1657
|
+
result = api_instance.get_tag_tag_group(id, opts)
|
1658
|
+
p result
|
1659
|
+
rescue KlaviyoAPI::ApiError => e
|
1660
|
+
puts "Error when calling TagsApi->get_tag_tag_group: #{e}"
|
1661
|
+
end
|
1662
|
+
```
|
1663
|
+
|
1664
|
+
#### Using the get_tag_tag_group_with_http_info variant
|
1665
|
+
|
1666
|
+
This returns an Array which contains the response data, status code and headers.
|
1667
|
+
|
1668
|
+
> <Array(Hash<String, Object>, Integer, Hash)> get_tag_tag_group_with_http_info(id, opts)
|
1669
|
+
|
1670
|
+
```ruby
|
1671
|
+
begin
|
1672
|
+
# Get Tag Tag Group
|
1673
|
+
data, status_code, headers = api_instance.get_tag_tag_group_with_http_info(id, opts)
|
1674
|
+
p status_code # => 2xx
|
1675
|
+
p headers # => { ... }
|
1676
|
+
p data # => Hash<String, Object>
|
1677
|
+
rescue KlaviyoAPI::ApiError => e
|
1678
|
+
puts "Error when calling TagsApi->get_tag_tag_group_with_http_info: #{e}"
|
1679
|
+
end
|
1680
|
+
```
|
1681
|
+
|
1682
|
+
### Parameters
|
1683
|
+
|
1684
|
+
| Name | Type | Description | Notes |
|
1685
|
+
| ---- | ---- | ----------- | ----- |
|
1686
|
+
| **id** | **String** | | |
|
1687
|
+
| **fields_tag_group** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets | [optional] |
|
1688
|
+
|
1689
|
+
### Return type
|
1690
|
+
|
1691
|
+
**Hash<String, Object>**
|
1692
|
+
|
1693
|
+
### Authorization
|
1694
|
+
|
1695
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
1696
|
+
|
1697
|
+
### HTTP request headers
|
1698
|
+
|
1699
|
+
- **Content-Type**: Not defined
|
1700
|
+
- **Accept**: application/json
|
1701
|
+
|
1702
|
+
|
1703
|
+
## get_tags
|
1704
|
+
|
1705
|
+
> Hash<String, Object> get_tags(opts)
|
1706
|
+
|
1707
|
+
Get Tags
|
1708
|
+
|
1709
|
+
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`
|
1710
|
+
|
1711
|
+
### Examples
|
1712
|
+
|
1713
|
+
```ruby
|
1714
|
+
require 'time'
|
1715
|
+
require 'klaviyo-api-sdk'
|
1716
|
+
# setup authorization
|
1717
|
+
KlaviyoAPI.configure do |config|
|
1718
|
+
# Configure API key authorization: Klaviyo-API-Key
|
1719
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
1720
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1721
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
1722
|
+
end
|
1723
|
+
|
1724
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
1725
|
+
opts = {
|
1726
|
+
fields_tag_group: ['name'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets
|
1727
|
+
fields_tag: ['name'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets
|
1728
|
+
filter: 'filter_example', # String | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `contains`, `ends-with`, `equals`, `starts-with`
|
1729
|
+
include: ['tag-group'], # Array<String> | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#relationships
|
1730
|
+
page_cursor: 'page_cursor_example', # String | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#pagination
|
1731
|
+
sort: 'id' # String | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sorting
|
1732
|
+
}
|
1733
|
+
|
1734
|
+
begin
|
1735
|
+
# Get Tags
|
1736
|
+
result = api_instance.get_tags(opts)
|
1737
|
+
p result
|
1738
|
+
rescue KlaviyoAPI::ApiError => e
|
1739
|
+
puts "Error when calling TagsApi->get_tags: #{e}"
|
1740
|
+
end
|
1741
|
+
```
|
1742
|
+
|
1743
|
+
#### Using the get_tags_with_http_info variant
|
1744
|
+
|
1745
|
+
This returns an Array which contains the response data, status code and headers.
|
1746
|
+
|
1747
|
+
> <Array(Hash<String, Object>, Integer, Hash)> get_tags_with_http_info(opts)
|
1748
|
+
|
1749
|
+
```ruby
|
1750
|
+
begin
|
1751
|
+
# Get Tags
|
1752
|
+
data, status_code, headers = api_instance.get_tags_with_http_info(opts)
|
1753
|
+
p status_code # => 2xx
|
1754
|
+
p headers # => { ... }
|
1755
|
+
p data # => Hash<String, Object>
|
1756
|
+
rescue KlaviyoAPI::ApiError => e
|
1757
|
+
puts "Error when calling TagsApi->get_tags_with_http_info: #{e}"
|
1758
|
+
end
|
1759
|
+
```
|
1760
|
+
|
1761
|
+
### Parameters
|
1762
|
+
|
1763
|
+
| Name | Type | Description | Notes |
|
1764
|
+
| ---- | ---- | ----------- | ----- |
|
1765
|
+
| **fields_tag_group** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets | [optional] |
|
1766
|
+
| **fields_tag** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sparse-fieldsets | [optional] |
|
1767
|
+
| **filter** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`name`: `contains`, `ends-with`, `equals`, `starts-with` | [optional] |
|
1768
|
+
| **include** | [**Array<String>**](String.md) | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#relationships | [optional] |
|
1769
|
+
| **page_cursor** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#pagination | [optional] |
|
1770
|
+
| **sort** | **String** | For more information please visit https://developers.klaviyo.com/en/v2023-08-15/reference/api-overview#sorting | [optional] |
|
1771
|
+
|
1772
|
+
### Return type
|
1773
|
+
|
1774
|
+
**Hash<String, Object>**
|
1775
|
+
|
1776
|
+
### Authorization
|
1777
|
+
|
1778
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
1779
|
+
|
1780
|
+
### HTTP request headers
|
1781
|
+
|
1782
|
+
- **Content-Type**: Not defined
|
1783
|
+
- **Accept**: application/json
|
1784
|
+
|
1785
|
+
|
1786
|
+
## update_tag
|
1787
|
+
|
1788
|
+
> update_tag(id, tag_update_query)
|
1789
|
+
|
1790
|
+
Update Tag
|
1791
|
+
|
1792
|
+
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`
|
1793
|
+
|
1794
|
+
### Examples
|
1795
|
+
|
1796
|
+
```ruby
|
1797
|
+
require 'time'
|
1798
|
+
require 'klaviyo-api-sdk'
|
1799
|
+
# setup authorization
|
1800
|
+
KlaviyoAPI.configure do |config|
|
1801
|
+
# Configure API key authorization: Klaviyo-API-Key
|
1802
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
1803
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1804
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
1805
|
+
end
|
1806
|
+
|
1807
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
1808
|
+
id = 'abcd1234-ef56-gh78-ij90-abcdef123456' # String | The Tag ID
|
1809
|
+
tag_update_query = KlaviyoAPI::TagUpdateQuery.new({data: KlaviyoAPI::TagUpdateQueryResourceObject.new({type: KlaviyoAPI::TagEnum::TAG, id: 'abcd1234-ef56-gh78-ij90-abcdef123456', attributes: KlaviyoAPI::TagCreateQueryResourceObjectAttributes.new({name: 'My Tag'})})}) # TagUpdateQuery |
|
1810
|
+
|
1811
|
+
begin
|
1812
|
+
# Update Tag
|
1813
|
+
api_instance.update_tag(id, tag_update_query)
|
1814
|
+
rescue KlaviyoAPI::ApiError => e
|
1815
|
+
puts "Error when calling TagsApi->update_tag: #{e}"
|
1816
|
+
end
|
1817
|
+
```
|
1818
|
+
|
1819
|
+
#### Using the update_tag_with_http_info variant
|
1820
|
+
|
1821
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
1822
|
+
|
1823
|
+
> <Array(nil, Integer, Hash)> update_tag_with_http_info(id, tag_update_query)
|
1824
|
+
|
1825
|
+
```ruby
|
1826
|
+
begin
|
1827
|
+
# Update Tag
|
1828
|
+
data, status_code, headers = api_instance.update_tag_with_http_info(id, tag_update_query)
|
1829
|
+
p status_code # => 2xx
|
1830
|
+
p headers # => { ... }
|
1831
|
+
p data # => nil
|
1832
|
+
rescue KlaviyoAPI::ApiError => e
|
1833
|
+
puts "Error when calling TagsApi->update_tag_with_http_info: #{e}"
|
1834
|
+
end
|
1835
|
+
```
|
1836
|
+
|
1837
|
+
### Parameters
|
1838
|
+
|
1839
|
+
| Name | Type | Description | Notes |
|
1840
|
+
| ---- | ---- | ----------- | ----- |
|
1841
|
+
| **id** | **String** | The Tag ID | |
|
1842
|
+
| **tag_update_query** | [**TagUpdateQuery**](TagUpdateQuery.md) | | |
|
1843
|
+
|
1844
|
+
### Return type
|
1845
|
+
|
1846
|
+
nil (empty response body)
|
1847
|
+
|
1848
|
+
### Authorization
|
1849
|
+
|
1850
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
1851
|
+
|
1852
|
+
### HTTP request headers
|
1853
|
+
|
1854
|
+
- **Content-Type**: application/json
|
1855
|
+
- **Accept**: application/json
|
1856
|
+
|
1857
|
+
|
1858
|
+
## update_tag_group
|
1859
|
+
|
1860
|
+
> Hash<String, Object> update_tag_group(id, tag_group_update_query)
|
1861
|
+
|
1862
|
+
Update Tag Group
|
1863
|
+
|
1864
|
+
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`
|
1865
|
+
|
1866
|
+
### Examples
|
1867
|
+
|
1868
|
+
```ruby
|
1869
|
+
require 'time'
|
1870
|
+
require 'klaviyo-api-sdk'
|
1871
|
+
# setup authorization
|
1872
|
+
KlaviyoAPI.configure do |config|
|
1873
|
+
# Configure API key authorization: Klaviyo-API-Key
|
1874
|
+
config.api_key['Klaviyo-API-Key'] = 'YOUR API KEY'
|
1875
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1876
|
+
# config.api_key_prefix['Klaviyo-API-Key'] = 'Bearer'
|
1877
|
+
end
|
1878
|
+
|
1879
|
+
api_instance = KlaviyoAPI::TagsApi.new
|
1880
|
+
id = 'zyxw9876-vu54-ts32-rq10-zyxwvu654321' # String | The Tag Group ID
|
1881
|
+
tag_group_update_query = KlaviyoAPI::TagGroupUpdateQuery.new({data: KlaviyoAPI::TagGroupUpdateQueryResourceObject.new({type: KlaviyoAPI::TagGroupEnum::TAG_GROUP, id: 'zyxw9876-vu54-ts32-rq10-zyxwvu654321', attributes: KlaviyoAPI::TagGroupUpdateQueryResourceObjectAttributes.new({name: 'My Tag Group'})})}) # TagGroupUpdateQuery |
|
1882
|
+
|
1883
|
+
begin
|
1884
|
+
# Update Tag Group
|
1885
|
+
result = api_instance.update_tag_group(id, tag_group_update_query)
|
1886
|
+
p result
|
1887
|
+
rescue KlaviyoAPI::ApiError => e
|
1888
|
+
puts "Error when calling TagsApi->update_tag_group: #{e}"
|
1889
|
+
end
|
1890
|
+
```
|
1891
|
+
|
1892
|
+
#### Using the update_tag_group_with_http_info variant
|
1893
|
+
|
1894
|
+
This returns an Array which contains the response data, status code and headers.
|
1895
|
+
|
1896
|
+
> <Array(Hash<String, Object>, Integer, Hash)> update_tag_group_with_http_info(id, tag_group_update_query)
|
1897
|
+
|
1898
|
+
```ruby
|
1899
|
+
begin
|
1900
|
+
# Update Tag Group
|
1901
|
+
data, status_code, headers = api_instance.update_tag_group_with_http_info(id, tag_group_update_query)
|
1902
|
+
p status_code # => 2xx
|
1903
|
+
p headers # => { ... }
|
1904
|
+
p data # => Hash<String, Object>
|
1905
|
+
rescue KlaviyoAPI::ApiError => e
|
1906
|
+
puts "Error when calling TagsApi->update_tag_group_with_http_info: #{e}"
|
1907
|
+
end
|
1908
|
+
```
|
1909
|
+
|
1910
|
+
### Parameters
|
1911
|
+
|
1912
|
+
| Name | Type | Description | Notes |
|
1913
|
+
| ---- | ---- | ----------- | ----- |
|
1914
|
+
| **id** | **String** | The Tag Group ID | |
|
1915
|
+
| **tag_group_update_query** | [**TagGroupUpdateQuery**](TagGroupUpdateQuery.md) | | |
|
1916
|
+
|
1917
|
+
### Return type
|
1918
|
+
|
1919
|
+
**Hash<String, Object>**
|
1920
|
+
|
1921
|
+
### Authorization
|
1922
|
+
|
1923
|
+
[Klaviyo-API-Key](../README.md#Klaviyo-API-Key)
|
1924
|
+
|
1925
|
+
### HTTP request headers
|
1926
|
+
|
1927
|
+
- **Content-Type**: application/json
|
1928
|
+
- **Accept**: application/json
|
1929
|
+
|