save_report
Save a report
Saves a named results report: a set of filters (period, basis, attribution model, group_by, channel, campaign) plus a snapshot of today's numbers.
A snapshot is frozen, so a number someone was shown stays explainable after later recalculations. Use the same filters you used with get_results. To freeze an existing report again with today's numbers, pass report_id alone: earlier snapshots are kept and links to them keep showing the earlier numbers. The dates are fixed days, not "the last 30 days": a report saved today keeps today's period. Returns the report id for get_report and share_report. Nothing is shared or sent by saving. Agency team only.
Arguments
| Name | Type | Needed | What it is |
|---|---|---|---|
name |
string | no | A name for the report, up to 120 characters. Required for a new report. |
report_id |
string | no | An existing report to take a fresh snapshot of. Leave the other arguments out. |
from |
string | no | First day, YYYY-MM-DD in the workspace time zone. Default: 30 days ago. |
to |
string | no | Last day, YYYY-MM-DD. Default: today. |
basis |
string | no | Default cohort.One of: cohort, event |
model |
string | no | Default last_non_direct.One of: first_touch, last_non_direct |
group_by |
string | no | Default campaign.One of: campaign, content_item, ad, tracking_link, channel |
channel |
string | no | Only this channel (organic_social, paid_social, email, referral, direct, other, unknown). |
campaign_id |
string | no | Only this campaign. |
request_key |
string | no | Any unique string for this request. The same key returns the first result instead of a second report. |
Like every workspace tool it also takes workspace: a workspace id or slug. Leave it out to use the workspace the person last worked in.
How it behaves
- It changes something in the workspace, within what the signed-in person's role allows.
- It is not in the first list an assistant sees; the assistant finds it with search_tools and runs it with execute_tools.
How tools behave: confirmation, review links, errors and limits
In the same group
get_content_performance · get_report · get_results · list_reports · revoke_report_share · share_report