Update Segment
update_segmentUpdate a SendGrid contact segment's name or query criteria to adjust audience targeting. Provide the segment ID and the new data to modify.
Instructions
Update an existing segment's name or query criteria
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"segment_id": "<segment_id>"
},
"name": "update_segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name for the segment | |
| query_dsl | No | New query criteria for the segment (JSON string) | |
| segment_id | Yes | ID of the segment to update |