Httpie request
$ echo '{
"fields_to_return" : [ "_id" ],
"records" : [ {
"_id" : "1",
"_url" : "http://mydomain.com/img.png"
}, {
"_base64" : "data:image/png;base64,ABC...",
"_id" : "2",
"tags" : [ "label1", "label2", "label3" ]
}, {
"_id" : "3",
"_url" : "http://mydomain.com/another_image.jpg",
"any_field" : "for filtering",
"price" : 300
} ]
}' | http POST 'https://api.ximilar.com/photo/search/v2/insert' \
'Content-Type:application/json;charset=UTF-8' \
'collection-id:mycoll_id' \
'Authorization:Token 1af538baa90-----XXX-----baf83ff24'