Create/update multiple User Entities with `link_id'
Create/update multiple User Entities with link_id.
If entity doesn't exist in system - it will be created. If user with same link_id or name already exists - it will be updated.
has_duplicates - if user with the same name already exists, has_duplicates will be in true condition
To identify users, use info` field
- application/json
Request Body
items object[] required
List of users
link_id uuid requiredPossible values:
<= 36 charactersUnique entity set by the server to bind some parameters with each other
name string requiredPossible values:
<= 100 charactersName of the user entity
info string requiredPossible values:
<= 255 charactersExtra information about of the user entity
is_security boolean requiredSecurity user has access to blocked doors.
access_rules objectList of link_id identifiers
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
result object[]
List of result describe entities update/delete
link_id uuidPossible values:
<= 36 charactersUnique entity set by the server to bind some parameters with each other
success booleanDetermines if entity was update successfully
extended_info stringPossible values: [
created,updated,deleted,entity_not_found,has_duplicates,number_taken_by_another_identifier,bad_base_64_image_file,face_has_not_recognized,bound_time_profile_doesnt_exist,face_id_not_supported,number_of_face_identifiers_exceeded,number_of_identifiers_exceeded,invalid_time_rules_settings,number_of_entities_exceeded]Entity state information result
{
"result": [
{
"link_id": "91c615e3-1040-4815-8ecb-039a18b756b5",
"success": true,
"extended_info": "created"
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
error object
Error object, contains error details
code stringPossible values: [
invalid_authentication,permission_denied,not_valid,system_error,bad_request,connection_timeout]Error code
message stringError message
data object
Did not pass validation parameters. Can be represented as an object, which can include field names, arrays, query parameters etc.
param stringContains validation error details
{
"error": {
"code": "not_valid",
"message": "Data validation error",
"data": {
"param": "must be an string"
}
}
}
{
"error": {
"code": "bad_request",
"message": "Bad request sent"
}
}
Unauthorized request. Log In
- application/json
- Schema
- Example (from schema)
- Example
Schema
error object
Error object, contains error details
code stringPossible values: [
invalid_authentication,permission_denied,not_valid,system_error,bad_request,connection_timeout]Error code
message stringError message
data object
Did not pass validation parameters. Can be represented as an object, which can include field names, arrays, query parameters etc.
param stringContains validation error details
{
"error": {
"code": "not_valid",
"message": "Data validation error",
"data": {
"param": "must be an string"
}
}
}
{
"error": {
"code": "invalid_authentication",
"message": "Invalid authentication"
}
}