Overview
useSetSpaceEntityNsfw returns a callable function that sets the nsfw own-flag on an entity within a space — including other users’ entities. It is the moderator counterpart to the owner-only nsfw field on useUpdateEntity. The caller must be an admin or moderator of the space; other callers receive a 403.
This writes the entity’s own nsfw flag only. Its effective NSFW status (nsfwEffective) is still computed live from that flag OR the space chain. NSFW is a separate axis from moderation (approve/remove) — flagging labels content, it does not hide it. See Entity NSFW flagging.
Usage Example
Parameters
UUID of the space containing the entity.
UUID of the entity to flag or unflag.
The NSFW own-flag to set on the entity.
Returns
The NSFW flag that was applied.
Calls PATCH /v7/:projectId/spaces/:spaceId/entities/:entityId/nsfw with body { nsfw }, behind requireUserAuth + requireSpaceModerator.
See Also