Overview
useUpdateEntity returns a function that updates an entity’s content fields. After a successful update, the entity state inside the nearest EntityProvider is automatically synced with the new data.
Usage Example
Parameters
string
required
The ID of the entity to update.
string | null
New title. Pass
null to clear.string | null
New content body. Pass
null to clear.Record<string, any>[]
Replacement attachments array.
string[]
Replacement keywords array.
{ latitude: number; longitude: number }
New geographic location.
Record<string, any>
Replacement metadata object.
Mention[]
Updated mentions array.
Returns
Entity
The updated entity. See Entity data model.

