post
https://production-api.shoutaboutus.com/api/v1/partner/reports/edit
Update an existing partner email report's frequency and account targeting; report type and recipient are not changed here.
Auth: Partner — authentication; under the partner/* group (partner-admin scope, no Hipages gate). Targeting must sit inside your own account tree, keyed on each account.* id (must be a company within the partner's own tree). The presence of report_id switches into edit-mode rules (report existence + period validated, recipient fields not required).
Rate limit: No rate limit.
Request
- Body:
| Field | Type | Required | Notes |
|---|---|---|---|
report_id | integer | yes | Must exist in reports. Required to enter edit branch. |
reportPeriodType | string | yes | day, week, or month; validated against the existing report. |
all_account | integer | yes | 1 = all accounts, 0 = specific accounts. Rule required|nullable|in:0,1. |
account | int[] | required_if all_account=0 | Account company ids; each must exist and pass an ownership check. Existing report_companies rows get deleted, then re-inserted. |
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…
