لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Update collection
PATCH
/ admin/ v1/ stores/ {store_id}/ collections/ {collection_id}- products:write
Partially update a collection. Send If-Match: "v{version}" to avoid overwriting someone else's changes.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.collection_idstringمطلوبمعرّف من نوع
col، مثلcol_01k8qs5s….
الترويسات
If-Matchstring · أو nullETag from the last read, e.g. "v3"
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
titlestring · أو nullhandlestring · أو nulldescription_htmlstring · أو nullrulesobject · أو nullSmart collections only; replaces the whole rule set.
sort_orderenum · أو nullThe order products appear in within a collection.
- manual
- title_asc
- title_desc
- price_asc
- price_desc
- created_desc
- created_asc
image_media_idstring · أو nullTypeID with the
medprefix.seoobject · أو nullSEO fields of a PATCH: absent keeps,
nullclears.template_suffixstring · أو nullThe theme template its page uses;
nullgoes back to the default.publishedboolean · أو null
ما يُرجعه
200 Updated collection.
الأخطاء
- 404
not_foundNo such collection. - 409Handle already used.
- 412
precondition_failedThe collection changed since it was read. - 422
validation_failedValidation failed.