---
title: "Update Lorebook"
method: PUT
path: "/lorebooks/update/{lorebook_id}"
tags: ["lorebooks"]
---

# Update Lorebook

`PUT /lorebooks/update/{lorebook_id}`

## Request

- Base URL: `https://studio-api.meganova.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://studio-api.meganova.ai/lorebooks/update/{lorebook_id}`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

## Path parameters

- `lorebook_id` string, uuid, required

## Request body

- LorebookUpdate
  - `name` string, nullable
  - `description` string, nullable
  - `character_id` string, uuid, nullable
  - `space_id` string, uuid, nullable

## Response `200`

Successful Response

- Lorebook
  - `name` string, required
  - `description` string, nullable
  - `id` string, uuid, required
  - `character_id` string, uuid, nullable
  - `space_id` string, uuid, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, nullable
  - `entries` LorebookEntry[]
    - `title` string, required
    - `content` string, required
    - `keys` string[]
    - `priority` integer
    - `tags` string[]
    - `visibility` string
    - `enabled` boolean
    - `conditions` object
    - `id` string, uuid, required
    - `lorebook_id` string, uuid, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

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