create_record
Add a new record to a PocketBase collection by providing field values, with optional field selection and relation expansion.
Instructions
Create a new record in a collection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The record data as key-value pairs matching the collection fields (e.g. {"title": "Hello", "status": "draft"}). | |
| expand | No | Comma-separated list of relations to expand in the response. | |
| fields | No | Comma-separated list of fields to return in the response. | |
| collection | Yes | The collection name or ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| created | Yes | ||
| updated | Yes | ||
| collectionId | Yes | ||
| collectionName | Yes |