---
title: "Set a brand's queue slots and timezone"
method: PUT
path: "/api/brands/{id}/slots"
---

# Set a brand's queue slots and timezone

`PUT /api/brands/{id}/slots`

## Request

- Base URL: `https://postwire.io`
- URL: `https://postwire.io/api/brands/{id}/slots`
- Auth: HTTP bearer

Replaces the slots of each network named; null puts a network back on the defaults. Networks not named keep theirs.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `timezone` string, nullable: IANA name, e.g. America/Lima. null clears it.
  - `slots` object: Keyed by network.
    - `tiktok` object, nullable: Days to times, 24-hour HH:MM in the brand's timezone.
      - `mon` string[]
      - `tue` string[]
      - `wed` string[]
      - `thu` string[]
      - `fri` string[]
      - `sat` string[]
      - `sun` string[]
    - `instagram` object, nullable: Days to times, 24-hour HH:MM in the brand's timezone.
      - `mon` string[]
      - `tue` string[]
      - `wed` string[]
      - `thu` string[]
      - `fri` string[]
      - `sat` string[]
      - `sun` string[]
    - `youtube` object, nullable: Days to times, 24-hour HH:MM in the brand's timezone.
      - `mon` string[]
      - `tue` string[]
      - `wed` string[]
      - `thu` string[]
      - `fri` string[]
      - `sat` string[]
      - `sun` string[]
    - `linkedin` object, nullable: Days to times, 24-hour HH:MM in the brand's timezone.
      - `mon` string[]
      - `tue` string[]
      - `wed` string[]
      - `thu` string[]
      - `fri` string[]
      - `sat` string[]
      - `sun` string[]
    - `facebook` object, nullable: Days to times, 24-hour HH:MM in the brand's timezone.
      - `mon` string[]
      - `tue` string[]
      - `wed` string[]
      - `thu` string[]
      - `fri` string[]
      - `sat` string[]
      - `sun` string[]
    - `bluesky` object, nullable: Days to times, 24-hour HH:MM in the brand's timezone.
      - `mon` string[]
      - `tue` string[]
      - `wed` string[]
      - `thu` string[]
      - `fri` string[]
      - `sat` string[]
      - `sun` string[]
    - `mastodon` object, nullable: Days to times, 24-hour HH:MM in the brand's timezone.
      - `mon` string[]
      - `tue` string[]
      - `wed` string[]
      - `thu` string[]
      - `fri` string[]
      - `sat` string[]
      - `sun` string[]
    - `telegram` object, nullable: Days to times, 24-hour HH:MM in the brand's timezone.
      - `mon` string[]
      - `tue` string[]
      - `wed` string[]
      - `thu` string[]
      - `fri` string[]
      - `sat` string[]
      - `sun` string[]
    - `discord` object, nullable: Days to times, 24-hour HH:MM in the brand's timezone.
      - `mon` string[]
      - `tue` string[]
      - `wed` string[]
      - `thu` string[]
      - `fri` string[]
      - `sat` string[]
      - `sun` string[]

## Response `200`

{ ok, …the same body as GET }

## Other responses

- `400`: bad_timezone, or a bad day, time or network (bad_request)
- `404`: brand_not_found
- `503`: slots_unavailable: slots cannot be saved on this server yet (the defaults still apply)

---

[API](https://skmtc.dev/postwire/apis/postwire-api.md) · [All operations](https://skmtc.dev/postwire/apis/postwire-api/llms.txt) · [OpenAPI document](https://skmtc.dev/postwire/apis/postwire-api/revisions/513a409ab8f7?raw)
