Requires the
entities bundle. A project without the entities bundle returns 403 database/tables-not-available. See Bundles.Overview
useCreateEntity returns a function that creates a new entity. It supports both JSON and multipart form requests — the hook automatically selects multipart when images or files are included.
Usage Example
With image upload
Parameters
Array of attachment objects. Flexible structure — can represent media URLs, file metadata, or any structured data.
Marks the entity’s own NSFW flag. Defaults to
false. This is only the entity’s own flag — its effective NSFW status also inherits from its space. Sublay labels and filters NSFW content but does not blur or age-gate it. See Entity NSFW flagging.Images to upload and attach. Triggers a multipart form request.
Files to upload and attach. Triggers a multipart form request. A
pathParts folder that is, or contains, . or .. (also written %2e%2e), or that contains ?, # or an encoded slash (%2f, %5c), is refused with a 400.Returns
The newly created entity. See Entity data model.

