---
title: "Create"
method: POST
path: "/v2/dashboards"
tags: ["Dashboards"]
---

# Create

`POST /v2/dashboards`

Create a dashboard.

## Request body

- DashboardCreateSpec — Dashboard creation request parameters
  - `dashboard` DashboardCreate, required — Dashboard creation parameters
    - `name` string, required — Name
    - `data` object, required — JSON data structure
    - `is_public` boolean — Is public and available to other users (default:false)

## Response `201`

Created dashboard

- Dashboard — Dashboard resource
  - `id` integer — ID
  - `name` string — Name
  - `data` object — JSON data structure
  - `is_public` boolean — True if the dashboard is public
  - `created_at` string, date — Creation date-time
  - `updated_at` string, date — Updated date-time
  - `user` object — Optional owning user
    - `id` integer
    - `name` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `422` — Can not create the dashboard

---

[API](https://skmtc.net/dnsfilter/apis/dnsfilter-api.md) · [All operations](https://skmtc.net/dnsfilter/apis/dnsfilter-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dnsfilter/dnsfilter-api/revisions/29e5e6ee3316/schema)
