Campaigns

Add Segment

Add a segment filter to a campaign

Required Scopes: campaigns:update

post/api/v1/campaigns/{campaign_id}/segments

Request

  • Base URL: https://api.sendseven.com
  • URL: https://api.sendseven.com/api/v1/campaigns/{campaign_id}/segments
  • Auth: HTTP bearer

Path parameters

campaign_idstring required

Request body

filter_type'tag' | 'custom_field' | 'all_contacts' | 'dynamic_list' required
filter_operator'equals' | 'not_equals' | 'contains' | 'not_contains' | 'in' | 'not_in' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'is_set' | 'is_not_set'
filter_valueobject nullable
logical_operator'and' | 'or'
filter_orderinteger

Response

Successful Response

idstring required
campaign_idstring required
filter_type'tag' | 'custom_field' | 'all_contacts' | 'dynamic_list' required
filter_operator'equals' | 'not_equals' | 'contains' | 'not_contains' | 'in' | 'not_in' | 'greater_than' | 'less_than' | 'greater_than_or_equal' | 'less_than_or_equal' | 'is_set' | 'is_not_set' required
filter_valueobject nullable required
logical_operator'and' | 'or' required
filter_orderinteger required
created_atstring date-time required

Changes

No recorded changes to this operation across all 3 revisions of this API.