---
title: "Sets the reading profile for a given library, removes the old one"
method: POST
path: "/api/reading-profile/library/{libraryId}"
tags: ["ReadingProfile"]
---

# Sets the reading profile for a given library, removes the old one

`POST /api/reading-profile/library/{libraryId}`

## Request

- Base URL: `http://localhost:5000`
- URL: `http://localhost:5000/api/reading-profile/library/{libraryId}`
- Auth: API key in header `x-api-key`

## Path parameters

- `libraryId` integer, required

## Request body

- integer[]

## Response `200`

OK

## Changes

- **2025-12-31** `a2fbe407f214`: 1 warning, 1 info
  - deleted the `query` request parameter `profileId`
  - added optional request body
- **2025-06-08** `f67785730083`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kareadita/apis/kavita/changes/api/reading-profile/library/:libraryId/post.md)

---

[API](https://skmtc.dev/kareadita/apis/kavita.md) - [All operations](https://skmtc.dev/kareadita/apis/kavita/llms.txt) - [OpenAPI document](https://skmtc.dev/kareadita/apis/kavita/revisions/d266465eeb67?raw)
