---
title: "ContentTopicRollup Create"
method: POST
path: "/api/content/topicrollup/{id}"
tags: ["Content"]
---

# ContentTopicRollup Create

`POST /api/content/topicrollup/{id}`

## Request

- Base URL: `https://api.lytics.io`
- URL: `https://api.lytics.io/api/content/topicrollup/{id}`
- Auth: API key in header `Authorization`

Create a topic-rollup.

```
curl -s -XPOST "https://api.lytics.io/api/content/topicrollup" \
    -H "Content-type: application/json" \
    -H "Authorization: $LIOKEY" \
    -d'
{
  "label": "Baking rollup",
  "acctid": "123456",
  "topics": [
      {"label": "Recipe"},
      {"label": "baking"}
  ]
}
' | jq '.'
```

## Path parameters

- `id` string, required

## Query parameters

- `account_id` string

## Response `201`

Created

- ContentTopicRollupModel
  - `data` object
    - `id` string
    - `account_id` string
    - `label` string
    - `created` string
    - `updated` string
    - `topics` object[]
      - `label` string, required
      - `value` number, required

---

[API](https://skmtc.dev/lytics/apis/v1-lytics-api.md) - [All operations](https://skmtc.dev/lytics/apis/v1-lytics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lytics/apis/v1-lytics-api/revisions/339fd1d88486?raw)
