SitesLocation
overwriteSiteMlForDevice
Overwrite ML For Device
Authorization<token>
Preferred authentication method for automation and integrations. Send the API token in the HTTP Authorization header.
Format:
Authorization: Token {apitoken}
Notes:
- An API token generated for a specific admin has the same privileges as that admin
- An API token is automatically removed if it is not used for more than 90 days
- SSO admins cannot generate admin API tokens. Use organization API tokens when scoped Org/Site privileges are needed.
In: header
Path Parameters
site_id*string
Format
uuiddevice_id*string
Format
uuidRequest Body
application/json
Request Body
Location machine learning parameter overwrites keyed by client model
[key: string]?
Location machine learning parameter overwrite values for one client model
Response Body
curl -X PUT "https://example.com/api/v1/sites/000000ab-00ab-00ab-00ab-0000000000ab/location/ml/device/000000ab-00ab-00ab-00ab-0000000000ab" \ -H "Content-Type: application/json" \ -d '{ "iOS": { "int": 6, "ple": -3 }, "iPod": { "int": -10, "ple": -5 } }'[ { "current": { "Android": { "completed": 36, "int": -6, "level": 3, "ple": -3, "quality": "4", "src": "device", "timestamp": 1442854794 }, "iOS": { "completed": 16, "int": -6, "level": 6, "ple": -3, "quality": "2", "src": "default", "timestamp": 1442854704 }, "iPod": { "int": -10, "overwrite": true, "ple": -5, "src": "overwrite" } }, "device_id": "b069b358-4c97-5319-1f8c-7c5ca64d6ab1" }, { "beacon_id": "7913f032-aab4-c3ae-e83e-5a2756ef4d40", "current": { "iOS": { "completed": 16, "int": -6, "level": 6, "ple": -3, "quality": "last", "src": "device", "timestamp": 1442854704 } } }]