provider segmenting contactsSegmenting Contacts PATCH /marketing/segments/{segment_id}
@utdk/sendgrid /marketing/segments/{segment_id}
Update Segment
**This endpoint allows you to update a segment.** Segment `name` needs to be unique. A user can not update a segment name to an existing one.
segment_id path required
string

Try it

Authentication
Configure credentials for Email Activity (beta)
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

patchMarketingSegmentsSegmentId
PATCH/marketing/segments/{segment_id}
**This endpoint allows you to update a segment.** Segment `name` needs to be unique. A user can not update a segment name to an existing one.

Parameters

required

Input

required

Name of the segment.

The array of list ids to filter contacts on when building this segment. It allows only one such list id for now. We will support more in future

required

SQL query which will filter contacts based on the conditions provided

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import sendgrid from '@utdk/sendgrid';

await sendgrid.patchMarketingSegmentsSegmentId()