> ## Documentation Index
> Fetch the complete documentation index at: https://docs.replyke.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Moderate Entity

> Approve or remove an entity within a space

Takes a direct moderation action on an entity in a space. Requires the caller to be a moderator or admin.

## Path Parameters

<ParamField path="spaceId" type="string" required>
  UUID of the space.
</ParamField>

<ParamField path="entityId" type="string" required>
  UUID of the entity to moderate.
</ParamField>

## Body Parameters

<ParamField body="action" type="string" required>
  The moderation action: `"approve"` or `"remove"`.
</ParamField>

<ParamField body="reason" type="string">
  Optional reason for the moderation action. Up to 1,000 characters.
</ParamField>

## Response

<ResponseField name="message" type="string">
  Confirmation message.
</ResponseField>

<ResponseField name="moderationStatus" type="string">
  The resulting status: `"approved"` or `"removed"`.
</ResponseField>

See also: [useModerateSpaceEntity](/hooks/spaces/use-moderate-space-entity)
