Enables scripted content fragments to use AbuseReports
Methods
CanBeMarkedAsAbusive
Returns a whether the content type id can be marked as abusive or not.
Velocity
JavaScript
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentTypeId | Guid | Content Type Id | Required |
Returns
Boolean
Create
Create Overload 1
Creates an abuse report against the supplied ContentId item
Velocity
JavaScript
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | ContentID of the Item to create the abuse report for | Required | ||
contentTypeId | Guid | Content Type ID | Required |
Create Overload 2
Creates an abuse report against the supplied ContentId item
Velocity
JavaScript
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | ContentID of the Item to create the abuse report for | Required | ||
contentTypeId | Guid | Content Type ID | Required | ||
options | Options | Set of optional parameters including: | Required | ||
AbuseReasonId | Int32 | Abuse Reason Id | Optional | 0 |
Returns
Get
Retrieves an AbuseReport
Velocity
JavaScript
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
id | Guid | The Id of the AbuseReport to get | Required |
Returns
List
Returns a list of abuse reports
Velocity
JavaScript
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
options | Options | Set of optional parameters including: | Required | ||
AbusiveContentId | Guid | Abusive Content Id | Optional | ||
AppealId | Guid | Appeal Id | Optional | ||
AppealState | String | Appeal State | Optional | Default | Accepted, AuthorResponded, Default, Expired, Initiated, ModerationRequired, Rejected |
AssignedToAppeal | Boolean | Assigned To Appeal | Optional | ||
AuthorUserId | Guid | Author User Id | Optional | ||
EndDate | DateTime | End Date | Optional | ||
PageIndex | Int32 | Specify the page number of paged results to return. Zero-based index. | Optional | 0 | |
PageSize | Int32 | Specify the number of results to return per page. | Optional | 20 | |
ReportingUserId | Int32 | Reporting User Id | Optional | ||
SortBy | String | Sort By | Optional | AchievementCount, DisplayName, FirstAwardDate | |
SortOrder | String | Sort Order | Optional | Ascending, Descending | |
StartDate | DateTime | Start Date | Optional |
Returns
Update
Allows an abuse report to be updated
Velocity
JavaScript
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
id | Guid | Id of the abuse report | Required | ||
options | Options | Set of optional parameters including: | Required | ||
AbuseReasonId | Int32 | Abuse Reason Id | Optional | 0 |