Skip to content

Set PErmissions via API #6421

Closed Locked Answered by shamoon
lreine asked this question in Support
Apr 17, 2024 · 4 comments · 1 reply
Discussion options

You must be logged in to vote

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
    }
}

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@lreine
Comment options

Answer selected by shamoon
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants