GET api.ashx/v3/permission.{json|xml}
Request Parameters
| Name | Type | Location | Description | Required | Default | Options |
|---|---|---|---|---|---|---|
| ApplicationId | Guid | Query String | Application Id where the permission is being checked. If neither ContentId nor ApplicationId are provided, the permisison will be checked at the site root. | Optional | ||
| ApplicationTypeId | Guid | Query String | Application Type Id for the application where the permission is being checked. Required if passing in a ApplicationId. | Optional | ||
| ContentId | Guid | Query String | Content Id where the permission is being checked. If neither ContentId nor ApplicationId are provided, the permisison will be checked at the site root. | Optional | ||
| ContentTypeId | Guid | Query String | Content Type Id for the content where the permission is being checked. Required if passing in a ContentId. | Optional | ||
| PermissionId | Guid | Query String | Permission Id being checked. | Required | ||
| UserId | Guid | Query String | User Id being checked. | Required |
Example Requests
Widget Javascript
jQuery.telligent.evolution.get({
url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v3/permission.json?PermissionId=49fec544-6df7-4a82-872b-f8be586d5e9e&UserId=49fec544-6df7-4a82-872b-f8be586d5e9e',
data: {
'PermissionId': '49fec544-6df7-4a82-872b-f8be586d5e9e',
'UserId': '49fec544-6df7-4a82-872b-f8be586d5e9e'
}
}).then(function(response) {
// use response
});Example Responses
JSON
{
"Permission": {
"Id": "49fec544-6df7-4a82-872b-f8be586d5e9e",
"Name": "name",
"IsAllowed": true
},
"Errors": [
"string",
"string"
]
}XML
<?xml version="1.0" encoding="utf-16"?>
<Response>
<Permission>
<Id>49fec544-6df7-4a82-872b-f8be586d5e9e</Id>
<Name>name</Name>
<IsAllowed>true</IsAllowed>
</Permission>
<Errors>
<Message>string</Message>
<Message>string</Message>
</Errors>
</Response>