]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Update API docs re permissions 3697/head
authorshamoon <4887959+shamoon@users.noreply.github.com>
Mon, 26 Jun 2023 16:56:56 +0000 (09:56 -0700)
committershamoon <4887959+shamoon@users.noreply.github.com>
Mon, 26 Jun 2023 17:03:44 +0000 (10:03 -0700)
docs/api.md

index da27d3e073faa1ea967e233254a525a526f24953..5282cc76f4fe1296ac2b4674b047268f4d033d93 100644 (file)
@@ -288,10 +288,22 @@ with an optional `set_permissions` parameter which is of the form:
 }
 ```
 
+!!! note
+
+    Arrays should contain user or group ID numbers.
+
 If this parameter is supplied the object's permissions will be overwritten,
 assuming the authenticated user has permission to do so (the user must be
 the object owner or a superuser).
 
+### Retrieving full permissions
+
+By default, the API will return a truncated version of object-level
+permissions, returning `user_can_change` indicating whether the current user
+has edit permissions. You can pass the parameter `full_perms=true` to API
+calls to view the full permissions of objects in a format that mirrors the
+`set_permissions` parameter above.
+
 ## API Versioning
 
 The REST API is versioned since Paperless-ngx 1.3.0.