Documentation of aiohttp-handlers

Common jsons

server_error
Object Properties:
JSON Example
{
    "error_code": 8928,
    "detail": "osdJKamjqdCGwRSTsCmH"
}
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": "540f22d6-85d2-4b63-885f-a70e4bf8b1a4",
    "email": "wendygarrett@example.net",
    "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": 1721,
    "face_attribute_count": 5924,
    "face_count": 9310
}
account
Object Properties:
JSON Example
{
    "info": {
        "account_id": "415b250d-23d9-4c2b-a19b-d71a74e06eb5",
        "email": "wilsontimothy@example.org",
        "organization_name": "{organization_name object}",
        "status": false
    },
    "stats": {
        "list_count": 5379,
        "face_attribute_count": 2875,
        "face_count": 2333
    }
}
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": "2658de50-a3d6-4e95-aa7a-cd24076c821e",
    "account_id": "7d734c72-bfc2-4381-997d-114c7152c86d",
    "user_data": "smithchad",
    "count_object_in_list": 1897,
    "last_update_time": "1970-05-29T16:46:19"
}