Documentation of aiohttp-handlers

Common jsons

server_error
Object Properties:
JSON Example
{
    "error_code": 603,
    "detail": "QYXPLtDUZbfivWaScrkb"
}
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": "72db844f-fa7c-43bd-b055-0ee6746d308c",
    "email": "jessicacosta@example.net",
    "organization_name": "{organization_name object}",
    "status": true
}
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": 6295,
    "face_attribute_count": 828,
    "face_count": 3365
}
account
Object Properties:
JSON Example
{
    "info": {
        "account_id": "c04ec6b9-b0f3-4681-8ddc-65cb78203f56",
        "email": "erik40@example.net",
        "organization_name": "{organization_name object}",
        "status": true
    },
    "stats": {
        "list_count": 6559,
        "face_attribute_count": 5378,
        "face_count": 6670
    }
}
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": "a1868ce1-a1f6-4d9c-b0bd-e173baf12aa4",
    "account_id": "61e60860-d5a1-41fe-8407-1b510863f71d",
    "user_data": "tbenson",
    "count_object_in_list": 8020,
    "last_update_time": "1995-10-31T17:35:15"
}