لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Update product
PATCH
/ admin/ v1/ stores/ {store_id}/ products/ {product_id}- products:write
Partially update a product. Send If-Match: "v{version}" to avoid overwriting someone else's changes.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.product_idstringمطلوبمعرّف من نوع
prod، مثلprod_01k8qs5s….
الترويسات
If-Matchstring · أو nullETag from the last read, e.g. "v3"
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
titlestring · أو nullhandlestring · أو nulldescription_htmlstring · أو nullstatusenum · أو nullWhether a product can be sold.
- draft
- active
- archived
product_typestring · أو nullvendorstring · أو nullcategory_idinteger · أو nullGoogle's product category ID;
nullclears it.customs_descriptionstring · أو nullWhat customs read on international labels;
nullclears it.
ما يُرجعه
200 Updated product.
الأخطاء
- 404
not_foundNo such product. - 409Handle or SKU already used.
- 412
precondition_failedThe product changed since it was read. - 422
validation_failedValidation failed.