Documentation of aiohttp-handlers

Common jsons

server_error
Object Properties:
JSON Example
{
    "error_code": 3073,
    "detail": "NpBHwwFWAGvbyCJthLyp"
}
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": "eebcf98e-6ef1-4ce9-8ce6-48d04cd36e9a",
    "email": "amanda36@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": 4790,
    "face_attribute_count": 4699,
    "face_count": 4237
}
account
Object Properties:
JSON Example
{
    "info": {
        "account_id": "92e34a20-9f18-45ae-a826-6346051ffcda",
        "email": "adrienne99@example.com",
        "organization_name": "{organization_name object}",
        "status": false
    },
    "stats": {
        "list_count": 5847,
        "face_attribute_count": 1175,
        "face_count": 8187
    }
}
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": "a1bdb97e-3ad6-4de2-90d8-4fce37858133",
    "account_id": "312a1d32-f56a-480b-888c-26751584029e",
    "user_data": "byoung",
    "count_object_in_list": 9700,
    "last_update_time": "1977-11-14T05:25:51"
}