---
title: "Update a library"
method: PATCH
path: "/libraries/{library_id}"
tags: ["Library"]
---

# Update a library

`PATCH /libraries/{library_id}`

Update name and/or description of an existing library.

## Path parameters

- `library_id` integer, required

## Query parameters

- `cookie_name` string, nullable

## Request body

- LibraryUpdateIn
  - `name` string, nullable — New display name for the library.
  - `description` string, nullable — New description for the library.

## Response `200`

Successful Response

- Library — Library definition
  - `created_at` string, date-time — UTC timestamp when the record was created.
  - `updated_at` string, date-time — UTC timestamp when the record was last updated.
  - `creator_user_id` integer, required — ID of the user who created the record.
  - `updater_user_id` integer, nullable — ID of the user who last updated the record, if any.
  - `id` integer — Primary key for the library.
  - `tenant_id` integer, required — ID of the tenant that owns the library.
  - `name` string, required — Name of the library.
  - `description` string, nullable — Optional description of the library.

## Other responses

- `401` — Missing or invalid authentication.
- `403` — Caller is not a member of this library.
- `404` — No library exists with the given id.
- `422` — Validation Error

---

[API](https://skmtc.net/neulandai/apis/neuland-ai-hub-api.md) · [All operations](https://skmtc.net/neulandai/apis/neuland-ai-hub-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/neulandai/neuland-ai-hub-api/versions/b53e89b98c2b/schema)
