---
title: "Validates an already-saved CBL file on disk. Called by the import modal after remap rule changes."
method: POST
path: "/api/Cbl/re-validate"
tags: ["Cbl"]
---

# Validates an already-saved CBL file on disk. Called by the import modal after remap rule changes.

`POST /api/Cbl/re-validate`

## Request

- Base URL: `http://localhost:5000`
- URL: `http://localhost:5000/api/Cbl/re-validate`
- Auth: API key in header `x-api-key`

## Request body

- CblReValidateRequestDto
  - `fileName` string, nullable

## Response `200`

OK

- CblImportSummaryDto
  - `cblName` string, nullable
  - `fileName` string, nullable
  - `results` CblBookResult[], nullable
    - `order` integer
    - `series` string, nullable
    - `volume` string, nullable
    - `number` string, nullable
    - `libraryId` integer
    - `seriesId` integer
    - `readingListName` string, nullable
    - `reason` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9: Members: - `0` — Chapter missing (ChapterMissing) - `1` — Volume missing (VolumeMissing) - `2` — Series missing (SeriesMissing) - `3` — Name Conflict (NameConflict) - `4` — All Series Missing (AllSeriesMissing) - `5` — Empty File (EmptyFile) - `6` — Series Collision (SeriesCollision) - `7` — All Chapters Missing (AllChapterMissing) - `8` — Success - `9` — Invalid File (InvalidFile)
    - `matchTier` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | -1: Members: - `0` — RemapRule - `1` — ExternalId - `2` — ExactName - `3` — ComicVineNaming - `4` — ArticleStripped - `5` — ReprintStripped - `6` — AlternateSeries - `7` — UserDecision - `-1` — Unmatched
    - `chapterId` integer
    - `chapterTitle` string, nullable
    - `matchedSeriesName` string, nullable
    - `libraryType` 0 | 1 | 2 | 3 | 4 | 5: Members: - `0` — Manga - `1` — Comic (Flexible) (Comic) - `2` — Book - `3` — Image - `4` — Light Novel (LightNovel) - `5` — Comic (ComicVine)
    - `chapterNumber` string, nullable
    - `candidates` CblSeriesCandidate[], nullable
      - `seriesId` integer
      - `libraryId` integer
      - `seriesName` string, nullable
  - `success` 0 | 1 | 2: Members: - `0` — Fail - `1` — Partial - `2` — Success
  - `successfulInserts` CblBookResult[], nullable
    - `order` integer
    - `series` string, nullable
    - `volume` string, nullable
    - `number` string, nullable
    - `libraryId` integer
    - `seriesId` integer
    - `readingListName` string, nullable
    - `reason` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9: Members: - `0` — Chapter missing (ChapterMissing) - `1` — Volume missing (VolumeMissing) - `2` — Series missing (SeriesMissing) - `3` — Name Conflict (NameConflict) - `4` — All Series Missing (AllSeriesMissing) - `5` — Empty File (EmptyFile) - `6` — Series Collision (SeriesCollision) - `7` — All Chapters Missing (AllChapterMissing) - `8` — Success - `9` — Invalid File (InvalidFile)
    - `matchTier` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | -1: Members: - `0` — RemapRule - `1` — ExternalId - `2` — ExactName - `3` — ComicVineNaming - `4` — ArticleStripped - `5` — ReprintStripped - `6` — AlternateSeries - `7` — UserDecision - `-1` — Unmatched
    - `chapterId` integer
    - `chapterTitle` string, nullable
    - `matchedSeriesName` string, nullable
    - `libraryType` 0 | 1 | 2 | 3 | 4 | 5: Members: - `0` — Manga - `1` — Comic (Flexible) (Comic) - `2` — Book - `3` — Image - `4` — Light Novel (LightNovel) - `5` — Comic (ComicVine)
    - `chapterNumber` string, nullable
    - `candidates` CblSeriesCandidate[], nullable
      - `seriesId` integer
      - `libraryId` integer
      - `seriesName` string, nullable
  - `isUpdate` boolean
  - `readingListId` integer

## Changes

- **2026-04-23** `1f6eaf8fc5b1`: 3 info
  - added the optional property `readingListId` to the response with the `200` status (media type: text/plain)
  - added the optional property `readingListId` to the response with the `200` status (media type: application/json)
  - added the optional property `readingListId` to the response with the `200` status (media type: text/json)
- **2026-03-22** `777fe1636b50`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kareadita/apis/kavita/changes/api/Cbl/re-validate/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)
