Skip to main content
Set Entity NSFW
Sets the nsfw flag on an entity in a space, including entities authored by other users. Requires the caller to be a moderator or admin of the space.
NSFW is a separate axis from moderation. This endpoint writes the entity’s own nsfw field and never touches moderationStatus — labelling content does not hide it the way Moderate Entity with "remove" does. Effective NSFW is computed live on read, so a space’s own NSFW setting still applies on top of this flag.
Requires the entities bundle in addition to spaces.

Path Parameters

string
required
UUID of the space.
string
required
UUID of the entity to flag. Must belong to the space named in spaceId.

Body Parameters

boolean
required
true to flag the entity as NSFW, false to clear the flag.
string
Required with a service key: the user this request acts as. The request has exactly that user’s permissions, so it is refused unless they are a moderator or admin of the space, and it is recorded as theirs. A user token always acts as its own user and must not send it (400 space/acting-user-not-allowed).

Response

string
Confirmation message.
boolean
The flag as it now stands on the entity.

Error Responses

Returned when spaceId or entityId isn’t a valid UUID. Checked before sign-in, permissions and the endpoint’s other checks.
A service key sent no actingUserId.
actingUserId is not a user id.
A user token sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
actingUserId was sent in the query string. On this endpoint every field, actingUserId included, goes in the request body.
Returned when a service key names an actingUserId that isn’t a user in this project.
The caller (or the user named by actingUserId) is not a moderator or admin of the space.
The entity exists but belongs to a different space.
See also: useSetSpaceEntityNsfw