---
title: "CreateShelf"
method: POST
path: "/v1/shelves"
tags: ["LibraryService"]
---

# CreateShelf

`POST /v1/shelves`

Creates a shelf, and returns the new Shelf.

## Request body

- Shelf — A Shelf contains a collection of books with a theme.
  - `name` string, required — The resource name of the shelf. Shelf names have the form `shelves/{shelf_id}`. The name is ignored when creating a shelf.
  - `theme` string — The theme of the shelf
  - `next_sort_at` string, date — The next sorting date.
  - `created_at` string, date-time — The creation date and time.
  - `updated_at` string, date-time — The last update date and time.

## Response `200`

OK

- Shelf — A Shelf contains a collection of books with a theme.
  - `name` string, required — The resource name of the shelf. Shelf names have the form `shelves/{shelf_id}`. The name is ignored when creating a shelf.
  - `theme` string — The theme of the shelf
  - `next_sort_at` string, date — The next sorting date.
  - `created_at` string, date-time — The creation date and time.
  - `updated_at` string, date-time — The last update date and time.

## Other responses

- `default` — Default error response

---

[API](https://skmtc.net/kollalabs/apis/libraryservice-api.md) · [All operations](https://skmtc.net/kollalabs/apis/libraryservice-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kollalabs/libraryservice-api/versions/b3518c94ac37/schema)
