if invalid CSV file (not a CSV file or bad formatted
Error 400
Response:
{
"detail": "This is not a valid CSV file, sorry"
}
if invalid CSV (bad data)
Error 400:
Returns the row number which returns an array where each key is the header name
Response:
{
"1": [
{
"pokeball_25": "A valid number is required."
}
],
"2": [
{
"lit1233": "A valid integer is required."
},
{
"pokeball_2": "A valid number is required."
},
{
"lit-o-meter": "A valid integer is required."
},
{
"pokeball": "A valid number is required."
},
{
"pokeball_25": "A valid number is required."
},
{
"pokeball_21": "A valid number is required."
},
{
"pokeball_3": "A valid number is required."
}
],
"3": [
{
"quantity": "Ensure this value is greater than or equal to 0."
}
],
"4": [
{
"name": "item with this name already exists."
}
]
}
Errors:
if invalid CSV file (not a CSV file or bad formatted Error 400 Response:
if invalid CSV (bad data) Error 400: Returns the row number which returns an array where each key is the header name Response: