Skip to content

Delete a saved report

DELETE
/stores/{storeRef}/reports/{id}
curl --request DELETE \
--url https://apibase.ecomweb.app/api/v1/stores/example/reports/example \
--header 'x-api-key: <x-api-key>'

Permanently deletes a saved report. Deleting an ID that does not exist is not an error and also answers 204.

Required scopes: write:analytics

id
required
string

The saved report ID, a decimal string.

storeRef
required
string

The store’s ref, as returned by GET /stores.

The saved report was deleted, or did not exist.

The request is malformed or failed validation.

Media typeapplication/json
One of:
object
statusCode
required

The HTTP status code.

number
message
required

What went wrong; validation failures list one message per problem.

One of:
string
error

The HTTP status text, such as Bad Request.

string

Example generated

{
"statusCode": 1,
"message": [
"example"
],
"error": "example"
}

The key is missing, invalid, revoked or expired.

Media typeapplication/json
One of:
object
statusCode
required

The HTTP status code.

number
message
required

What went wrong; validation failures list one message per problem.

One of:
string
error

The HTTP status text, such as Bad Request.

string

Example generated

{
"statusCode": 1,
"message": [
"example"
],
"error": "example"
}

The key may not do this: a missing scope, a readonly key, a publishable key on a Store API route, or a disallowed origin.

Media typeapplication/json
One of:
object
statusCode
required

The HTTP status code.

number
message
required

What went wrong; validation failures list one message per problem.

One of:
string
error

The HTTP status text, such as Bad Request.

string

Example generated

{
"statusCode": 1,
"message": [
"example"
],
"error": "example"
}