> For the complete documentation index, see [llms.txt](https://appmaster.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://appmaster.gitbook.io/docs/business-logic/block/model-functions/update.md).

# Update

Resets all the fields of a given model object in the database, and updates them with given values (to only change the fields provided and retain others as they are, use the Patch block).

### Flow Connections <a href="#flow-connections" id="flow-connections"></a>

* \[Input] In - starts the block's execution.
* \[Output] Out - activates when the block has finished its execution.

### Data Connections <a href="#data-connections" id="data-connections"></a>

* \[Input] Model (model) - model object to be updated. The system will extract its ID, find it in the database, and reset all of its fields to null. Then, any of the non-null fields in the input model object will be updated in the database.
