Piloterr
API-ReferenzInputs

Create an input from a list of values

POST
/v1/inputs/list

Up to 500 lines, one row each, in a column named value. Tabs split a line into several values (cells pasted from a spreadsheet): columns value, value_2, value_3…, or the names on the first line with header: true.

Autorisierung

ApiKeyAuth
headerX-Api-Key<token>

Anfragetext

application/json
  1. body
values*array<string>

One line each; empty lines are skipped

Items1 <= items
header?boolean

The first line holds the column names, tab-separated

Defaultfalse

Antworttext

Parsed input

application/json
  1. response
id*string
filename*string|null
columns*array<string>
row_count*integer
sample*array<>
sheets*array<string>
stats*
Example Request
curl -X POST 'https://dataflow.piloterr.com/v1/inputs/list' \
  -H 'Content-Type: application/json' \
  -d '{
  "values": [
    "asin",
    "B09DFCB66S",
    "B08N5WRWNW"
  ],
  "header": true
}'
Example Response
{
  "id": "3f6b1c9e-5d0a-4c7e-9a51-2b8e0f4d7a13",
  "filename": null,
  "columns": [
    "asin"
  ],
  "row_count": 2,
  "sample": [
    {
      "asin": "B09DFCB66S"
    },
    {
      "asin": "B08N5WRWNW"
    }
  ],
  "sheets": [],
  "stats": {
    "empty_rows": 0,
    "duplicate_rows": 0,
    "deduplicated": false,
    "row_error_count": 0,
    "row_errors": []
  }
}