propose_write
catalog

Turn one mirrored operation (price, inventory, status, discount, tags or cost) on or off, or set whether its changes app

Changed on

Turn one mirrored operation (price, inventory, status, discount, tags or cost) on or off, or set whether its changes apply automatically or are held for approval, across every link in the workspace, or on one link when group_id is given (the product page's per-link switch). Returns an approval card for the merchant that says how many live links it affects. Every store of every link it changes must be one this connection may change.

post/api/v1/tools/product_link_set_op

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
      Scopescatalog: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
op, 'price' | 'inventory' | 'status' | 'discount' | 'tags' | 'cost' required
on, boolean
mode, 'auto' | 'approval'
group_id, string uuid

One link to change; omit for every link in the workspace.

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

    • info

      added the new optional request property group_id

    • 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

    12 more changes in this revision