# Workspace marketing weekly

`POST /marketing/reports/weekly` · Rivier · workspace

Write the weekly marketing report now for the seven days ending on a day (yesterday by default). It reads only what Rivier stored, keeps the report and announces it as the event marketing.report.created.

- Scope: workspace:write
- Mcp: rivier_marketing_weekly_report
- Graphql: Mutation.workspaceMarketingWeekly
- Sdk: workspace.marketing.weekly
- Cli: workspace marketing weekly

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "to": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
```

## Responses

- `201`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/marketing/reports/weekly' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "to": "string"
}'
```
