---
title: "Resets the Base url"
method: POST
path: "/api/Settings/reset-base-url"
tags: ["Settings"]
---

# Resets the Base url

`POST /api/Settings/reset-base-url`

## Request

- Base URL: `http://localhost:5000`
- URL: `http://localhost:5000/api/Settings/reset-base-url`
- Auth: API key in header `x-api-key`

## Response `200`

OK

- ServerSettingDto
  - `cacheDirectory` string, nullable
  - `taskScan` string, nullable
  - `taskBackup` string, nullable
  - `taskCleanup` string, nullable
  - `taskCblSync` string, nullable
  - `loggingLevel` string, nullable
  - `port` integer
  - `ipAddresses` string, nullable
  - `allowStatCollection` boolean
  - `enableOpds` boolean
  - `baseUrl` string, nullable
  - `bookmarksDirectory` string, nullable
  - `installVersion` string, nullable
  - `installId` string, nullable
  - `encodeMediaAs` 0 | 1 | 2: Members: - `0` — PNG - `1` — WebP (WEBP) - `2` — AVIF
  - `totalBackups` integer
  - `enableFolderWatching` boolean
  - `totalLogs` integer
  - `hostName` string, nullable
  - `cacheSize` integer
  - `onDeckProgressDays` integer
  - `onDeckUpdateDays` integer
  - `coverImageSize` 1 | 2 | 3 | 4: Members: - `1` — Default - `2` — Medium - `3` — Large - `4` — XLarge
  - `pdfRenderResolution` 1 | 2 | 3: Members: - `1` — Default - `2` — High - `3` — Ultra
  - `smtpConfig` SmtpConfigDto
    - `senderAddress` string, nullable
    - `senderDisplayName` string, nullable
    - `userName` string, nullable
    - `password` string, nullable
    - `host` string, nullable
    - `port` integer
    - `enableSsl` boolean
    - `sizeLimit` integer
    - `customizedTemplates` boolean
  - `oidcConfig` OidcConfigDto
    - `autoLogin` boolean
    - `disablePasswordAuthentication` boolean
    - `providerName` string, nullable
    - `authority` string, nullable
    - `clientId` string, nullable
    - `secret` string, nullable
    - `provisionAccounts` boolean
    - `requireVerifiedEmail` boolean
    - `syncUserSettings` boolean
    - `rolesPrefix` string, nullable
    - `rolesClaim` string, nullable
    - `customScopes` string[], nullable
    - `defaultRoles` string[], nullable
    - `defaultLibraries` integer[], nullable
    - `defaultAgeRestriction` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -1: Members: - `0` — Unknown - `1` — Rating Pending (RatingPending) - `2` — Early Childhood (EarlyChildhood) - `3` — Everyone - `4` — G - `5` — Everyone 10+ (Everyone10Plus) - `6` — PG - `7` — Kids to Adults (KidsToAdults) - `8` — Teen - `9` — MA15+ (Mature15Plus) - `10` — Mature 17+ (Mature17Plus) - `11` — M (Mature) - `12` — R18+ (R18Plus) - `13` — Adults Only 18+ (AdultsOnly) - `14` — X18+ (X18Plus) - `-1` — Not Applicable (NotApplicable)
    - `defaultIncludeUnknowns` boolean
    - `enabled` boolean
  - `firstInstallDate` string, date-time, nullable
  - `firstInstallVersion` string, nullable
  - `statsApiHits` integer

## Changes

- **2026-04-06** `b7e0c1ec55a5`: 3 info
  - added the optional property `taskCblSync` to the response with the `200` status (media type: text/plain)
  - added the optional property `taskCblSync` to the response with the `200` status (media type: application/json)
  - added the optional property `taskCblSync` to the response with the `200` status (media type: text/json)
- **2026-01-04** `d871bfda2376`: 3 info
  - added the optional property `statsApiHits` to the response with the `200` status (media type: text/plain)
  - added the optional property `statsApiHits` to the response with the `200` status (media type: application/json)
  - added the optional property `statsApiHits` to the response with the `200` status (media type: text/json)
- **2025-12-31** `a2fbe407f214`: 3 info
  - added the optional property `pdfRenderResolution` to the response with the `200` status (media type: text/plain)
  - added the optional property `pdfRenderResolution` to the response with the `200` status (media type: application/json)
  - added the optional property `pdfRenderResolution` to the response with the `200` status (media type: text/json)
- …earlier changes not shown

[Operation history](https://skmtc.dev/kareadita/apis/kavita/changes/api/Settings/reset-base-url/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)
