Upsert a global-scoped entry

Mixin for ViewSets that adds RBAC permission checks based on a class-level
rbac_permission_map dict mapping DRF actions to permission codes.

Usage::

class MyViewSet(RBACPermissionMixin, GenericViewSet):
    rbac_permission_map = {
        "create": "file.create",
        "list": "file.read",
        "retrieve": "file.read",
        "update": "file.update",
        "partial_update": "file.update",
        "destroy": "file.delete",
    }
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
string
required
string
required
Body Params
required
Response

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json