Enables scripted content fragments to use AbuseAppeals
Properties
Name | Type | Description | Default | Options |
---|---|---|---|---|
Current | AbuseAppeal | Gets the current contextual Abuse Appeal |
Methods
AcceptAppeal
Board accepts an appeal
Usage
#set($abuseAppealResponse = $core_v2_abuseAppeal.AcceptAppeal($appealId, $boardResponse))
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
appealId | Guid | Id of the appeal | Required | ||
boardResponse | string | Response of the Board | Required |
Return Type
CanReviewAppealsInApplication
Usage
#set($booleanResponse = $core_v2_abuseAppeal.CanReviewAppealsInApplication($applicationId, $applicationTypeId))
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
applicationId | Guid | Application Id | Required | ||
applicationTypeId | Guid | Application Type Id | Required |
Return Type
bool
CanReviewAppealsInContainer
Usage
#set($booleanResponse = $core_v2_abuseAppeal.CanReviewAppealsInContainer($containerId, $containerTypeId))
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
containerId | Guid | Container Id | Required | ||
containerTypeId | Guid | Container Type Id | Required |
Return Type
bool
CanReviewAppealsInSite
Usage
#set($booleanResponse = $core_v2_abuseAppeal.CanReviewAppealsInSite())
Return Type
bool
Create
Hides the content and initiates an appeal
Usage
#set($abuseAppealResponse = $core_v2_abuseAppeal.Create($contentId, $contentTypeId))
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentId | Guid | Content Id of the content for which to initiate the appeal | Required | ||
contentTypeId | Guid | Content Type Id of the content for which to initiate the appeal | Required |
Return Type
Get
Get a single appeal
Usage
#set($abuseAppealResponse = $core_v2_abuseAppeal.Get($appealId))
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
appealId | Guid | Id of the appeal | Required |
Return Type
List
Lists abuse appeals
Usage
#set($pagedListResponse = $core_v2_abuseAppeal.List("%{AbuseId = $abuseIdArg, AppealId = $appealIdArg, AppealState = $appealStateArg, ApplicationId = $applicationIdArg, ContainerId = $containerIdArg, ContentAuthorId = $contentAuthorIdArg, ContentId = $contentIdArg, ContentTypeId = $contentTypeIdArg, PageIndex = $pageIndexArg, PageSize = $pageSizeArg, SortBy = $sortByArg, SortOrder = $sortOrderArg}"))
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
AbuseId | Guid | Abuse Id | Optional | ||
AppealId | Guid | Appeal Id | Optional | ||
AppealState | string | Appeal State | Optional | Default | Accepted, AuthorResponded, Default, Expired, Initiated, ModerationRequired, Rejected |
ApplicationId | Guid | Application Id | Optional | ||
ContainerId | Guid | Container Id | Optional | ||
ContentAuthorId | Guid | Content Author Id | Optional | ||
ContentId | Guid | Content Id | Optional | ||
ContentTypeId | Guid | Content Type Id | Optional | ||
PageIndex | int | Specify the page number of paged results to return. Zero-based index. | Optional | 0 | |
PageSize | int | Specify the number of results to return per page. | Optional | 20 | |
SortBy | string | Sort By | Optional | AppealDate | AppealDate, AppealId, AuthorUserId, AuthorUserName, ContentDate |
SortOrder | string | Sort Order | Optional | Ascending | Ascending, Descending |
Return Type
RejectAppeal
Board rejects an appeal
Usage
#set($abuseAppealResponse = $core_v2_abuseAppeal.RejectAppeal($appealId, $boardResponse))
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
appealId | Guid | Id of the appeal | Required | ||
boardResponse | string | Response of the Board | Required |
Return Type
RespondToAppeal
Author responds to an appeal
Usage
#set($abuseAppealResponse = $core_v2_abuseAppeal.RespondToAppeal($appealId, $authorResponse))
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
appealId | Guid | Id of the appeal | Required | ||
authorResponse | string | Response of the Author | Required |