curl --request PUT \
--url https://api.hyperline.co/v1/customers/segments/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"rules": [
{
"operator": "and",
"conditions": [
{
"field": "country",
"operator": "in",
"value": [
"FR"
]
}
]
}
]
}
'{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"rules": [
{
"id": "<string>",
"operator": "and",
"conditions": [
{
"field": "country",
"operator": "in",
"value": [
"FR"
]
}
]
}
],
"created_at": "2023-12-25",
"updated_at": "2023-12-25"
}Update an existing customer segment.
curl --request PUT \
--url https://api.hyperline.co/v1/customers/segments/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"rules": [
{
"operator": "and",
"conditions": [
{
"field": "country",
"operator": "in",
"value": [
"FR"
]
}
]
}
]
}
'{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"rules": [
{
"id": "<string>",
"operator": "and",
"conditions": [
{
"field": "country",
"operator": "in",
"value": [
"FR"
]
}
]
}
],
"created_at": "2023-12-25",
"updated_at": "2023-12-25"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Was this page helpful?