Associate History with User

Last Updated on : 2023-12-07 03:34:01

Associate the history to a specific user.

API address

POST: /v1.0/devices/{device_id}/door-lock/records/{record_id}/actions/allocate

Request parameter

Parameter name Type IN Required Description
device_id String uri true The device ID.
record_id String uri true The ID of the history.

Return parameter

Parameter name Type Description
result Boolean

Request example

POST: /v1.0/devices/vdevo162322644587871/door-lock/records/162315AAXEQDzLAbku9CRCxYNIADC5063000/actions/allocate
{ "userId": 1980012 }

Return example

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

Error code

For more information, see error code.