لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Update custom report
PUT
/ admin/ v1/ stores/ {store_id}/ analytics/ custom-reports/ {report_id}- analytics:read
Change a custom report: name and definition replaced. Send If-Match: "v{version}" to avoid overwriting someone else's change.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.report_idstringمطلوبمعرّف من نوع
crpt، مثلcrpt_01k8qs5s….
الترويسات
If-Matchstring · أو nullETag from the last read, e.g. "v3"
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
namestringمطلوب1–80 characters, unique in the store.
definitionobjectمطلوبWhat a custom report asks.
ما يُرجعه
200 The report.
الأخطاء
- 404
not_foundNo such report. - 409Another report has this name.
- 412
precondition_failedThe report changed since it was read. - 422
validation_failedThe definition doesn't fit its data set.