From a7ff3fac6b49972f7bbc5ab9c99ec1e24ec0a060 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 20 Feb 2026 14:03:30 -0800 Subject: [PATCH] Bump api version --- docs/api.md | 5 +++++ src-ui/src/environments/environment.prod.ts | 2 +- src/paperless/settings.py | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/api.md b/docs/api.md index 7db6bbc7e..001ff9fe5 100644 --- a/docs/api.md +++ b/docs/api.md @@ -451,3 +451,8 @@ Initial API version. - The document `created` field is now a date, not a datetime. The `created_date` field is considered deprecated and will be removed in a future version. + +#### Version 10 + +- The `show_on_dashboard` and `show_in_sidebar` fields of saved views have been + removed. Relevant settings are now stored in the UISettings model. diff --git a/src-ui/src/environments/environment.prod.ts b/src-ui/src/environments/environment.prod.ts index 819bbed0c..8b91ffc1c 100644 --- a/src-ui/src/environments/environment.prod.ts +++ b/src-ui/src/environments/environment.prod.ts @@ -3,7 +3,7 @@ const base_url = new URL(document.baseURI) export const environment = { production: true, apiBaseUrl: document.baseURI + 'api/', - apiVersion: '9', // match src/paperless/settings.py + apiVersion: '10', // match src/paperless/settings.py appTitle: 'Paperless-ngx', tag: 'prod', version: '2.20.7', diff --git a/src/paperless/settings.py b/src/paperless/settings.py index 910d206c1..f88d43e8f 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -374,10 +374,10 @@ REST_FRAMEWORK = { "rest_framework.authentication.SessionAuthentication", ], "DEFAULT_VERSIONING_CLASS": "rest_framework.versioning.AcceptHeaderVersioning", - "DEFAULT_VERSION": "9", # match src-ui/src/environments/environment.prod.ts + "DEFAULT_VERSION": "10", # match src-ui/src/environments/environment.prod.ts # Make sure these are ordered and that the most recent version appears # last. See api.md#api-versioning when adding new versions. - "ALLOWED_VERSIONS": ["1", "2", "3", "4", "5", "6", "7", "8", "9"], + "ALLOWED_VERSIONS": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"], # DRF Spectacular default schema "DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema", }