لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Complete replacement
POST
/ admin/ v1/ stores/ {store_id}/ media/ {media_id}/ replacement/ complete- products:write
- content:write
- يدعم Idempotency-Key
Confirm a replacement with the files edge's receipt. Clean new bytes take the file's place at once; bytes whose malware scan is still running wait (replacing: true) while the file keeps its current ones.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.media_idstringمطلوبمعرّف من نوع
med، مثلmed_01k8qs5s….
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
receiptstringمطلوبExactly as the edge returned it.
ما يُرجعه
200 The file: with its new bytes, or still replacing.
الأخطاء
- 404
not_foundNo such media. - 409No replacement waiting (
no_replacement) or superseded (replacement_superseded). - 422
validation_failedAn invalid receipt, or the scan blocked the new file.