Import rows into an app from CSV
POST
Adds a CSV's lines (header = column names; at most 2 MB and 10,000 lines) through the app's rules, as its owner, in batches. Each line's key is a hash of the file and the line, so importing the same file again never doubles a row. Answers how many were added and each rejected line with the rule's message. Needs coding:apps:publish.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
customer_id*stringFormat
uuidcoding_repository_id*stringFormat
uuidcollection*stringMatch
^[A-Za-z0-9_-]{1,64}$application/json- body
csv*stringRequest fulfilled, document follows
application/json- response
added*integerrejected*array<>curl -X POST 'https://api.syndai.ai/api/v1/external/coding/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/repositories/497f6eca-6276-4993-bfeb-53cbbbba6f08/publication/data/string/import' \ -H 'Content-Type: application/json' \ -d '{ "csv": "string"}'Example Response
{ "added": 0, "rejected": [ { "line": 0, "message": "string" } ]}