{"openapi": "3.1.0", "info": {"title": "Abrechnung API", "license": {"name": "AGPL-3.0"}, "version": "1.8.0"}, "paths": {"/api/v1/groups/{group_id}/transactions": {"get": {"tags": ["transactions"], "summary": "list all transactions in a group", "operationId": "list_transactions", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}, {"name": "min_last_changed", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}], "title": "Min Last Changed"}}, {"name": "transaction_ids", "in": "query", "required": false, "schema": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Transaction Ids"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"type": "array", "items": {"$ref": "#/components/schemas/Transaction"}, "title": "Response List Transactions"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["transactions"], "summary": "create a new transaction", "operationId": "create_transaction", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/NewTransaction"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Transaction"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/groups/{group_id}/transactions/{transaction_id}": {"get": {"tags": ["transactions"], "summary": "get transaction details", "operationId": "get_transaction", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}, {"name": "transaction_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Transaction Id"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Transaction"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["transactions"], "summary": "update transaction details", "operationId": "update_transaction", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}, {"name": "transaction_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Transaction Id"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdateTransaction"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Transaction"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "delete": {"tags": ["transactions"], "summary": "delete a transaction", "operationId": "delete_transaction", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}, {"name": "transaction_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Transaction Id"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Transaction"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/groups/{group_id}/transactions/{transaction_id}/history": {"get": {"tags": ["transactions"], "summary": "get transaction history", "operationId": "get_transaction_history", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}, {"name": "transaction_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Transaction Id"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"type": "array", "items": {"$ref": "#/components/schemas/TransactionHistory"}, "title": "Response Get Transaction History"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/groups/{group_id}/transactions/{transaction_id}/positions": {"post": {"tags": ["transactions"], "summary": "update transaction positions", "operationId": "update_transaction_positions", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}, {"name": "transaction_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Transaction Id"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdatePositionsPayload"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Transaction"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/files/{file_id}/{blob_id}": {"get": {"tags": ["transactions"], "summary": "fetch the (binary) contents of a transaction attachment", "operationId": "get_file_contents", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "file_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "File Id"}}, {"name": "blob_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Blob Id"}}], "responses": {"200": {"description": "Successful Response"}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/{group_id}/currency-conversion-rates/{base_currency}": {"get": {"tags": ["transactions"], "summary": "get the currency conversion rate", "operationId": "get_currency_conversion_rates", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}, {"name": "base_currency", "in": "path", "required": true, "schema": {"type": "string", "title": "Base Currency"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CurrencyConversionRate"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/groups/preview": {"post": {"tags": ["groups"], "summary": "preview a group before joining using an invite token", "operationId": "preview_group", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/PreviewGroupPayload"}}}, "required": true}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/GroupPreview"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/groups/join": {"post": {"tags": ["groups"], "summary": "join a group using an invite token", "operationId": "join_group", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/PreviewGroupPayload"}}}, "required": true}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Group"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}, "security": [{"OAuth2PasswordBearer": []}]}}, "/api/v1/groups": {"get": {"tags": ["groups"], "summary": "list the current users groups", "operationId": "list_groups", "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"items": {"$ref": "#/components/schemas/Group"}, "type": "array", "title": "Response List Groups"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}}, "security": [{"OAuth2PasswordBearer": []}]}, "post": {"tags": ["groups"], "summary": "create a group", "operationId": "create_group", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/GroupCreatePayload"}}}, "required": true}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Group"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}, "security": [{"OAuth2PasswordBearer": []}]}}, "/api/v1/groups/{group_id}": {"get": {"tags": ["groups"], "summary": "fetch group details", "operationId": "get_group", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Group"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["groups"], "summary": "update group details", "operationId": "update_group", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/GroupUpdatePayload"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Group"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "delete": {"tags": ["groups"], "summary": "delete a group", "operationId": "delete_group", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}], "responses": {"204": {"description": "Successful Response"}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/groups/{group_id}/leave": {"post": {"tags": ["groups"], "summary": "leave a group", "operationId": "leave_group", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}], "responses": {"204": {"description": "Successful Response"}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/groups/{group_id}/members": {"get": {"tags": ["groups", "group_members"], "summary": "list all members of a group", "operationId": "list_members", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"type": "array", "items": {"$ref": "#/components/schemas/GroupMember"}, "title": "Response List Members"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/groups/{group_id}/logs": {"get": {"tags": ["groups", "group_logs"], "summary": "fetch the group log", "operationId": "list_log", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}, {"name": "before_id", "in": "query", "required": false, "schema": {"anyOf": [{"type": "integer"}, {"type": "null"}], "description": "only return entries older than the entry with this id", "title": "Before Id"}, "description": "only return entries older than the entry with this id"}, {"name": "limit", "in": "query", "required": false, "schema": {"type": "integer", "maximum": 200, "minimum": 1, "default": 50, "title": "Limit"}}, {"name": "types", "in": "query", "required": false, "schema": {"anyOf": [{"type": "array", "items": {"type": "string"}}, {"type": "null"}], "description": "only return entries of these types", "title": "Types"}, "description": "only return entries of these types"}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"type": "array", "items": {"$ref": "#/components/schemas/GroupLog"}, "title": "Response List Log"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/groups/{group_id}/members/{user_id}": {"post": {"tags": ["groups", "group_members"], "summary": "update the permissions of a group member", "operationId": "update_member_permissions", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}, {"name": "user_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "User Id"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdateGroupMemberPermissionsPayload"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/GroupMember"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/groups/{group_id}/members/{user_id}/owned-account": {"post": {"tags": ["groups", "group_members"], "summary": "update the owned account of a group member", "operationId": "update_member_owned_account", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}, {"name": "user_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "User Id"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdateGroupMemberOwnedAccountPayload"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/GroupMember"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/groups/{group_id}/invites": {"get": {"tags": ["groups", "group_invites"], "summary": "list all invite links of a group", "operationId": "list_invites", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"type": "array", "items": {"$ref": "#/components/schemas/GroupInvite"}, "title": "Response List Invites"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["groups", "group_invites"], "summary": "create a new group invite link", "operationId": "create_invite", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CreateInvitePayload"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/GroupInvite"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/groups/{group_id}/invites/{invite_id}": {"delete": {"tags": ["groups", "group_invites"], "summary": "delete a group invite link", "operationId": "delete_invite", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}, {"name": "invite_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Invite Id"}}], "responses": {"204": {"description": "Successful Response"}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/groups/{group_id}/archive": {"post": {"tags": ["groups"], "summary": "archive a group", "operationId": "archive_group", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/groups/{group_id}/un-archive": {"post": {"tags": ["groups"], "summary": "un-archive a group", "operationId": "unarchive_group", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/groups/{group_id}/export-json": {"post": {"tags": ["groups"], "summary": "un-archive a group", "operationId": "export_group_json", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/GroupJsonExportV1"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/import-group": {"post": {"tags": ["groups"], "summary": "import a group from json", "operationId": "import_group", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ImportGroupPayload"}}}, "required": true}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ImportGroupResponse"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}, "security": [{"OAuth2PasswordBearer": []}]}}, "/api/v1/auth/token": {"post": {"tags": ["auth"], "summary": "login with username and password", "operationId": "get_token", "requestBody": {"content": {"application/x-www-form-urlencoded": {"schema": {"$ref": "#/components/schemas/Body_get_token"}}}, "required": true}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Token"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/auth/login": {"post": {"tags": ["auth"], "summary": "login with username and password", "operationId": "login", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/LoginPayload"}}}, "required": true}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Token"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/auth/logout": {"post": {"tags": ["auth"], "summary": "sign out of the current session", "operationId": "logout", "responses": {"204": {"description": "Successful Response"}}, "security": [{"OAuth2PasswordBearer": []}]}}, "/api/v1/auth/register": {"post": {"tags": ["auth"], "summary": "register a new user", "operationId": "register", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/RegisterPayload"}}}, "required": true}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/RegisterResponse"}}}}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/auth/confirm_registration": {"post": {"tags": ["auth"], "summary": "confirm a pending registration", "operationId": "confirm_registration", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ConfirmRegistrationPayload"}}}, "required": true}, "responses": {"204": {"description": "Successful Response"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/profile": {"get": {"tags": ["auth"], "summary": "fetch user profile information", "operationId": "get_profile", "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/User"}}}}}, "security": [{"OAuth2PasswordBearer": []}]}}, "/api/v1/profile/change_password": {"post": {"tags": ["auth"], "summary": "change password", "operationId": "change_password", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ChangePasswordPayload"}}}, "required": true}, "responses": {"204": {"description": "Successful Response"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}, "security": [{"OAuth2PasswordBearer": []}]}}, "/api/v1/profile/change_email": {"post": {"tags": ["auth"], "summary": "change email", "operationId": "change_email", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ChangeEmailPayload"}}}, "required": true}, "responses": {"204": {"description": "Successful Response"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}, "security": [{"OAuth2PasswordBearer": []}]}}, "/api/v1/auth/confirm_email_change": {"post": {"tags": ["auth"], "summary": "confirm a pending email change", "operationId": "confirm_email_change", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ConfirmEmailChangePayload"}}}, "required": true}, "responses": {"204": {"description": "Successful Response"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/auth/recover_password": {"post": {"tags": ["auth"], "summary": "recover password", "operationId": "recover_password", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/RecoverPasswordPayload"}}}, "required": true}, "responses": {"204": {"description": "Successful Response"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/auth/confirm_password_recovery": {"post": {"tags": ["auth"], "summary": "confirm a pending password recovery", "operationId": "confirm_password_recovery", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ConfirmPasswordRecoveryPayload"}}}, "required": true}, "responses": {"204": {"description": "Successful Response"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/auth/delete_session": {"post": {"tags": ["auth"], "summary": "delete a given user session", "operationId": "delete_session", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/DeleteSessionPayload"}}}, "required": true}, "responses": {"204": {"description": "Successful Response"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}, "security": [{"OAuth2PasswordBearer": []}]}}, "/api/v1/auth/rename_session": {"post": {"tags": ["auth"], "summary": "rename a given user session", "operationId": "rename_session", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/RenameSessionPayload"}}}, "required": true}, "responses": {"204": {"description": "Successful Response"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}, "security": [{"OAuth2PasswordBearer": []}]}}, "/api/v1/groups/{group_id}/accounts": {"get": {"tags": ["accounts"], "summary": "list all accounts in a group", "operationId": "list_accounts", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"type": "array", "items": {"anyOf": [{"$ref": "#/components/schemas/ClearingAccount"}, {"$ref": "#/components/schemas/PersonalAccount"}]}, "title": "Response List Accounts"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["accounts"], "summary": "create a new group account", "operationId": "create_account", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/NewAccount"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"anyOf": [{"$ref": "#/components/schemas/ClearingAccount"}, {"$ref": "#/components/schemas/PersonalAccount"}], "title": "Response Create Account"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/v1/groups/{group_id}/accounts/{account_id}": {"get": {"tags": ["accounts"], "summary": "fetch a group account", "operationId": "get_account", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}, {"name": "account_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Account Id"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"anyOf": [{"$ref": "#/components/schemas/ClearingAccount"}, {"$ref": "#/components/schemas/PersonalAccount"}], "title": "Response Get Account"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "post": {"tags": ["accounts"], "summary": "update an account", "operationId": "update_account", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}, {"name": "account_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Account Id"}}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/NewAccount"}}}}, "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"anyOf": [{"$ref": "#/components/schemas/ClearingAccount"}, {"$ref": "#/components/schemas/PersonalAccount"}], "title": "Response Update Account"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}, "delete": {"tags": ["accounts"], "summary": "delete an account", "operationId": "delete_account", "security": [{"OAuth2PasswordBearer": []}], "parameters": [{"name": "group_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Group Id"}}, {"name": "account_id", "in": "path", "required": true, "schema": {"type": "integer", "title": "Account Id"}}], "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"anyOf": [{"$ref": "#/components/schemas/ClearingAccount"}, {"$ref": "#/components/schemas/PersonalAccount"}], "title": "Response Delete Account"}}}}, "401": {"description": "unauthorized"}, "403": {"description": "forbidden"}, "404": {"description": "Not found"}, "422": {"description": "Validation Error", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/HTTPValidationError"}}}}}}}, "/api/version": {"get": {"tags": ["common"], "summary": "Get Version", "operationId": "get_version", "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/VersionResponse"}}}}}}}, "/api/config": {"get": {"tags": ["common"], "summary": "Get Frontend Config", "operationId": "get_frontend_config", "responses": {"200": {"description": "Successful Response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/FrontendConfig"}}}}}}}}, "components": {"schemas": {"AccountType": {"type": "string", "enum": ["personal", "clearing"], "title": "AccountType"}, "Body_get_token": {"properties": {"grant_type": {"anyOf": [{"type": "string", "pattern": "^password$"}, {"type": "null"}], "title": "Grant Type"}, "username": {"type": "string", "title": "Username"}, "password": {"type": "string", "format": "password", "title": "Password"}, "scope": {"type": "string", "title": "Scope", "default": ""}, "client_id": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Client Id"}, "client_secret": {"anyOf": [{"type": "string"}, {"type": "null"}], "format": "password", "title": "Client Secret"}}, "type": "object", "required": ["username", "password"], "title": "Body_get_token"}, "ChangeEmailPayload": {"properties": {"email": {"type": "string", "format": "email", "title": "Email"}, "password": {"type": "string", "title": "Password"}}, "type": "object", "required": ["email", "password"], "title": "ChangeEmailPayload"}, "ChangePasswordPayload": {"properties": {"new_password": {"type": "string", "title": "New Password"}, "old_password": {"type": "string", "title": "Old Password"}}, "type": "object", "required": ["new_password", "old_password"], "title": "ChangePasswordPayload"}, "ClearingAccount": {"properties": {"id": {"type": "integer", "title": "Id"}, "group_id": {"type": "integer", "title": "Group Id"}, "type": {"type": "string", "const": "clearing", "title": "Type"}, "name": {"type": "string", "title": "Name"}, "description": {"type": "string", "title": "Description"}, "date_info": {"type": "string", "format": "date", "title": "Date Info"}, "tags": {"items": {"type": "string"}, "type": "array", "title": "Tags"}, "clearing_shares": {"additionalProperties": {"type": "number"}, "type": "object", "title": "Clearing Shares"}, "last_changed": {"type": "string", "format": "date-time", "title": "Last Changed"}, "deleted": {"type": "boolean", "title": "Deleted"}}, "type": "object", "required": ["id", "group_id", "type", "name", "description", "date_info", "tags", "clearing_shares", "last_changed", "deleted"], "title": "ClearingAccount"}, "ClearingAccountJsonExportV1": {"properties": {"id": {"type": "integer", "title": "Id"}, "name": {"type": "string", "title": "Name"}, "description": {"type": "string", "title": "Description"}, "date_info": {"type": "string", "format": "date", "title": "Date Info"}, "tags": {"items": {"type": "string"}, "type": "array", "title": "Tags"}, "clearing_shares": {"additionalProperties": {"type": "number"}, "type": "object", "title": "Clearing Shares"}}, "type": "object", "required": ["id", "name", "description", "date_info", "tags", "clearing_shares"], "title": "ClearingAccountJsonExportV1"}, "ConfirmEmailChangePayload": {"properties": {"token": {"type": "string", "title": "Token"}}, "type": "object", "required": ["token"], "title": "ConfirmEmailChangePayload"}, "ConfirmPasswordRecoveryPayload": {"properties": {"token": {"type": "string", "title": "Token"}, "new_password": {"type": "string", "title": "New Password"}}, "type": "object", "required": ["token", "new_password"], "title": "ConfirmPasswordRecoveryPayload"}, "ConfirmRegistrationPayload": {"properties": {"token": {"type": "string", "title": "Token"}}, "type": "object", "required": ["token"], "title": "ConfirmRegistrationPayload"}, "CreateInvitePayload": {"properties": {"description": {"type": "string", "title": "Description"}, "single_use": {"type": "boolean", "title": "Single Use"}, "join_as_editor": {"type": "boolean", "title": "Join As Editor"}, "valid_until": {"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}], "title": "Valid Until"}}, "type": "object", "required": ["description", "single_use", "join_as_editor"], "title": "CreateInvitePayload"}, "CurrencyConversionRate": {"properties": {"base_currency": {"type": "string", "title": "Base Currency"}, "rates": {"additionalProperties": {"type": "number"}, "type": "object", "title": "Rates"}}, "type": "object", "required": ["base_currency", "rates"], "title": "CurrencyConversionRate"}, "DeleteSessionPayload": {"properties": {"session_id": {"type": "integer", "title": "Session Id"}}, "type": "object", "required": ["session_id"], "title": "DeleteSessionPayload"}, "FileAttachment": {"properties": {"id": {"type": "integer", "title": "Id"}, "filename": {"type": "string", "title": "Filename"}, "blob_id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Blob Id"}, "mime_type": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Mime Type"}, "host_url": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Host Url"}, "deleted": {"type": "boolean", "title": "Deleted"}}, "type": "object", "required": ["id", "filename", "blob_id", "mime_type", "deleted"], "title": "FileAttachment"}, "FileAttachmentJsonExportV1": {"properties": {"filename": {"type": "string", "title": "Filename"}, "mime_type": {"type": "string", "title": "Mime Type"}, "content": {"type": "string", "title": "Content"}}, "type": "object", "required": ["filename", "mime_type", "content"], "title": "FileAttachmentJsonExportV1"}, "FrontendConfig": {"properties": {"messages": {"anyOf": [{"items": {"$ref": "#/components/schemas/ServiceMessage"}, "type": "array"}, {"type": "null"}], "title": "Messages"}, "imprint_url": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Imprint Url"}, "source_code_url": {"type": "string", "title": "Source Code Url"}, "issue_tracker_url": {"type": "string", "title": "Issue Tracker Url"}}, "type": "object", "required": ["source_code_url", "issue_tracker_url"], "title": "FrontendConfig"}, "Group": {"properties": {"id": {"type": "integer", "title": "Id"}, "name": {"type": "string", "title": "Name"}, "description": {"type": "string", "title": "Description"}, "currency_identifier": {"type": "string", "title": "Currency Identifier"}, "terms": {"type": "string", "title": "Terms"}, "add_user_account_on_join": {"type": "boolean", "title": "Add User Account On Join"}, "created_at": {"type": "string", "format": "date-time", "title": "Created At"}, "created_by": {"type": "integer", "title": "Created By"}, "last_changed": {"type": "string", "format": "date-time", "title": "Last Changed"}, "archived": {"type": "boolean", "title": "Archived"}, "is_owner": {"type": "boolean", "title": "Is Owner"}, "can_write": {"type": "boolean", "title": "Can Write"}, "owned_account_id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Owned Account Id"}}, "type": "object", "required": ["id", "name", "description", "currency_identifier", "terms", "add_user_account_on_join", "created_at", "created_by", "last_changed", "archived", "is_owner", "can_write", "owned_account_id"], "title": "Group"}, "GroupCreatePayload": {"properties": {"name": {"type": "string", "title": "Name"}, "description": {"type": "string", "title": "Description", "default": ""}, "add_user_account_on_join": {"type": "boolean", "title": "Add User Account On Join", "default": false}, "terms": {"type": "string", "title": "Terms", "default": ""}, "currency_identifier": {"type": "string", "title": "Currency Identifier"}}, "type": "object", "required": ["name", "currency_identifier"], "title": "GroupCreatePayload"}, "GroupInvite": {"properties": {"id": {"type": "integer", "title": "Id"}, "created_by": {"type": "integer", "title": "Created By"}, "token": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Token"}, "single_use": {"type": "boolean", "title": "Single Use"}, "join_as_editor": {"type": "boolean", "title": "Join As Editor"}, "description": {"type": "string", "title": "Description"}, "valid_until": {"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}], "title": "Valid Until"}}, "type": "object", "required": ["id", "created_by", "token", "single_use", "join_as_editor", "description", "valid_until"], "title": "GroupInvite"}, "GroupJsonExportV1": {"properties": {"version": {"type": "integer", "const": 1, "title": "Version", "default": 1}, "metadata": {"$ref": "#/components/schemas/GroupMetadataExportV1"}, "personal_accounts": {"items": {"$ref": "#/components/schemas/PersonalAccountJsonExportV1"}, "type": "array", "title": "Personal Accounts"}, "events": {"items": {"$ref": "#/components/schemas/ClearingAccountJsonExportV1"}, "type": "array", "title": "Events"}, "transactions": {"items": {"$ref": "#/components/schemas/TransactionJsonExportV1"}, "type": "array", "title": "Transactions"}}, "type": "object", "required": ["metadata", "personal_accounts", "events", "transactions"], "title": "GroupJsonExportV1"}, "GroupLog": {"properties": {"id": {"type": "integer", "title": "Id"}, "user_id": {"type": "integer", "title": "User Id"}, "username": {"type": "string", "title": "Username"}, "logged_at": {"type": "string", "format": "date-time", "title": "Logged At"}, "type": {"type": "string", "title": "Type"}, "message": {"type": "string", "title": "Message"}, "affected": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Affected"}, "affected_username": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Affected Username"}, "transaction_id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Transaction Id"}, "account_id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Account Id"}, "transaction_deleted": {"type": "boolean", "title": "Transaction Deleted"}, "account_deleted": {"type": "boolean", "title": "Account Deleted"}, "data": {"additionalProperties": true, "type": "object", "title": "Data"}}, "type": "object", "required": ["id", "user_id", "username", "logged_at", "type", "message", "affected", "affected_username", "transaction_id", "account_id", "transaction_deleted", "account_deleted", "data"], "title": "GroupLog"}, "GroupMember": {"properties": {"user_id": {"type": "integer", "title": "User Id"}, "username": {"type": "string", "title": "Username"}, "is_owner": {"type": "boolean", "title": "Is Owner"}, "can_write": {"type": "boolean", "title": "Can Write"}, "description": {"type": "string", "title": "Description"}, "joined_at": {"type": "string", "format": "date-time", "title": "Joined At"}, "invited_by": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Invited By"}, "owned_account_id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Owned Account Id"}}, "type": "object", "required": ["user_id", "username", "is_owner", "can_write", "description", "joined_at", "invited_by", "owned_account_id"], "title": "GroupMember"}, "GroupMetadataExportV1": {"properties": {"name": {"type": "string", "title": "Name"}, "description": {"type": "string", "title": "Description"}, "currency_identifier": {"type": "string", "title": "Currency Identifier"}, "terms": {"type": "string", "title": "Terms"}, "add_user_account_on_join": {"type": "boolean", "title": "Add User Account On Join"}}, "type": "object", "required": ["name", "description", "currency_identifier", "terms", "add_user_account_on_join"], "title": "GroupMetadataExportV1"}, "GroupPreview": {"properties": {"id": {"type": "integer", "title": "Id"}, "is_already_member": {"type": "boolean", "title": "Is Already Member"}, "name": {"type": "string", "title": "Name"}, "description": {"type": "string", "title": "Description"}, "currency_identifier": {"type": "string", "title": "Currency Identifier"}, "terms": {"type": "string", "title": "Terms"}, "created_at": {"type": "string", "format": "date-time", "title": "Created At"}, "invite_single_use": {"type": "boolean", "title": "Invite Single Use"}, "invite_valid_until": {"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}], "title": "Invite Valid Until"}, "invite_description": {"type": "string", "title": "Invite Description"}}, "type": "object", "required": ["id", "is_already_member", "name", "description", "currency_identifier", "terms", "created_at", "invite_single_use", "invite_valid_until", "invite_description"], "title": "GroupPreview"}, "GroupUpdatePayload": {"properties": {"name": {"type": "string", "title": "Name"}, "description": {"type": "string", "title": "Description", "default": ""}, "add_user_account_on_join": {"type": "boolean", "title": "Add User Account On Join", "default": false}, "terms": {"type": "string", "title": "Terms", "default": ""}}, "type": "object", "required": ["name"], "title": "GroupUpdatePayload"}, "HTTPValidationError": {"properties": {"detail": {"items": {"$ref": "#/components/schemas/ValidationError"}, "type": "array", "title": "Detail"}}, "type": "object", "title": "HTTPValidationError"}, "ImportGroupPayload": {"properties": {"group_json": {"type": "string", "title": "Group Json"}}, "type": "object", "required": ["group_json"], "title": "ImportGroupPayload"}, "ImportGroupResponse": {"properties": {"group_id": {"type": "integer", "title": "Group Id"}}, "type": "object", "required": ["group_id"], "title": "ImportGroupResponse"}, "LoginPayload": {"properties": {"username": {"type": "string", "title": "Username"}, "password": {"type": "string", "title": "Password"}, "session_name": {"type": "string", "title": "Session Name"}}, "type": "object", "required": ["username", "password", "session_name"], "title": "LoginPayload"}, "NewAccount": {"properties": {"type": {"$ref": "#/components/schemas/AccountType"}, "name": {"type": "string", "title": "Name"}, "description": {"type": "string", "title": "Description", "default": ""}, "date_info": {"anyOf": [{"type": "string", "format": "date"}, {"type": "null"}], "title": "Date Info"}, "deleted": {"type": "boolean", "title": "Deleted", "default": false}, "tags": {"items": {"type": "string"}, "type": "array", "title": "Tags", "default": []}, "clearing_shares": {"additionalProperties": {"type": "number"}, "type": "object", "title": "Clearing Shares", "default": {}}}, "type": "object", "required": ["type", "name"], "title": "NewAccount"}, "NewFile": {"properties": {"filename": {"type": "string", "title": "Filename"}, "mime_type": {"type": "string", "title": "Mime Type"}, "content": {"type": "string", "title": "Content"}}, "type": "object", "required": ["filename", "mime_type", "content"], "title": "NewFile"}, "NewTransaction": {"properties": {"type": {"$ref": "#/components/schemas/TransactionType"}, "name": {"type": "string", "title": "Name"}, "description": {"type": "string", "title": "Description"}, "value": {"type": "number", "title": "Value"}, "currency_identifier": {"type": "string", "title": "Currency Identifier"}, "currency_conversion_rate": {"type": "number", "title": "Currency Conversion Rate"}, "billed_at": {"type": "string", "format": "date", "title": "Billed At"}, "tags": {"items": {"type": "string"}, "type": "array", "title": "Tags", "default": []}, "creditor_shares": {"additionalProperties": {"type": "number"}, "type": "object", "title": "Creditor Shares"}, "debitor_shares": {"additionalProperties": {"type": "number"}, "type": "object", "title": "Debitor Shares"}, "split_mode": {"$ref": "#/components/schemas/SplitMode"}, "new_files": {"items": {"$ref": "#/components/schemas/NewFile"}, "type": "array", "title": "New Files", "default": []}, "new_positions": {"items": {"$ref": "#/components/schemas/NewTransactionPosition"}, "type": "array", "title": "New Positions", "default": []}}, "type": "object", "required": ["type", "name", "description", "value", "currency_identifier", "currency_conversion_rate", "billed_at", "creditor_shares", "debitor_shares", "split_mode"], "title": "NewTransaction"}, "NewTransactionPosition": {"properties": {"name": {"type": "string", "title": "Name"}, "price": {"type": "number", "title": "Price"}, "communist_shares": {"type": "number", "title": "Communist Shares"}, "usages": {"additionalProperties": {"type": "number"}, "type": "object", "title": "Usages"}}, "type": "object", "required": ["name", "price", "communist_shares", "usages"], "title": "NewTransactionPosition"}, "PersonalAccount": {"properties": {"id": {"type": "integer", "title": "Id"}, "group_id": {"type": "integer", "title": "Group Id"}, "type": {"type": "string", "const": "personal", "title": "Type"}, "name": {"type": "string", "title": "Name"}, "description": {"type": "string", "title": "Description"}, "deleted": {"type": "boolean", "title": "Deleted"}, "last_changed": {"type": "string", "format": "date-time", "title": "Last Changed"}}, "type": "object", "required": ["id", "group_id", "type", "name", "description", "deleted", "last_changed"], "title": "PersonalAccount"}, "PersonalAccountJsonExportV1": {"properties": {"id": {"type": "integer", "title": "Id"}, "name": {"type": "string", "title": "Name"}, "description": {"type": "string", "title": "Description"}}, "type": "object", "required": ["id", "name", "description"], "title": "PersonalAccountJsonExportV1"}, "PreviewGroupPayload": {"properties": {"invite_token": {"type": "string", "title": "Invite Token"}, "logged_in_user_token": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Logged In User Token"}}, "type": "object", "required": ["invite_token"], "title": "PreviewGroupPayload"}, "RecoverPasswordPayload": {"properties": {"email": {"type": "string", "title": "Email"}}, "type": "object", "required": ["email"], "title": "RecoverPasswordPayload"}, "RegisterPayload": {"properties": {"username": {"type": "string", "title": "Username"}, "password": {"type": "string", "title": "Password"}, "email": {"type": "string", "format": "email", "title": "Email"}, "invite_token": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Invite Token"}}, "type": "object", "required": ["username", "password", "email"], "title": "RegisterPayload"}, "RegisterResponse": {"properties": {"user_id": {"type": "integer", "title": "User Id"}}, "type": "object", "required": ["user_id"], "title": "RegisterResponse"}, "RenameSessionPayload": {"properties": {"session_id": {"type": "integer", "title": "Session Id"}, "name": {"type": "string", "title": "Name"}}, "type": "object", "required": ["session_id", "name"], "title": "RenameSessionPayload"}, "ServiceMessage": {"properties": {"type": {"$ref": "#/components/schemas/ServiceMessageType"}, "title": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Title"}, "body": {"type": "string", "title": "Body"}}, "type": "object", "required": ["type", "body"], "title": "ServiceMessage"}, "ServiceMessageType": {"type": "string", "enum": ["info", "error", "warning", "success"], "title": "ServiceMessageType"}, "Session": {"properties": {"id": {"type": "integer", "title": "Id"}, "name": {"type": "string", "title": "Name"}, "valid_until": {"anyOf": [{"type": "string", "format": "date-time"}, {"type": "null"}], "title": "Valid Until"}, "last_seen": {"type": "string", "format": "date-time", "title": "Last Seen"}}, "type": "object", "required": ["id", "name", "valid_until", "last_seen"], "title": "Session"}, "SplitMode": {"type": "string", "enum": ["shares", "absolute", "percent"], "title": "SplitMode"}, "Token": {"properties": {"user_id": {"type": "integer", "title": "User Id"}, "access_token": {"type": "string", "title": "Access Token"}}, "type": "object", "required": ["user_id", "access_token"], "title": "Token"}, "Transaction": {"properties": {"id": {"type": "integer", "title": "Id"}, "group_id": {"type": "integer", "title": "Group Id"}, "type": {"$ref": "#/components/schemas/TransactionType"}, "name": {"type": "string", "title": "Name"}, "description": {"type": "string", "title": "Description"}, "value": {"type": "number", "title": "Value"}, "currency_identifier": {"type": "string", "title": "Currency Identifier"}, "currency_conversion_rate": {"type": "number", "title": "Currency Conversion Rate"}, "billed_at": {"type": "string", "format": "date", "title": "Billed At"}, "tags": {"items": {"type": "string"}, "type": "array", "title": "Tags"}, "deleted": {"type": "boolean", "title": "Deleted"}, "creditor_shares": {"additionalProperties": {"type": "number"}, "type": "object", "title": "Creditor Shares"}, "debitor_shares": {"additionalProperties": {"type": "number"}, "type": "object", "title": "Debitor Shares"}, "split_mode": {"$ref": "#/components/schemas/SplitMode"}, "last_changed": {"type": "string", "format": "date-time", "title": "Last Changed"}, "positions": {"items": {"$ref": "#/components/schemas/TransactionPosition"}, "type": "array", "title": "Positions"}, "files": {"items": {"$ref": "#/components/schemas/FileAttachment"}, "type": "array", "title": "Files"}}, "type": "object", "required": ["id", "group_id", "type", "name", "description", "value", "currency_identifier", "currency_conversion_rate", "billed_at", "tags", "deleted", "creditor_shares", "debitor_shares", "split_mode", "last_changed", "positions", "files"], "title": "Transaction"}, "TransactionHistory": {"properties": {"revision_id": {"type": "integer", "title": "Revision Id"}, "changed_by": {"type": "integer", "title": "Changed By"}, "changed_at": {"type": "string", "format": "date-time", "title": "Changed At"}}, "type": "object", "required": ["revision_id", "changed_by", "changed_at"], "title": "TransactionHistory"}, "TransactionJsonExportV1": {"properties": {"id": {"type": "integer", "title": "Id"}, "type": {"$ref": "#/components/schemas/TransactionType"}, "name": {"type": "string", "title": "Name"}, "description": {"type": "string", "title": "Description"}, "value": {"type": "number", "title": "Value"}, "currency_identifier": {"type": "string", "title": "Currency Identifier"}, "currency_conversion_rate": {"type": "number", "title": "Currency Conversion Rate"}, "billed_at": {"type": "string", "format": "date", "title": "Billed At"}, "tags": {"items": {"type": "string"}, "type": "array", "title": "Tags"}, "split_mode": {"$ref": "#/components/schemas/SplitMode", "default": "shares"}, "creditor_shares": {"additionalProperties": {"type": "number"}, "type": "object", "title": "Creditor Shares"}, "debitor_shares": {"additionalProperties": {"type": "number"}, "type": "object", "title": "Debitor Shares"}, "positions": {"items": {"$ref": "#/components/schemas/TransactionPositionJsonExportV1"}, "type": "array", "title": "Positions"}, "files": {"items": {"$ref": "#/components/schemas/FileAttachmentJsonExportV1"}, "type": "array", "title": "Files"}}, "type": "object", "required": ["id", "type", "name", "description", "value", "currency_identifier", "currency_conversion_rate", "billed_at", "tags", "creditor_shares", "debitor_shares", "positions", "files"], "title": "TransactionJsonExportV1"}, "TransactionPosition": {"properties": {"name": {"type": "string", "title": "Name"}, "price": {"type": "number", "title": "Price"}, "communist_shares": {"type": "number", "title": "Communist Shares"}, "usages": {"additionalProperties": {"type": "number"}, "type": "object", "title": "Usages"}, "id": {"type": "integer", "title": "Id"}, "deleted": {"type": "boolean", "title": "Deleted"}}, "type": "object", "required": ["name", "price", "communist_shares", "usages", "id", "deleted"], "title": "TransactionPosition"}, "TransactionPositionJsonExportV1": {"properties": {"id": {"type": "integer", "title": "Id"}, "name": {"type": "string", "title": "Name"}, "price": {"type": "number", "title": "Price"}, "communist_shares": {"type": "number", "title": "Communist Shares"}, "usages": {"additionalProperties": {"type": "number"}, "type": "object", "title": "Usages"}}, "type": "object", "required": ["id", "name", "price", "communist_shares", "usages"], "title": "TransactionPositionJsonExportV1"}, "TransactionType": {"type": "string", "enum": ["mimo", "purchase", "transfer"], "title": "TransactionType"}, "UpdateFile": {"properties": {"id": {"type": "integer", "title": "Id"}, "filename": {"type": "string", "title": "Filename"}, "deleted": {"type": "boolean", "title": "Deleted"}}, "type": "object", "required": ["id", "filename", "deleted"], "title": "UpdateFile"}, "UpdateGroupMemberOwnedAccountPayload": {"properties": {"owned_account_id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Owned Account Id"}}, "type": "object", "required": ["owned_account_id"], "title": "UpdateGroupMemberOwnedAccountPayload"}, "UpdateGroupMemberPermissionsPayload": {"properties": {"can_write": {"type": "boolean", "title": "Can Write"}, "is_owner": {"type": "boolean", "title": "Is Owner"}}, "type": "object", "required": ["can_write", "is_owner"], "title": "UpdateGroupMemberPermissionsPayload"}, "UpdatePositionsPayload": {"properties": {"positions": {"items": {"$ref": "#/components/schemas/TransactionPosition"}, "type": "array", "title": "Positions"}}, "type": "object", "required": ["positions"], "title": "UpdatePositionsPayload"}, "UpdateTransaction": {"properties": {"type": {"$ref": "#/components/schemas/TransactionType"}, "name": {"type": "string", "title": "Name"}, "description": {"type": "string", "title": "Description"}, "value": {"type": "number", "title": "Value"}, "currency_identifier": {"type": "string", "title": "Currency Identifier"}, "currency_conversion_rate": {"type": "number", "title": "Currency Conversion Rate"}, "billed_at": {"type": "string", "format": "date", "title": "Billed At"}, "tags": {"items": {"type": "string"}, "type": "array", "title": "Tags", "default": []}, "creditor_shares": {"additionalProperties": {"type": "number"}, "type": "object", "title": "Creditor Shares"}, "debitor_shares": {"additionalProperties": {"type": "number"}, "type": "object", "title": "Debitor Shares"}, "split_mode": {"$ref": "#/components/schemas/SplitMode"}, "new_files": {"items": {"$ref": "#/components/schemas/NewFile"}, "type": "array", "title": "New Files", "default": []}, "new_positions": {"items": {"$ref": "#/components/schemas/NewTransactionPosition"}, "type": "array", "title": "New Positions", "default": []}, "changed_files": {"items": {"$ref": "#/components/schemas/UpdateFile"}, "type": "array", "title": "Changed Files", "default": []}, "changed_positions": {"items": {"$ref": "#/components/schemas/TransactionPosition"}, "type": "array", "title": "Changed Positions", "default": []}}, "type": "object", "required": ["type", "name", "description", "value", "currency_identifier", "currency_conversion_rate", "billed_at", "creditor_shares", "debitor_shares", "split_mode"], "title": "UpdateTransaction"}, "User": {"properties": {"id": {"type": "integer", "title": "Id"}, "username": {"type": "string", "title": "Username"}, "email": {"type": "string", "title": "Email"}, "registered_at": {"type": "string", "format": "date-time", "title": "Registered At"}, "deleted": {"type": "boolean", "title": "Deleted"}, "pending": {"type": "boolean", "title": "Pending"}, "sessions": {"items": {"$ref": "#/components/schemas/Session"}, "type": "array", "title": "Sessions"}, "is_guest_user": {"type": "boolean", "title": "Is Guest User"}}, "type": "object", "required": ["id", "username", "email", "registered_at", "deleted", "pending", "sessions", "is_guest_user"], "title": "User"}, "ValidationError": {"properties": {"loc": {"items": {"anyOf": [{"type": "string"}, {"type": "integer"}]}, "type": "array", "title": "Location"}, "msg": {"type": "string", "title": "Message"}, "type": {"type": "string", "title": "Error Type"}, "input": {"title": "Input"}, "ctx": {"type": "object", "title": "Context"}}, "type": "object", "required": ["loc", "msg", "type"], "title": "ValidationError"}, "VersionResponse": {"properties": {"version": {"type": "string", "title": "Version"}, "major_version": {"type": "integer", "title": "Major Version"}, "minor_version": {"type": "integer", "title": "Minor Version"}, "patch_version": {"type": "integer", "title": "Patch Version"}}, "type": "object", "required": ["version", "major_version", "minor_version", "patch_version"], "title": "VersionResponse", "example": {"major_version": 1, "minor_version": 3, "patch_version": 2, "version": "1.3.2"}}}, "securitySchemes": {"OAuth2PasswordBearer": {"type": "oauth2", "flows": {"password": {"scopes": {}, "tokenUrl": "api/v1/auth/token"}}}}}}