Hello everyone,
I am trying to upload geojson data to GeoNode version 3.2.2 via
REST API.
I wrote code like this, but it doesn't work. I am getting 400 error in the response.
Can someone tell me where to go?
```client = requests.session()
f = io.open("boundaries.geojson", "rb")
params = {
"permissions": '{ "users": {"AnonymousUser": ["view_resourcebase"]} , "groups":{}}',
"time": "false",
"layer_title": "boundaries",
"time": "false",
"charset": "UTF-8",
}
files = {
"filename": io.open("boundaries.geojson", "rb")
}
r = client.put(
auth = HTTPBasicAuth('admin', 'admin'),
data = params,
files = files,
)
print(r)
# <Response [400]>```