Update collection
update_collectionUpdate a collection by id or name to change its fields, schema, rules, indexes, or options, preserving existing field ids to keep data intact.
Instructions
Update an existing collection by id or name. Provide the fields to change in data. To modify the schema, pass the full fields array (existing field ids must be preserved to keep data). You can also update rules, indexes and options.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Partial collection payload with the properties to update. | |
| idOrName | Yes | Collection id or name. |