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

# Create Collection

`POST /collections`

## Request

- Base URL: `https://api.aspect.inc`
- URL: `https://api.aspect.inc/collections`
- Auth: API key in header `Authorization`

Create a new collection in a project

## Request body

- CollectionCreateRequest: API request schema for creating a collection
  - `project_id` string, uuid, required: Project ID
  - `name` string, required: Name of the collection
  - `description` string, nullable: Description of the collection

## Response `201`

Successful Response

- CollectionResponse: API response schema for creating a collection
  - `id` string, uuid, required: Collection ID
  - `name` string, required: Collection name
  - `description` string, nullable: Collection description
  - `created_by_user_id` string, uuid, nullable: User who created this collection
  - `num_assets` integer: Number of assets in the collection
  - `num_directories` integer: Number of directories in the collection
  - `project_id` string, uuid, required: Project ID
  - `created` string, date-time, required: Creation timestamp
  - `updated` string, date-time, required: Last update timestamp

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/aspect/apis/aspect-api.md) - [All operations](https://skmtc.dev/aspect/apis/aspect-api/llms.txt) - [OpenAPI document](https://skmtc.dev/aspect/apis/aspect-api/revisions/28ea5f1adb54?raw)
