propose_write
settings

Propose running one of Magistry's background jobs for this store now, and follow it as an operation that settles from th

Changed on

Propose running one of Magistry's background jobs for this store now, and follow it as an operation that settles from that run alone. Jobs: sync-catalog (Pull all products and variants from Shopify.); sync-categories (Pull Shopify Standard Taxonomy categories.); sync-publications (Pull which sales channels each product is published on.); backfill-orders (Pull the order history (days 0 = everything Shopify still has).); sync-orders (Pull recent orders and late refunds.); sync-orders-hot (Fast order tier: the last 24 hours.); sync-orders-warm (Daily order tier with an adaptive refund window.); sync-ads (Pull Google Ads performance.); sync-sessions (Pull product-page sessions from Shopify.); sync-analytics (Pull GA4 product-page sessions.); sync-merchant (Pull Merchant Center product statuses and issues.); fix-merchant-errors (Fix open Merchant Center errors through Shopify (changes the live catalogue).); classify (Tag every product with a performance tier.); decide (Compute decisions without applying them (dry run).); anomaly-check (Scan for spend spikes and revenue dips.); supplier-health (Re-check supplier URLs for stock and price.); clv-compute (Recompute per-customer lifetime value.); mmm-compute (Re-fit the marketing-mix model.). options.days sets the window of the order, ads, sessions and analytics syncs (0 = everything the provider still has). A connection whose grant allows automatic writes runs sync-catalog, sync-orders, classify, decide (always a dry run), anomaly-check and supplier-health at once; every other job waits for a person.

post/api/v1/tools/job_run

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
      Scopessettings:write

Headers

Idempotency-Key, string

Required, here or as idempotency_key in the body. A unique string you choose for this request; send the SAME key when retrying and the first answer is returned instead of writing twice (idempotent-replayed: true). The same key with other arguments is 409 idempotency_conflict. If the header and idempotency_key are both sent they must be equal.

Request body

object required
job, 'sync-catalog' | 'sync-categories' | 'sync-publications' | 'backfill-orders' | 'sync-orders' | 'sync-orders-hot' | 'sync-orders-warm' | 'sync-ads' | 'sync-sessions' | 'sync-analytics' | 'sync-merchant' | 'fix-merchant-errors' | 'classify' | 'decide' | 'anomaly-check' | 'supplier-health' | 'clv-compute' | 'mmm-compute' required
options, object
idempotency_key, string required

Required. A unique string you choose for this request. Send the SAME key when retrying after a timeout and Magistry returns the original outcome instead of performing the write twice. Reusing a key with different arguments is refused rather than replayed.

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