provider Segmenting Contacts V2 - Beta PATCH /marketing/segments/2.0/{segment_id}
@utdk/sendgrid /marketing/segments/2.0/{segment_id}
Update Segment
**The Segmentation V2 API is currently in private beta. If you'd like to be added to the beta, please fill out this [form]({https://docs.google.com/forms/d/e/1FAIpQLSd5zwC9dRk8lAp1oTWjdGc-aSY69flW_7wnutvKBhpUluSnfQ/viewform)** Segment `name` has to be unique. A user can not create a new segment with an existing segment name.
segment_id path required
string

Try it

Authentication
Configure credentials for Email Activity (beta)
patchSegmentsSegmentId
PATCH/marketing/segments/2.0/{segment_id}
**The Segmentation V2 API is currently in private beta. If you'd like to be added to the beta, please fill out this [form]({https://docs.google.com/forms/d/e/1FAIpQLSd5zwC9dRk8lAp1oTWjdGc-aSY69flW_7wnutvKBhpUluSnfQ/viewform)** Segment `name` has to be unique. A user can not create a new segment with an existing segment name.

Parameters

required

Input

Name of the segment.

SQL query which will filter contacts based on the conditions provided

Configure credentials above to enable sending.

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

TypeScript

import sendgrid from '@utdk/sendgrid';

await sendgrid.patchSegmentsSegmentId()