-
I am trying to set Permissions for Documents with the API. But it does not work. On the Upload it does not have any fields for permissions and the default permissions from the settings does not apply to files from the API.
But I alway get a 500 Server error. EDIT: Fixed JSON Object. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Even if I set the owner it does not work. The JSON is structural valid. It is not malformed. I think it is a bad design that Paperless NGX always returns a |
Beta Was this translation helpful? Give feedback.
-
You could just see what the frontend does, since that works. {
"documents": [
400,
401,
402,
],
"method": "set_permissions",
"parameters": {
"owner": null,
"set_permissions": {
"view": {
"users": [
3
],
"groups": []
},
"change": {
"users": [],
"groups": [
1
]
}
},
"merge": true
}
} |
Beta Was this translation helpful? Give feedback.
-
This discussion has been automatically closed because it was marked as answered. Please see our contributing guidelines for more details. |
Beta Was this translation helpful? Give feedback.
-
This discussion has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. See our contributing guidelines for more details. |
Beta Was this translation helpful? Give feedback.
You could just see what the frontend does, since that works.