Search code examples
logicblox

HTTP request equivalent of lb web-client import --full


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?


Solution

  • 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