---
title: "Create"
method: POST
path: "/v1/scheduled_policies"
tags: ["Scheduled Policies"]
---

# Create

`POST /v1/scheduled_policies`

Creates a new scheduled policy.

## Request body

- ScheduledPolicy — Represents a time based policy
  - `name` string — Name
  - `organization_id` integer — The organization that owns the block page
  - `policy_ids` integer[] — 672 ids representing 15 minute blocks starting Monday morning 12:01am
  - `timezone` string — The timezone string (e.g. America/New_York) for localizing the policy

## Response `201`

The created scheduled policy

- ScheduledPolicy — Represents a time based policy
  - `name` string — Name
  - `organization_id` integer — The organization that owns the block page
  - `policy_ids` integer[] — 672 ids representing 15 minute blocks starting Monday morning 12:01am
  - `timezone` string — The timezone string (e.g. America/New_York) for localizing the policy

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `422` — Can not create scheduled_policy with the specified data

---

[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)
