Authorization: Bearer ********************curl --location --request PUT '/desktop/customer-segments/update/1' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "VIP Customers Updated",
"description": "Updated description",
"icon": "https://cdn.example.com/icons/vip2.png",
"criteria": { "minOrders": 10 },
"isActive": false
}'{
"success": true,
"message": "Business customer segment updated successfully!",
"data": {
"id": "1",
"business_id": "133",
"user_id": "2",
"name": "VIP Customers Updated",
"description": "Updated description",
"icon": "https://cdn.example.com/icons/vip2.png",
"is_default": false,
"segment_type": "custom",
"criteria": "{\"minOrders\":10}",
"is_active": false,
"raw": "",
"deleted_at": null,
"created_at": "2025-07-07T22:41:17.908+01:00",
"updated_at": "2025-07-07T23:04:18.226+01:00"
}
}