How can I achieve the same functionality as lb web-client import --import file.csv --full http://service-uri
with an HTTP request made with a tool like cURL?
Asked
Active
Viewed 66 times
2

Angie Merryweather
- 107
- 5
1 Answers
2
If you want to update data, you can use:
curl -i -X POST -H "Content-Type: text/csv" --data-binary @file.csv http://service-uri
or if you want to replace data, you can use:
curl -i -X PUT -H "Content-Type: text/csv" --data-binary @file.csv http://service-uri

Rob Vermaas
- 36
- 1
-
Thanks @rob-vermaas. I have noticed that this doesn't work for entities with constraints, like `Entity(x) -> Entity:size[x] = _.` In this case, attempting to replace data (via `lb web-client import` or curl) results in a functional dependency violation. – Angie Merryweather Oct 01 '15 at 12:41