---
title: "Update Advertising Unit"
method: PATCH
path: "/advertising_units/{id}"
tags: ["Advertising Units"]
---

# Update Advertising Unit

`PATCH /advertising_units/{id}`

Update an advertising unit's properties

## Path parameters

- `id` string, required

## Request body

- AdvertisingUnitUpdateInput
  - `title` string, nullable — The title of the advertising unit.
  - `description` string, nullable — A description of the advertising unit.
  - `dates` string[], required — The dates for this advertising unit's slots.
  - `behavior` string, nullable — The behavior type of the advertising unit.
  - `url` string, nullable — The URL for the advertising unit's landing page.
  - `price` integer, nullable — The price in the smallest currency unit.
  - `allows_html` boolean, nullable — Whether the advertising unit accepts HTML content.
  - `allows_image` boolean, nullable — Whether the advertising unit accepts an image.
  - `max_characters` integer, nullable — Maximum number of characters allowed for the ad content.
  - `submission_deadline_days` integer, nullable — Number of days before the slot date that content must be submitted.

## Response `200`

OK

- AdvertisingUnit
  - `id` string, required — A unique TypeID associated with the object.
  - `creation_date` string, date-time, required — The date and time at which the object was first created.
  - `status` 'active' | 'inactive', required — An enumeration.
  - `slots` AdvertisingSlot[], required — The list of advertising slots for this unit.
    - `id` string, required — A unique TypeID associated with the object.
    - `creation_date` string, date-time, required — The date and time at which the object was first created.
    - `date` string, date, required — The date this advertising slot is scheduled for.
    - `status` 'expired' | 'executed' | 'finalized' | 'held' | 'open' | 'sold', required — An enumeration.
    - `invoice_url` string, nullable — URL to the Stripe invoice PDF for this slot, if available.
    - `sku_id` string, required — The ID of the advertising unit this slot belongs to.
    - `submission_url` string, required — URL where the sponsor can submit their ad content.
    - `sponsor_company` string, required — The name of the sponsoring company.
    - `sponsor_email` string, required — The email address of the sponsor contact.
    - `sponsor_name` string, required — The name of the sponsor contact.
    - `content` string, required — The ad content text.
    - `content_image_id` string, nullable — The ID of the image attached to this ad, if any.
    - `content_url` string, required — The URL the ad links to.
    - `content_approved_at` string, date-time, nullable — When the ad content was approved, if applicable.
    - `content_rejected_at` string, date-time, nullable — When the ad content was rejected, if applicable.
    - `content_rejection_reason` string, required — The reason the ad content was rejected, if applicable.
    - `content_submitted_at` string, date-time, nullable — When the ad content was submitted for review.
    - `inquiry_message` string, required — Optional message from the sponsor inquiry.
  - `title` string, required — The title of the advertising unit.
  - `description` string, required — A description of the advertising unit.
  - `behavior` string, required — The behavior type of the advertising unit.
  - `url` string, required — The URL for the advertising unit's landing page.
  - `price` integer, nullable — The price in the smallest currency unit, or null if not set.
  - `allows_html` boolean, required — Whether the advertising unit accepts HTML content.
  - `allows_image` boolean, required — Whether the advertising unit accepts an image.
  - `max_characters` integer, nullable — Maximum number of characters allowed for the ad content.
  - `submission_deadline_days` integer, required — Number of days before the slot date that content must be submitted.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `409` — Conflict
- `429` — Too Many Requests

---

[API](https://skmtc.net/buttondown/apis/buttondown-api.md) · [All operations](https://skmtc.net/buttondown/apis/buttondown-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/buttondown/buttondown-api/versions/3a702c095d22/schema)
