update_record
Modify fields on an existing PocketBase record by collection and record ID. Provide only the key-value fields to change; optionally expand relations or limit returned fields.
Instructions
Update an existing record.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The fields to update as key-value pairs. Only include the fields you want to change (e.g. {"status": "published"}). | |
| expand | No | Comma-separated list of relations to expand in the response. | |
| fields | No | Comma-separated list of fields to return in the response. | |
| record_id | Yes | The record ID to update. | |
| collection | Yes | The collection name or ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| created | Yes | ||
| updated | Yes | ||
| collectionId | Yes | ||
| collectionName | Yes |