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.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.report_idstringrequiredThe custom report's ID, like
crpt_01k8qs5s….
Headers
If-Matchstring · or nullETag from the last read, e.g. "v3"
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
namestringrequired1–80 characters, unique in the store.
definitionobjectrequiredWhat a custom report asks.
Returns
200 The report.
Errors
- 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.