You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/beyond_api/resources/products.rb
+27Lines changed: 27 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -252,6 +252,33 @@ def update(product_id, body)
252
252
handle_response(response,status)
253
253
end
254
254
255
+
#
256
+
# A +PUT+ request is used to assign a variation images differentiator for a variation product. The differentiator can be one of the variation attributes defined by the merchant, e.g. name, size, or color.
257
+
#
258
+
# @beyond_api.scopes +prod:u+
259
+
#
260
+
# $ curl 'https://api-shop.beyondshop.cloud/api/products/30839efc-47f7-4d55-aa13-aac7532982b6/variation-images-differentiator' -i -X PUT \
261
+
# -H 'Content-Type: application/hal+json' \
262
+
# -H 'Accept: application/hal+json' \
263
+
# -H 'Authorization: Bearer <Access token>' \
264
+
# -d '{
265
+
# "differentiator" : "size"
266
+
# }'
267
+
#
268
+
# @param product_id [String] the product UUID
269
+
# @param differentiator [String] the differentiator
0 commit comments