Actions10
📄 记录 → ✏️ 更新记录
AI-generatedSummary
Updates a specific record in a selected PocketBase collection using its ID, with optional JSON field parsing.
Inputs
- collection (required) — The name of the collection to update the record in.
- recordId (required) — The unique identifier of the record to update.
- fields — A list of fields to update. Each field consists of a name and a value. Values are automatically parsed as JSON.
- options.expand — Comma-separated list of related fields (relationships) to expand and include in the result.
Output shape
A single record object representing the updated record.
The operation returns the complete record data, including any fields that were not explicitly updated.
Examples
Example 1: Update a user's status in a 'users' collection
Set collection to 'users', recordId to 'abc123', and fields to update 'status' to 'active'.
Example 2: Update multiple fields in a single record
Add multiple 'field' entries to set 'title', 'price', and 'active' with their respective values.
