# Change a collection's name

> For the complete documentation index, see [llms.txt](https://www.shortsintel.com/llms.txt). Every docs page is also available as markdown: add .md to its URL. To connect, read [agents.md](https://www.shortsintel.com/agents.md).

PATCH `/v1/collections/{id}`

Renames the Collection. Its kind never changes.

## Price

Free.

## Parameters

| Name | In | Type | Required | Default | Description |
| --- | --- | --- | --- | --- | --- |
| `id` | path | `string` | Required | — | Collection id. |

## Request body

`application/json`

object

- `name` string required length 1 to 100 The new name, 1 to 100 characters, unique among your Collections regardless of case (else 409 `collection_name_taken`).

## Responses

### 200 OK

`{ collection }`.

object

- `collection` object required A named set of Trackers of one kind. Holds no state: pausing, analysis and cycles belong to each Tracker.
  - `id` string required
  - `name` string required Unique per Customer, regardless of case.
  - `kind` string required one of `creator`, `hashtag`, `sound`, `advertiser`, `keyword`, `video` What every member is. Fixed at creation. `video` is deprecated: existing Video Collections keep working, new ones are refused with 400 `kind_deprecated`.
  - `member_count` integer required Live (active or paused) member Trackers.
  - `created_at` string required
  - `updated_at` string required

### 400 Bad Request

`invalid_request` — a malformed body, or an empty or over-long `name`.

Code: `invalid_request`. The problem body and every code are on [Errors](https://www.shortsintel.com/docs/reference/errors).

### 401 Unauthorized

Codes: `missing_authorization`, `invalid_key`, `key_revoked`, `key_expired`, `invalid_token`. The problem body and every code are on [Errors](https://www.shortsintel.com/docs/reference/errors).

### 404 Not Found

Code: `not_found`. The problem body and every code are on [Errors](https://www.shortsintel.com/docs/reference/errors).

### 409 Conflict

`collection_name_taken` — you already have a Collection with that name, in any case. Carries `collection_id`.

Code: `collection_name_taken`. The problem body and every code are on [Errors](https://www.shortsintel.com/docs/reference/errors).

## Request samples

curl:

```bash
curl -X PATCH "https://www.shortsintel.com/v1/collections/col_7d20e1b5c4" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Competitors"}'
```

TypeScript:

```typescript
const response = await fetch(
  "https://www.shortsintel.com/v1/collections/col_7d20e1b5c4",
  {
    method: "PATCH",
    headers: {
      "Authorization": "Bearer sk_live_YOUR_KEY",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      "name": "Competitors"
    }),
  },
);

if (!response.ok) {
  throw new Error(`ShortsIntel ${response.status}`);
}

const data = await response.json();
```

Python:

```python
import requests

response = requests.patch(
    "https://www.shortsintel.com/v1/collections/col_7d20e1b5c4",
    headers={
        "Authorization": "Bearer sk_live_YOUR_KEY",
        "Content-Type": "application/json",
    },
    json={
        "name": "Competitors",
    },
)
response.raise_for_status()

data = response.json()
```

200 · `{ collection }`.

```json
{
  "collection": {
    "id": "col_7d20e1b5c4",
    "name": "Rivals",
    "kind": "creator",
    "member_count": 4,
    "created_at": "2026-09-02T09:14:40.221Z",
    "updated_at": "2026-09-02T09:14:40.221Z"
  }
}
```

[Previous Read one collection](https://www.shortsintel.com/docs/reference/collections/get-collection)[Next Delete a collection, optionally its trackers](https://www.shortsintel.com/docs/reference/collections/delete-collection)
