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:The ID of the entity to be updated.
An object containing the fields to update.
No
No
The updated attachments items for the entity.
The updated keywords for the entity.
The new geographic location for the entity.
Additional metadata to update for the entity.
Array of mentioned users
Returns
The function resolves with an object representing the updated entity:The details of the updated entity.