UserPermissionsApi

All URIs are relative to http://127.0.0.1:8000/api

Method HTTP request Description
userPermissions GET /user/permissions Get the authenticated user\'s permissions

userPermissions

UserPermissions200Response userPermissions()

Returns a list of permission names that the authenticated user has. This is a read-only endpoint for UI clients to determine what features to show to the user.

Example

import {
    UserPermissionsApi,
    Configuration
} from './api';

const configuration = new Configuration();
const apiInstance = new UserPermissionsApi(configuration);

const { status, data } = await apiInstance.userPermissions();

Parameters

This endpoint does not have any parameters.

Return type

UserPermissions200Response

Authorization

http

HTTP request headers

HTTP response details

| Status code | Description | Response headers | |————-|————-|——————| |200 | `UserPermissionsResource` | - | |401 | Unauthenticated | - | |422 | Validation error | - | |403 | Authorization error | - |

Back to top Back to API list Back to Model list Back to README


This documentation was automatically generated from the TypeScript API client.