---
title: "POST /collections"
method: POST
path: "/collections"
tags: ["Collections"]
---

# POST /collections

`POST /collections`

Creates a new collection.

## Request body

- Collection — An collection of items, can be used for view aggregation of any item/s in the system
  - `collectionId` string, required — The action id
  - `collectionName` string, required — The trigger to apply the action
  - `items` CollectionItem[], required — The collection items
    - `itemId` string, required — The item id, can be minion, timing, device etc

## Response `200`

The created collection

- Collection — An collection of items, can be used for view aggregation of any item/s in the system
  - `collectionId` string, required — The action id
  - `collectionName` string, required — The trigger to apply the action
  - `items` CollectionItem[], required — The collection items
    - `itemId` string, required — The item id, can be minion, timing, device etc

## Other responses

- `501` — Server error

---

[API](https://skmtc.net/casanet/apis/casanet-local-server.md) · [All operations](https://skmtc.net/casanet/apis/casanet-local-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/casanet/casanet-local-server/versions/0f9f76cd80d5/schema)
