useUpdateEntity
Overview
TheuseUpdateEntity hook is used to update the details of an existing entity. It allows for partial updates, meaning only the provided fields will be modified while other fields remain unchanged.
Usage Example
Parameters & Returns
Parameters
The hook returns a function that accepts an object with the following fields:string
required
The ID of the entity to be updated.
object
required
An object containing the fields to update.
string \
No
string \
No
Record<string, any>[]
The updated attachments items for the entity.
string[]
The updated keywords for the entity.
object
The new geographic location for the entity.
Record<string, any>
Additional metadata to update for the entity.
Mention[]
Array of mentioned users
Returns
The function resolves with an object representing the updated entity:object
The details of the updated entity.

