GET api.ashx/v3/permissions.{json|xml}
Request Parameters
| Name | Type | Location | Description | Required | Default | Options |
|---|---|---|---|---|---|---|
| ApplicationId | Guid | Query String | Application Id where the permission is being granted. If neither Group Id nor Application Id is provided, the permisison will be granted to the site root. | Optional | ||
| GroupId | int | Query String | Group Id where the permission is being granted. If neither Group Id nor Application Id is provided, the permisison will be granted to the site root. | Optional | ||
| RoleId | int | Query String | Role Id being granted the permission | Required |
Example Requests
Widget Javascript
jQuery.telligent.evolution.get({
url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v3/permissions.json?RoleId=6',
data: {
'RoleId': '6'
}
}).then(function(response) {
// use response
});Example Responses
JSON
{
"Permission": {
"Name": "name",
"Data": {},
"Errors": [
"string",
"string"
]
},
"Errors": [
"string",
"string"
]
}XML
<?xml version="1.0" encoding="utf-16"?>
<Response>
<Permission>
<Name>name</Name>
<Data />
<Errors>
<string>string</string>
<string>string</string>
</Errors>
</Permission>
<Errors>
<Message>string</Message>
<Message>string</Message>
</Errors>
</Response>