Documentation of aiohttp-handlers

Common jsons

server_error
Object Properties:
JSON Example
{
    "error_code": 6145,
    "detail": "zUIDryohIVPtXQzfghiD"
}
account_info
Object Properties:
  • account_id (uuid4) – account id

  • email (email) – email of account

  • organization_name (organization_name) – organization name

  • status (boolean) – if account is currently blocked, system returns True

JSON Example
{
    "account_id": "a7855192-f177-483c-aa41-018881adbe23",
    "email": "amanda52@example.com",
    "organization_name": "{organization_name object}",
    "status": false
}
account_stats
Object Properties:
  • list_count (integer) – list count of account

  • face_attribute_count (integer) – face attribute count of account

  • face_count (integer) – face count of account

JSON Example
{
    "list_count": 9676,
    "face_attribute_count": 1267,
    "face_count": 8775
}
account
Object Properties:
JSON Example
{
    "info": {
        "account_id": "e9351a41-7fb5-40b1-ac9b-b7f439d676ae",
        "email": "shannon73@example.org",
        "organization_name": "{organization_name object}",
        "status": true
    },
    "stats": {
        "list_count": 3178,
        "face_attribute_count": 447,
        "face_count": 4331
    }
}
luna_list
Object Properties:
  • list_id (uuid4) – list id

  • account_id (uuid4) – account id

  • user_data (user_name) – user data about list

  • count_object_in_list (integer) – object’s count in list

  • last_update_time (iso8601) – time of last action with list (attach or detach face from list)

JSON Example
{
    "list_id": "45dc7571-646f-4575-81e7-c28c8e3eb512",
    "account_id": "c551a9ac-2b77-43ce-9c97-065c64b64fa9",
    "user_data": "xbenton",
    "count_object_in_list": 1683,
    "last_update_time": "1975-09-27T18:52:21"
}