auto_write
creative

Links a text layer of a design to a field of one of the store's own records, so the words on the design come from the bu

Changed on

Links a text layer of a design to a field of one of the store's own records, so the words on the design come from the business and stay checked against it: a product's title, price or earlier price, a promotion's name, discount or last day, or a customer review's words, reviewer or rating. The layer's words are replaced where they already show such a value, written the way the layer already wrote it; otherwise the layer shows the value alone. Every later export and post reads the record again and stops when the design no longer matches it. Saved as a new version of the same design; locked layers are left alone. Costs no credits.

post/api/v1/tools/bind_design_data

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

Headers

Idempotency-Key, string

Optional; honoured when sent. 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
design_id, string required

The design id.

layer_id, string required

The text layer to link, by its id in the design.

source, 'product' | 'promotion' | 'review' | 'moment' required

What kind of record the words come from.

record_id, string required

The product, promotion or review id.

field, 'title' | 'price' | 'compare_at' | 'name' | 'discount' | 'ends' | 'quote' | 'author' | 'rating' | 'date' required

For a product: title, price or compare_at (its earlier price). For a promotion: name, discount or ends. For a review: quote (its words, inside the layer's quotation marks), author or rating.

idempotency_key, string

Optional. 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