Fix location of owner in API documentation
This commit is contained in:
parent
226c771735
commit
95a05e1dfd
@ -272,11 +272,12 @@ consumption including the ID of a created document if consumption succeeded.
|
|||||||
## Permissions
|
## Permissions
|
||||||
|
|
||||||
All objects (documents, tags, etc.) allow setting object-level permissions
|
All objects (documents, tags, etc.) allow setting object-level permissions
|
||||||
with an optional `set_permissions` parameter which is of the form:
|
with optional `owner` and / or a `set_permissions` parameters which are of
|
||||||
|
the form:
|
||||||
|
|
||||||
```
|
```
|
||||||
{
|
"owner": ...,
|
||||||
"owner": user_id,
|
"set_permissions": {
|
||||||
"view": {
|
"view": {
|
||||||
"users": [...],
|
"users": [...],
|
||||||
"groups": [...],
|
"groups": [...],
|
||||||
@ -292,7 +293,7 @@ with an optional `set_permissions` parameter which is of the form:
|
|||||||
|
|
||||||
Arrays should contain user or group ID numbers.
|
Arrays should contain user or group ID numbers.
|
||||||
|
|
||||||
If this parameter is supplied the object's permissions will be overwritten,
|
If these parameters are supplied the object's permissions will be overwritten,
|
||||||
assuming the authenticated user has permission to do so (the user must be
|
assuming the authenticated user has permission to do so (the user must be
|
||||||
the object owner or a superuser).
|
the object owner or a superuser).
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user