Reorder support automation rules
Set which rule gets the first chance to answer a ticket.
Set the order rules are checked in. For each new ticket, the first switched-on rule that matches answers it and no rule after it runs, so put narrow rules before broad ones. Send every rule that is not archived exactly once in ordered_rule_ids, first checked first; the response lists them with priority counted from 0. A list that repeats, adds or leaves out a rule returns 422 on ordered_rule_ids and changes nothing: list the rules again and send the full list. Requires the support.automation API-key ability, and the key's user needs the Support Automation role in the store (owners and administrators have it). Repeating the same order is safe. OAuth callers use the admin grant and select a store with X-STORE. Current membership and role permissions apply to every request.
AuthorizationBearer <API Key>Provide your SellApp API key as a bearer token.
X-STORE?stringStore slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.
application/json- body
ordered_rule_ids*array<>Every rule ID of the store that is not archived, each once, in the new order.
1 <= items <= 1000Successful response.
application/json- response
data*array<>curl -X PATCH 'https://sell.app/api/v2/support-automation-rules/reorder' \ -H 'X-STORE: launch-lab' \ -H 'Content-Type: application/json' \ -d '{ "ordered_rule_ids": [ 7 ]}'{ "data": [ { "id": 7, "name": "Expired download links", "is_active": true, "archived": false, "priority": 0, "match_reason_source": "store", "match_reason_code": "download-link-expired", "match_product_ids": [ 120 ], "match_min_order_total_cents": null, "match_max_order_total_cents": 5000, "match_customer_filter": null, "history_window": "all_time", "min_completed_orders": null, "max_completed_orders": null, "min_lifetime_spend_cents": null, "max_lifetime_spend_cents": null, "min_prior_ticket_count": null, "max_prior_ticket_count": null, "min_prior_support_refund_count": null, "max_prior_support_refund_count": 0, "min_prior_support_refund_cents": null, "max_prior_support_refund_cents": null, "customer_age_days_min": null, "customer_age_days_max": null, "response_template_id": 32, "action_refund_kind": "partial", "action_refund_percent_basis": 5000, "action_refund_fixed_cents": null, "action_refund_cap_cents": 1000, "action_close_outcome": "refunded_partial", "currency": "USD", "created_at": "2026-07-03T09:20:00.000000Z", "updated_at": "2026-07-03T09:31:00.000000Z" } ]}