ipt_add_source
Add a data source to the IPT from a local file, URL, or SQL source. Text files are validated for encoding and formatting issues, with an option to skip validation.
Instructions
[writes to the IPT] Add a data source: a local file (.txt/.csv/.tsv/.xlsx/.zip), a URL, or an (unconfigured) SQL source. Text files are validated first and refused when they have problems (embedded newlines/tabs, bad encoding, …) unless skipValidation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | url: address of the file | |
| name | No | Source name (required for url and sql) | |
| path | No | file: local path | |
| type | Yes | ||
| delimiter | No | Delimiter used to validate the file (default: tab for .txt/.tsv, comma for .csv) | |
| shortname | Yes | Resource shortname | |
| skipValidation | No |