post
https://production-api.shoutaboutus.com/api/v1/user/reports/edit
Update an existing account email report's frequency and store assignments (recipient and report type unchanged).
Auth: Account — authentication; under the user/* group. Requires the auth user's company (account user only, else 403). store_ids.* must sit inside the caller's company tree; existing report_stores rows get deleted, then re-inserted.
Rate limit: No rate limit.
Request
- Body:
| Field | Type | Required | Notes |
|---|---|---|---|
report_id | integer | yes | Must be an existing report within the caller's account hierarchy. |
reportPeriodType | string | yes | day, week, or month;. |
all_store | integer | yes | 1 = all stores, 0 = specific stores. Rule required|in:0,1. |
store_ids | int[] | required_if all_store=0 | Store ids; each must exist and pass an ownership check. |
Response — { data. } envelope.
status(string) —success.response(string) — messageReport has been updated successfully!.
Errors: 422 on validation failure.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
