انتقل إلى المحتوى

لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.

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 · أو null

    ETag 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.

الأخطاء

  • 404not_foundNo such report.
  • 409Another report has this name.
  • 412precondition_failedThe report changed since it was read.
  • 422validation_failedThe definition doesn't fit its data set.