{
"name": "Nike Shoe Price Drop Watch",
"target_type": "product",
"target_ids": [
"123456789"
],
"status": "active",
"rules": [
{
"field": "final_price",
"condition": "decrease",
"threshold": {
"type": "percentage",
"value": 10
}
},
{
"field": "on_sale",
"condition": "equals",
"threshold": {
"type": "value",
"value": true
}
}
],
"notifications": [
{
"channel": "webhook",
"target": "https://api.example.com/callback"
}
],
"metadata": {
"key1": "value1",
"key16": "value16"
},
"filters": [],
"expire_timestamp": 1774751812
}curl --location --request PUT '/v1/products/watches/' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Nike Shoe Price Drop Watch",
"target_type": "product",
"target_ids": [
"123456789"
],
"status": "active",
"rules": [
{
"field": "final_price",
"condition": "decrease",
"threshold": {
"type": "percentage",
"value": 10
}
},
{
"field": "on_sale",
"condition": "equals",
"threshold": {
"type": "value",
"value": true
}
}
],
"notifications": [
{
"channel": "webhook",
"target": "https://api.example.com/callback"
}
],
"metadata": {
"key1": "value1",
"key16": "value16"
},
"filters": [],
"expire_timestamp": 1774751812
}'{
"watch_id": "uuid-uudi-uuid-uuid",
"name": "Nike Shoe Price Drop Watch",
"status": "active"
}