Docs

Update Segment

Updates an existing segment in Moosend.

PUT

Query

Field selectionChoose which fields should be included in the response. Learn more
string

Comma-separated response fields to include.

Body

Arguments
stringrequired

The ID of the email list that contains the segment.

stringrequired

The ID of the segment to be updated.

string

The name of the segment. If not specified, the existing name is retained.

string

Specifies how subscribers are returned by your segment based on matching criteria. If not specified, All is assumed. All (Default) - returns subscribers that match all the given criteria. Any - returns subscribers that match any of the given criteria.

string

Specifies how many criteria-matching subscribers are contained in your segment. If not specified, All is assumed. All - returns all criteria matching subscribers. Top - returns only a maximum number of subscribers defined in  FetchValue . TopPercent - returns only a percentage of subscribers defined in  FetchValue .

number

Specifies the maximum number for FetchType:Top or percentage for FetchType:TopPercent of members to be contained in the created segment. If not specified, 0 is assumed.

object

An array containing the criteria parameters used to filter the email list. If not specified, existing criteria are retained. Field - the criterion used to filter the email list. See Field values . Comparer - the operator that defines how to compare a Field with its Value . See Comparer values . Value - the search term used to filter the specified Field . LastXMinutes - constrains the results by the time that has elapsed. DateFrom to DateTo - constrains the results by a date span. Date Function - the value used with custom fields of dateTime data type. See DateFunction values .

Every app you connect,one REST pattern

Call any app with one REST pattern. MindCloud handles each provider's auth, request shape, and responses for you.

Learn what the Universal API is
One REST patternUse the same request structure across apps like Slack, HubSpot, Salesforce, and thousands more.
Managed connectionsSend a MindCloud connection ID instead of handling provider tokens, refresh logic, and credential storage yourself.
Action-level docsEach action page shows the exact endpoint, required arguments, optional controls, and response behavior for that app version.