Link multiple geofences to a device in one request

Carlos Ramos5 years ago

Hi, i want link some geofences to a device but in one request. it's possible make something like this?

Path: /permissions
Operation: PUT
Body: [
    { deviceId: 1, geofenceId: 1 },
    { deviceId: 1, geofenceId: 2 },
    { deviceId: 1, geofenceId: 3 },
]

I tryed this but not work:

Path: /devices/1
Operation: PUT
Body: { id: 1, name: Test, uniqueId: 123456, geofenceIds: [1,2,3] }

The response is OK but not link the geofences.

The idea is sync the relations (link and unlink) in only one request but not make each request individually.

Thanks very much.

Anton Tananaev5 years ago

It's not possible.