create_collection
Create a new Directus collection as a table or folder. Provide initial fields for a table with auto-increment id, or set folder true to make a grouping element without schema.
Instructions
Create a new collection with optional fields. Creates a real table with an auto-increment id when no fields are given; pass folder: true for a grouping element instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | Collection metadata | |
| fields | No | Initial fields to create | |
| folder | No | Create a grouping folder instead of a table. A folder has no schema, so it cannot hold items and fields cannot be added to it. Default: false. | |
| collection | Yes | Collection name |