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
An ID from your own system to link this entity to an existing item.
An identifier for grouping entities by source (e.g., a section of your app).
The ID of the space this entity belongs to.
Entity title.
Entity body content.
Array of attachment objects. Flexible structure — can represent media URLs, file metadata, or any structured data.
Tags or keywords for filtering and discovery.
Users mentioned in the entity content.
Geographic location for the entity.
Arbitrary project-specific data. Limited to 10 KB.
If
true, creates the entity as a draft (not publicly visible). Default false.If
true, the authenticated user is not associated as the entity author.If
true, the request fails if no authenticated user is present.Images to upload and attach. Triggers a multipart form request.
Files to upload and attach. Triggers a multipart form request.
Returns
The newly created entity. See Entity data model.

