---
title: "Schedule a saved report's e-mail"
type: reference
method: POST
path: /rest-api/saved-reports/{id}/schedule.do
tag: "Analytics"
---

# Schedule a saved report's e-mail

`POST https://YOUR-NETWORK-DOMAIN/rest-api/saved-reports/{id}/schedule.do`

Adds e-mail slots to a saved report, as the console's schedule dialog does: the report runs at 'hour' (UTC) on each day listed in daysOfTheWeek and/or daysOfTheMonth and is mailed as 'format' to the caller and the report's recipients. A slot the report already has is left as it is. A JSON e-mail names its fields as the report's jsonKeys says.

## Path params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `id` | integer | yes | `42` | Saved report id |

## Form params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `format` | string | yes | `PDF` | File format mailed |
| `hour` | integer | yes | `8` | Hour of the day in UTC, 0-23 |
| `daysOfTheMonth` | array<integer> | no | `1` | Days of the month, 1-31 |
| `daysOfTheWeek` | array<string> | no | `MONDAY` | Days of the week, e.g. MONDAY,FRIDAY |

## Responses

- `200` — The saved report with its schedule, in the shape of the GET
- `400` — No day given, hour outside 0-23, a day of the month outside 1-31, or no format
- `401` — Authentication error
- `403` — Forbidden — insufficient permissions
- `404` — No saved report of the caller has this id

## Example request

```bash
curl --request POST \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/saved-reports/42/schedule.do' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'format=PDF' \
  --data-urlencode 'hour=8' \
  --data-urlencode 'daysOfTheMonth=1' \
  --data-urlencode 'daysOfTheWeek=MONDAY'
```

Source: https://epom.com/ad-server/docs/api/analytics/post-saved-reports-schedule