I realized that Estimote might not like the fact that I don’t own the beacons mentioned in the JSON, so I changed one of the beacon’s mac fields to the UUID of one of my beacons, and I’m still getting Internal Server Error.
Here is the JSON body of the request, which is verbatim from the Add indoor location example, with all of the beacons removed and replaced with my own beacon:
{
"name": "Example location",
"public": false,
"orientation": 23.5,
"walls": [
{
"x1": 0,
"y1": 0,
"x2": 0,
"y2": 5,
"orientation": 90
},
{
"x1": 0,
"y1": 5,
"x2": 7,
"y2": 5,
"orientation": 180
},
{
"x1": 7,
"y1": 5,
"x2": 9,
"y2": -2,
"orientation": 254.054604099077
},
{
"x1": 9,
"y1": -2,
"x2": 4,
"y2": 0,
"orientation": 21.8014094863518
},
{
"x1": 4,
"y1": 0,
"x2": 0,
"y2": 0,
"orientation": 0
}
],
"beacons": [
{
"beacon": {
"mac": "fa1bd33ef090cc4a1091e4316b47b110"
},
"position": {
"x": 5,
"y": 2,
"orientation": 0
}
}
],
"linear_objects": [
{
"x1": 1,
"y1": 0,
"x2": 3,
"y2": 0,
"orientation": 0,
"type": 1
},
{
"x1": 0,
"y1": 1,
"x2": 0,
"y2": 2,
"orientation": 90,
"type": 0
}
],
"pins": [
{
"x": 1,
"y": 0,
"orientation": 0,
"name": "Downhill bike",
"type": "bike"
},
{
"x": 1,
"y": -1,
"orientation": 100,
"name": "My chair",
"type": "furniture"
}
]
}