import
Import JSON or CSV data into a specified collection on Codehooks.io, either from a file path within the Docker container or directly from provided content.
Instructions
Import data from file or content. Provide either 'filepath' (for files inside Docker container) or 'content' (JSON/CSV data as string).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | No | File path to import from (optional if content is provided) | |
| content | No | File content to import as JSON or CSV data (optional if filepath is provided) | |
| collection | Yes | Collection to import into | |
| separator | No | CSV separator character | |
| encoding | No | File encoding |