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
- JavaScript
- Bash
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);
});
# You can also use wget
curl -X GET /api/v2/user/me/permission/ \
-H 'Accept: application/json'
-H "Authorization: Bearer <token>"
Responses
Response
Schema|Status|Meaning|Description|Schema| |---|---|---|---| |200|OK|Response status code|User Permission|
Example responses
- 200
{
"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"
}