Segments

Add/Remove segment in/from the exclusion list

Changed on

Adds/Removes the passed segment id in/from the exclusion list. Exclusion list allows to exclude all the users from the segment during the export job. Pass auth_id to scope the exclusion to one authorization; workflow-level and auth-level exclusions are combined, never substituted.

post/segment/exclude/{operation}

Request

  • Base URL
    https://api.lytics.io/v2
  • URL
    https://api.lytics.io/v2/segment/exclude/{operation}
  • Auth
    API key in header Authorization

Path parameters

operationstring required

Operation add or remove

Query parameters

account_idstring

The account ID. Defaults to the user's default account.

workflowstring

Workflow slug.

segment_idstring

Segment id. The segment that needs to be added/removed in/from the exclusion list.

auth_idstring

Authorization id. Scopes the exclusion to jobs delivering through this authorization. Omit workflow to apply it to every workflow using the authorization.

Response

OK

_metaobject

Response Metadata

dataobject

Response Payload

request_idstring
statusinteger

HTTP Status Code

Changes