Collections
Update Collection
Update collection schema.
Allows adding new fields and modifying field properties (except type changes). Only superadmins (users in the system account) can update collections.
PUT
Update Collection
Path Parameters
Body
application/json
Request body for updating a collection schema.
Updated list of field definitions (at least one required)
Minimum array length:
1Response
Successful Response
Response for a created collection.
Collection ID (UUID)
Collection name
Physical table name in database
Collection schema
When the collection was created
When the collection was last updated
Previous
Delete CollectionDelete collection and drop its physical table.
Uses a two-phase approach to avoid transaction deadlocks on PostgreSQL:
1. Prepare deletion and generate migration (read-only)
2. Close session and apply migration (no locks held)
3. Delete collection record in new session
Only superadmins (users in the system account) can delete collections.
Next
Update Collection