Update Filter Segment
This API updates an existing filter segment by its ID.
Authorizations
Authentication is done via Basic Auth. This requires a base64-encoded string of your credentials in the format 'username:password'.
- Username: Use your MoEngage workspace ID (also known as the App ID). You can find it in the MoEngage dashboard at Settings > Account > APIs > Workspace ID (earlier app id).
- Password: Use your API Key, which you can find within the Data tile.
For more information on authentication and getting your credentials, refer here.
Headers
This is the Workspace ID of your MoEngage account that must be passed with the request. You can find it in the MoEngage dashboard at Settings > Account > APIs > Workspace ID (earlier app id).
You can send MOE-DBNAME with your database name instead of this header. The request must include one of the two.
Your MoEngage database name. Send this as an alternative to MOE-APPKEY when you identify the
workspace by database name. Omit it when MOE-APPKEY is already present.
Path Parameters
The ID of the segment.
Body
The updated filter definition for the segment.
Request schema for updating an existing filter-based segment.
The updated filter criteria for inclusion. Users matching these filters will be part of the segment.
A new unique name for the segment.
Optional. The updated filter criteria for exclusion. Users matching these filters are removed from the
included set even if they satisfy included_filters.
Email of the user performing the update (for example, [email protected]).
Response
Segment updated successfully. Returns the updated segment details including the new filter definition and metadata.