Skip to content

Upload products from a CSV file

POST
/products/upload-csv
curl --request POST \
--url https://api.semantico.ai/api/v1/products/upload-csv \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=@file

Creates many products from a CSV file. Runs in the background.

Media typemultipart/form-data
object
file
required
string format: binary

Accepted

Media typeapplication/json
object
background_task_id
integer
Examplegenerated
{
"background_task_id": 1
}

Field-level validation error.

Media typeapplication/json
object
key
additional properties
Array<string>
Example
{
"barcode": [
"A product with this barcode already exists."
]
}