read
merchant

Tries an unsaved feed rule (predicate + action, the shape the rule list returns) against a sample of the latest render o

Changed on

Tries an unsaved feed rule (predicate + action, the shape the rule list returns) against a sample of the latest render of one market, ordered by variant so the same snapshot gives the same sample. Returns how many offers in the sample match, up to 25 before/after previews, the sample size and whether the sample is the whole snapshot (truncated). The sample is the first 1000 offers. Nothing is saved.

post/api/v1/tools/feed_test_rule

Request

  • Base URL
    https://app.magistry.io
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://app.magistry.io/api/oauth/authorize
      Token URLhttps://app.magistry.io/api/oauth/token
      Scopesmerchant:read

Request body

object required
channel_id, string required

A feed channel id, e.g. "google_merchant:GB", as the channel list returns it.

predicate, object required

The rule predicate, e.g. {"==":[{"var":"brand"},"Acme"]}.

action, object required

The rule action, e.g. {"op":"exclude","reason":"clearance"}.

name, string

Response

Tool result

object required
ok, boolean required
result, unknown required

Changes

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    11 more changes in this revision