---
title: "Add Window"
method: POST
path: "/companies/{company_id}/theme-windows"
tags: ["creatives"]
---

# Add Window

`POST /companies/{company_id}/theme-windows`

## Request

- Base URL: `https://app.zalster.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.zalster.com/companies/{company_id}/theme-windows`
- Auth: none declared

A window in which the company draws with a theme. Refused when it ends
before it starts, or shares a moment with another window.

## Path parameters

- `company_id` string, uuid, required: Company id

## Request body

- ThemeWindowCreate: A window in which the company draws with a theme; either end may be left open.
  - `theme_id` string, uuid, required
  - `starts_at` string, date-time, nullable
  - `ends_at` string, date-time, nullable

## Response `201`

Successful Response

- ThemeWindowOut
  - `id` string, uuid, required
  - `theme_id` string, uuid, required
  - `theme_name` string, required
  - `starts_at` string, date-time, nullable, required
  - `ends_at` string, date-time, nullable, required
  - `state` 'on' | 'later' | 'over', required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zalster/apis/zalster-feed-processor.md) - [All operations](https://skmtc.dev/zalster/apis/zalster-feed-processor/llms.txt) - [OpenAPI document](https://skmtc.dev/zalster/apis/zalster-feed-processor/revisions/d0b9dc66ad36?raw)
