pb_records_update
Update specific records in PocketBase collections by specifying the collection, record ID, and new data, ensuring efficient and precise record management.
Instructions
Update an existing record in a collection
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection | Yes | Collection name or ID | |
data | Yes | Record data to update | |
expand | No | Relations to expand in response | |
fields | No | Fields to return in response | |
id | Yes | Record ID to update |
Input Schema (JSON Schema)
{
"properties": {
"collection": {
"description": "Collection name or ID",
"type": "string"
},
"data": {
"description": "Record data to update",
"type": "object"
},
"expand": {
"description": "Relations to expand in response",
"type": "string"
},
"fields": {
"description": "Fields to return in response",
"type": "string"
},
"id": {
"description": "Record ID to update",
"type": "string"
}
},
"required": [
"collection",
"id",
"data"
],
"type": "object"
}