]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Documentation: correct modify_tags param requirement
authorshamoon <4887959+shamoon@users.noreply.github.com>
Fri, 14 Feb 2025 16:20:43 +0000 (08:20 -0800)
committershamoon <4887959+shamoon@users.noreply.github.com>
Fri, 14 Feb 2025 16:20:43 +0000 (08:20 -0800)
docs/api.md
src/documents/tests/test_api_bulk_edit.py

index ac9bac9122154cb6bbe38fe7dd439e2c2ce662cc..327c3220c910ace853a03f8a0e32f0bb7d229d33 100644 (file)
@@ -444,7 +444,7 @@ The following methods are supported:
 -   `remove_tag`
     -   Requires `parameters`: `{ "tag": TAG_ID }`
 -   `modify_tags`
-    -   Requires `parameters`: `{ "add_tags": [LIST_OF_TAG_IDS] }` and / or `{ "remove_tags": [LIST_OF_TAG_IDS] }`
+    -   Requires `parameters`: `{ "add_tags": [LIST_OF_TAG_IDS] }` and `{ "remove_tags": [LIST_OF_TAG_IDS] }`
 -   `delete`
     -   No `parameters` required
 -   `reprocess`
index 28c6de336b9fe811c320220e807e0cbd176026f7..bcbe5922d09fecfc48360a34b4529c3b50ab03db 100644 (file)
@@ -211,7 +211,7 @@ class TestBulkEditAPI(DirectoriesMixin, APITestCase):
     def test_api_modify_tags_not_provided(self, m):
         """
         GIVEN:
-            - API data to modify tags is missing modify_tags field
+            - API data to modify tags is missing remove_tags field
         WHEN:
             - API to edit tags is called
         THEN: