لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Set and clear an owner's metafields together
PUT
/ admin/ v1/ stores/ {store_id}/ metafieldsSet and clear an owner's metafields together, by namespace.key. Every value is checked against its definition before anything is saved. Requires the permission that edits the owner.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.
الترويسات
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
owner_typeenumمطلوبWhat a metafield belongs to.
- product
- variant
- collection
- customer
- order
- store
valuesobjectمطلوبowner_idstring · أو nullLeft out for the store.
ما يُرجعه
200 The owner's metafields after the change.
الأخطاء
- 403
forbiddenMissing the owner's write permission. - 404
not_foundNo such owner. - 422
validation_failedA value does not fit its definition, refers to something the store does not have, or has no definition; seeerrors[].field(values.{namespace.key}).