---
title: "Create Automation"
method: POST
path: "/api/databases/{database_id}/automations"
tags: ["automation"]
---

# Create Automation

`POST /api/databases/{database_id}/automations`

## Request

- Base URL: `https://app.myriade.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.myriade.ai/api/databases/{database_id}/automations`
- Auth: none declared

Create a new automation.

## Path parameters

- `database_id` string, uuid, required

## Cookies

- `session` string, nullable

## Request body

- AutomationCreate
  - `name` string, required
  - `prompt` string, required
  - `schedule_type` string, required
  - `schedule_time` string, required
  - `schedule_day` integer, nullable
  - `timezone` string
  - `document_id` string, nullable
  - `notification_settings` ReportAlertSettings
    - `mode` 'significant' | 'condition'
    - `condition` string
    - `channel` 'email' | 'slack'
    - `integration_id` string, uuid, nullable
    - `channel_id` string, nullable
    - `channel_name` string, nullable

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/myriade/apis/myriade-bi-api.md) · [All operations](https://skmtc.dev/myriade/apis/myriade-bi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/myriade/apis/myriade-bi-api/revisions/15b7cb96ca80?raw)
