---
title: "Draw Banner"
method: POST
path: "/companies/{company_id}/banners/drawn"
tags: ["banners"]
---

# Draw Banner

`POST /companies/{company_id}/banners/drawn`

## 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}/banners/drawn`
- Auth: none declared

A banner drawn as its layers (decision 252) — any layer, property, outline or element,
in one of the shapes' frames or one ``width`` by ``height`` — with the chosen products
read as ``banner.products[n].<field>`` and written in now. Checked as a template is: a
layer that cannot be drawn is a 400 saying where and how (``problems``). Kept behind
``image_url`` as any banner.

## Path parameters

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

## Request body

- DrawnBannerRequest: A banner drawn as its layers (decision 252): any layer, property, outline or element, in a frame of one of the shapes or of any size; the products are read by their place, ``banner.products[n].<field>``, and written in when it is drawn.
  - `name` string, required
  - `product_ids` string[]
  - `shape` 'wide' | 'square' | 'portrait' | 'story', nullable
  - `width` integer, nullable
  - `height` integer, nullable
  - `background` unknown
  - `font_family` string, nullable
  - `layers` object[], required
  - `elements` object, nullable
  - `preview` boolean

## Response `201`

Successful Response

- BannerOut
  - `id` string, uuid, required
  - `image_url` string, nullable, required
  - `width` integer, required
  - `height` integer, required
  - `shape` string, required
  - `expires_at` string, date-time, required
  - `products` BannerProductOut[], required
    - `product_id` string, uuid, required
    - `title` string, required
    - `price` string, nullable
    - `was` string, nullable
    - `picture` 'cutout' | 'photo', nullable
  - `warnings` string[]
  - `preview` string, nullable
  - `preview_media_type` string, nullable

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