删除人员/SophonFogSys/api/users(DELETE)
功能描述
删除一个人员,同时删除该人的人脸信息,绑定的分组信息;
调用URL
http://192.168.1.180:5555/SophonFogSys/api/users
调用方法: DELETE
请求参数(JSON格式)
参数
类型
默认值
选择
描述
举例
identity_id
string
无
必选,二选一
人员ID
“888888”
identity_ids
list
无
必选,二选一
人员ID数组(列表)
["666","888"]
请求示例:
请求url: http://192.168.1.66:5555/SophonFogSys/api/users
请求body:
//删除单个人
{
"identity_id":"001"
}
//删除多个人
{
"identity_ids":["666","888"]
}
返回信息:
请求成功
一级参数
二级参数
类型
描述
data
identity_id
string
用户id
group_name
list
从哪些之前绑定的分组中移除
message
string
消息
请求成功示例:
//删除单个人成功返回:
{
"data": {
"group_name": [
"default_group"
],
"identity_id": "001",
"message": "have remove from group success"
}
}
//删除多个人成功返回:
{
"data": {
"identity_ids": [
"1112232"
],
"message": "have remove from group success"
}
}
请求失败
一级参数
二级参数
类型
描述
error
code
int
请求错误码
message
string
错误描述
status
string
错误类型
Last updated
Was this helpful?