AdHub App icon

AdHub App

Manage AdHub leads, activities, sources, statuses, tags, and custom fields

Lead Segment → Update

AI-generated

Summary

Update an existing lead segment by specifying its segment ID and either providing the segment data as a JSON object or filling out form fields for name, match type, and conditions.

Inputs

  • Segment ID (required) — Identifier of the lead segment to update.
  • Body Type — Format to provide the update details: either as a JSON string or via form fields.
  • Body (JSON) — A JSON object representing the lead segment details to update, used if Body Type is set to JSON.
  • Name — Unique display name for the segment (max 255 characters), used when providing data via form.
  • Match Type — Determines how segment conditions are combined: ALL (every condition) or ANY (at least one condition), used in form body.
  • Conditions — A collection of filter conditions defining the segment, required at least one to create but optional for update; each condition includes category, field, operator, and value, used when providing data via form.

Output shape

a single JSON object representing the updated lead segment as returned by the AdHub App API

The output reflects the updated state of the lead segment after the operation. The segment ID is required and must identify an existing segment. When Body Type is 'json', the full update body must be provided as a valid JSON string; when 'form', the user fills in the individual fields. Behavior on invalid input or missing required information depends on the API's response.

Links

Discussion