update_collection
Modify and manage existing collections in PocketBase by updating names, types, fields, access rules, and authentication settings. Admin-only tool for schema customization and database optimization.
Instructions
Update an existing collection in PocketBase (admin only)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collectionIdOrName | Yes | ID or name of the collection to update | |
createRule | No | API rule for creating records | |
deleteRule | No | API rule for deleting records | |
fields | No | List with the new collection fields. If not empty, the old schema will be replaced with the new one. | |
listRule | No | API rule for listing and viewing records | |
name | No | New unique collection name | |
passwordAuth | No | Password authentication options | |
type | No | Type of the collection | |
updateRule | No | API rule for updating records | |
viewQuery | No | SQL query for view collections | |
viewRule | No | API rule for viewing a single record |