create-segment
Create a new segment in a specified product by providing its ID and segment details, including name, comparison attribute, comparator, and comparison value, to define targeted user audiences.
Instructions
This endpoint creates a new Segment in a specified Product
identified by the productId parameter, which can be obtained from the List Products endpoint.
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": {
"productId": "<productId>",
"requestBody": "<requestBody>"
},
"name": "create-segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| productId | Yes | The identifier of the Product. | |
| requestBody | Yes |