Skip to main content

Permission

This endpoint returns a list of permissions for the user identified by the authentication token. Some of the permissions in the list depend on global community settings.

info

This operation requires authentication.

HTTP Request

GET /api/v2/user/me/permission/

Example Request

const headers = {
'Accept':'application/json',
'Authorization: Bearer <token>'
};

fetch('/api/v2/user/me/permission/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});


Responses

Response

Schema|Status|Meaning|Description|Schema| |---|---|---|---| |200|OK|Response status code|User Permission|

Example responses

{
"upload_video": "boolean",
"create_contribute": "boolean",
"create_poll": "boolean",
"locate_post": "boolean",
"create_post": "boolean",
"create_post_with_category": "boolean",
"follow_user": "boolean",
"request_connection": "boolean",
"accept_connection": "boolean"
}