Update record
update_recordUpdate a specific record in PocketBase by ID, modifying only the provided fields. Supports adding/removing multi-relations, files, and select values, plus file uploads.
Instructions
Update an existing record by id. Only the fields present in data are changed. To append to a multi-relation/file/select field use the '+' modifier as a key (e.g. { "tags+": "id" }); to remove use 'field-'. Upload files via files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Record id to update. | |
| data | No | Field values to update. | |
| files | No | Optional list of local files to upload into file fields. | |
| expand | No | Comma-separated relations to expand in the response. | |
| fields | No | Comma-separated fields to return. | |
| collection | Yes | Collection id or name. |