update_record
Modify an existing record in a PocketBase collection by specifying the collection name, record ID, and the data fields to update.
Instructions
Update an existing record in a PocketBase collection by ID.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection | Yes | The name or ID of the PocketBase collection. | |
data | Yes | The data fields to update (key-value pairs). | |
id | Yes | The ID of the record to update. |
Input Schema (JSON Schema)
{
"properties": {
"collection": {
"description": "The name or ID of the PocketBase collection.",
"type": "string"
},
"data": {
"additionalProperties": true,
"description": "The data fields to update (key-value pairs).",
"type": "object"
},
"id": {
"description": "The ID of the record to update.",
"type": "string"
}
},
"required": [
"collection",
"id",
"data"
],
"type": "object"
}