From 99692ef217f4c54206b1c6bf0cc50a6751c77e53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Tue, 16 Jun 2026 23:01:00 +0200 Subject: [PATCH] update openapi --- pytorrent/openapi/openapi.json | 91 ++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/pytorrent/openapi/openapi.json b/pytorrent/openapi/openapi.json index 7ae3834..1643400 100644 --- a/pytorrent/openapi/openapi.json +++ b/pytorrent/openapi/openapi.json @@ -6659,6 +6659,97 @@ ] } }, + "/api/ratio-groups/{group_id}": { + "delete": { + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/ApiOk" + }, + { + "properties": { + "groups": { + "items": { + "$ref": "#/components/schemas/RatioGroup" + }, + "type": "array" + }, + "history": { + "items": { + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + } + ] + } + } + }, + "description": "OK" + }, + "400": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiError" + } + } + }, + "description": "No profile" + }, + "403": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiError" + } + } + }, + "description": "No write access to profile" + }, + "404": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiError" + } + } + }, + "description": "Ratio group not found" + } + }, + "security": [ + { + "sessionCookie": [] + } + ], + "summary": "Delete ratio group", + "parameters": [ + { + "name": "group_id", + "in": "path", + "required": true, + "schema": { + "type": "integer", + "minimum": 1 + }, + "description": "Ratio group id" + }, + { + "$ref": "#/components/parameters/ProfileId" + }, + { + "$ref": "#/components/parameters/ProfileName" + } + ] + } + }, "/api/ratio-groups/check": { "post": { "requestBody": {