Change Face Image

Last Updated on : 2023-06-15 05:28:51

Update a face image and name in the device database based on the device ID and face ID.

API address

PUT: /v1.0/cameras/{device_id}/configs/face/{face_id}

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe ID of a Tuya device.
face_idStringuritrueThe face ID.

Description of body

Parameter nameTypeINRequiredDescription
user_nameString trueThe name.
face_id_urlString trueThe URL of a specified face image.

Return parameter

Parameter nameTypeDescription
resultCmdIssueResultResponseThe returned result.

Description of result

Parameter nameTypeDescription
snStringThe ID of a specified command record.

Request example

PUT: /v1.0/cameras/6ce****/configs/face/123****

Return example

{
    "result": {
        "sn": "133****"
    },
    "t": 1561456817168,
    "success": true
}

Error code

For more information, see error code.