Overview
Returns a function that allows a space moderator to take action on an entity report. Available actions are: remove the entity from the space, ban the reporting target’s author, or dismiss the report. Multiple actions can be combined in a single call (e.g., remove the entity and ban the user simultaneously).Requires the authenticated user to have
admin or moderator role in the target space.Usage Example
Parameters
The ID of the space the report belongs to.
The ID of the report to action.
The ID of the reported entity.
One or more actions to take. Multiple actions are applied together.
remove-entity— Removes the entity from the space.ban-user— Bans the entity’s author from the space (requiresuserId).dismiss— Marks the report as dismissed without taking action on the content.
A moderator note describing the action taken. Stored on the report record.
The ID of the user to ban. Required when
ban-user is included in actions.The reason for banning, if applicable.
Returns
ReturnsPromise<{ message: string; code: string }>.
Notes
- This hook actions reports at the space level (space moderation). For platform-level entity moderation, see
useModerateSpaceEntity. - To fetch the list of pending reports, use
useFetchModeratedReports.

