---
title: "Updates server license"
method: POST
path: "/api/License"
tags: ["License"]
---

# Updates server license

`POST /api/License`

## Request

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

Caches the result when successful

## Request body

- UpdateLicenseDto
  - `license` string, nullable, required
  - `email` string, nullable, required
  - `discordId` string, nullable

## Response `200`

OK

- KavitaPlusRegisterResultDto
  - `success` boolean
  - `isSubscriptionActive` boolean
  - `errorCode` 0 | 1 | 2 | 3 | 4: Members: - `0` — None - `1` — Registration Failed (RegistrationFailed) - `2` — Already Registered (AlreadyRegistered) - `3` — Subscription Inactive (SubscriptionInactive) - `4` — Internal Error (InternalError)

## Changes

- **2026-05-31** `3d5b8ba8bc3b`: 3 info
  - added the media type `application/json` for the response with the status `200`
  - added the media type `text/json` for the response with the status `200`
  - added the media type `text/plain` for the response with the status `200`

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