Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

Update user permissions for tables

Costin Bleotu edited this page Sep 9, 2020 · 1 revision

After you request user info (/api/users/<user_id/> you will receive a list (table_permissions key) with user's permissions for all tables. You can update (PUT) user data with tables_permissions.
Accepted values for permissions:

  • Can edit
  • Can view
  • No rights

E.g.: PUT /api/users/2

{
    "username": "costi",
    "email": "costin.bleotu@code4.ro",
    "avatar": null,
    "first_name": "Costin",
    "last_name": "Bleotu",
    "tables_permissions": [
        {
            "name": "Utilizatori",
            "id": 1,
            "permissions": "Can edit"
        }
    ]
}```

Clone this wiki locally