Add Devices in Geofence

Last Updated on : 2023-06-15 04:57:50

Add multiple devices monitored by a geofence.

API address

POST: /v2.0/iot-01/fences/{fence_id}/entity

Request parameter

Parameter name Type IN Required Description
fence_id Long uri true The geofence ID.

Return parameter

Parameter name Type Description
result Boolean Indicates whether the operation is successful.

Request example

POST: /v2.0/iot-01/fences/54001/entity
{ "entity_ids": "vdevo162450172934170" }

Return example

{ "result": true, "t": 1625227661612, "success": true }

Error code

For more information, see error code.