Update price rule
documentedUpdate a price rule.
PUT /admin/api/2026-01/price_rules/{price_rule_id}.jsonDiscountsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://{{$shop_domain}}.myshopify.com/admin/api/2026-01/price_rules/{{$price_rule_id}}.json" \
-X PUT \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "X-Shopify-Access-Token: {{OAUTH2_ACCESS_TOKEN}}" \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-d '{"price_rule": {"title": "{{$title}}", "target_type": "line_item", "target_selection": "all", "allocation_method": "each", "value_type": "percentage", "value": {{$value}}, "starts_at": "{{$starts_at}}", "ends_at": "{{$ends_at}}", "usage_limit": {{$usage_limit}}}}'