---
title: "Groups and brands"
description: "Files first — uploaded by you or your agent, grouped when they go out together, published to every channel they fit. Brands group channels."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.mixetape.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Groups and brands

Media & Storage is where media waits before it goes out. In the workspace (**Media & Storage**) it is your
files, in a grid you can drop more onto; files that go out together — a carousel, an album —
sit in a **group**, which the workspace calls a **carousel**. Select files or a group, press **Publish**, and mixetape shows every
channel they fit and as what: a landscape video is a YouTube video and a Facebook video, an
upright one a Short, a Reel and a TikTok, four images a carousel on Instagram and an album on
Facebook.

## Groups

A group is files in order plus the words drafted for them: `title`, `caption`, `description`
and `metadata`. An agent makes one with `create_group` and uploads into it by passing
`groupId` to `create_upload` or `import_media` — so the person only has to choose where it goes.

```json
{
  "title": "Why Rome burned",
  "caption": "The night Rome burned, and who got blamed.",
  "metadata": {
"tags": ["history", "rome"],
"platforms": {
  "youtube": { "title": "Why Rome Burned in 64 AD", "privacyStatus": "public" },
  "instagram": { "caption": "Rome, 64 AD 🔥" }
}
  }
}
```

`metadata` holds what every platform shares and, under `platforms`, each platform's own
overrides. `update_group` changes only what it is given; metadata merges field by field,
platform by platform, and `null` clears a field or a platform. `fileIds` replaces the files and
their order. A file is in at most one group; moving it into another takes it out of the first.

## Publishing

`plan_group` takes brands (`brandIds`) and channels (`accountIds`) and answers for every channel
they cover:

- `fits` — whether the platform takes these files at all, and `label`: what the post is there
  (Short, Video, Reel, Photo, Carousel, Album, Pin…);
- `problems` that stop it — a missing YouTube title or Pinterest board, a channel to reconnect;
- `warnings` that do not — a horizontal video for Reels;
- the `caption` and `metadata` the post would carry.

Each channel gets the caption as the post's text; the shared metadata fields its platform
knows; the title where the platform has one (YouTube, a Pin, a Facebook Page video) and the
description where it has one (YouTube, a Pin) — an empty description uses the caption, so a
YouTube video is never left without one; then that platform's overrides. A `caption` override on a platform without a caption field of its own replaces the
caption there. Where the files make a choice obvious, mixetape makes it: a short upright video
goes to Facebook as a Reel.

`publish_group` (permission `publish`) then creates one post per channel that can take it, all
at `scheduledAt`, and skips the rest with their reasons. The posts are ordinary posts —
editable and cancellable until they go out — linked back to the group (`get_group` lists them,
`list_posts` takes `groupId`). Once every post is out, the files are deleted from storage, and
the group with them.

> **Files do not stay forever**
>
> A file no post needs is deleted 24 hours after it was stored — a file waiting in a group
> included. Publish (or schedule) a group within a day of filling it. See
> [Media and storage](/concepts/media#housekeeping).

## Brands

A brand is your own group of connected channels — "Hans Explainer" as its YouTube channel and
its Facebook Page, say — so a post can go to the brand rather than channel by channel. A
channel can belong to several brands; disconnecting it takes it out of them.

`create_brand`, `update_brand` and `delete_brand` need the `channels` permission;
`list_brands` needs only `read`. In the workspace, brands are under **Channels**.

Source: https://docs.mixetape.com/concepts/groups/index.mdx
