diff --git a/src/Sonarr.Api.V5/openapi.json b/src/Sonarr.Api.V5/openapi.json index ee9cf2509..e1dbf3cc2 100644 --- a/src/Sonarr.Api.V5/openapi.json +++ b/src/Sonarr.Api.V5/openapi.json @@ -623,12 +623,19 @@ ], "parameters": [ { - "name": "forceSave", + "name": "skipTesting", "in": "query", "schema": { "type": "boolean", "default": false } + }, + { + "name": "skipValidation", + "in": "query", + "schema": { + "$ref": "#/components/schemas/SkipValidation" + } } ], "requestBody": { @@ -670,12 +677,19 @@ } }, { - "name": "forceSave", + "name": "skipTesting", "in": "query", "schema": { "type": "boolean", "default": false } + }, + { + "name": "skipValidation", + "in": "query", + "schema": { + "$ref": "#/components/schemas/SkipValidation" + } } ], "requestBody": { @@ -779,11 +793,10 @@ ], "parameters": [ { - "name": "forceTest", + "name": "skipValidation", "in": "query", "schema": { - "type": "boolean", - "default": false + "$ref": "#/components/schemas/SkipValidation" } } ], @@ -2058,12 +2071,19 @@ ], "parameters": [ { - "name": "forceSave", + "name": "skipTesting", "in": "query", "schema": { "type": "boolean", "default": false } + }, + { + "name": "skipValidation", + "in": "query", + "schema": { + "$ref": "#/components/schemas/SkipValidation" + } } ], "requestBody": { @@ -2105,12 +2125,19 @@ } }, { - "name": "forceSave", + "name": "skipTesting", "in": "query", "schema": { "type": "boolean", "default": false } + }, + { + "name": "skipValidation", + "in": "query", + "schema": { + "$ref": "#/components/schemas/SkipValidation" + } } ], "requestBody": { @@ -2261,11 +2288,10 @@ ], "parameters": [ { - "name": "forceTest", + "name": "skipValidation", "in": "query", "schema": { - "type": "boolean", - "default": false + "$ref": "#/components/schemas/SkipValidation" } } ], @@ -2366,6 +2392,101 @@ } } }, + "/api/v5/settings/indexer": { + "get": { + "tags": [ + "IndexerSettings" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/IndexerSettingsResource" + } + } + } + } + } + } + }, + "/api/v5/settings/indexer/{id}": { + "put": { + "tags": [ + "IndexerSettings" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/IndexerSettingsResource" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/IndexerSettingsResource" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/IndexerSettingsResource" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/IndexerSettingsResource" + } + } + } + } + } + }, + "get": { + "tags": [ + "IndexerSettings" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/IndexerSettingsResource" + } + } + } + } + } + } + }, "/api/v5/language": { "get": { "tags": [ @@ -2842,12 +2963,19 @@ ], "parameters": [ { - "name": "forceSave", + "name": "skipTesting", "in": "query", "schema": { "type": "boolean", "default": false } + }, + { + "name": "skipValidation", + "in": "query", + "schema": { + "$ref": "#/components/schemas/SkipValidation" + } } ], "requestBody": { @@ -2889,12 +3017,19 @@ } }, { - "name": "forceSave", + "name": "skipTesting", "in": "query", "schema": { "type": "boolean", "default": false } + }, + { + "name": "skipValidation", + "in": "query", + "schema": { + "$ref": "#/components/schemas/SkipValidation" + } } ], "requestBody": { @@ -2998,11 +3133,10 @@ ], "parameters": [ { - "name": "forceTest", + "name": "skipValidation", "in": "query", "schema": { - "type": "boolean", - "default": false + "$ref": "#/components/schemas/SkipValidation" } } ], @@ -7691,6 +7825,32 @@ }, "additionalProperties": false }, + "IndexerSettingsResource": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32" + }, + "minimumAge": { + "type": "integer", + "format": "int32" + }, + "retention": { + "type": "integer", + "format": "int32" + }, + "maximumSize": { + "type": "integer", + "format": "int32" + }, + "rssSyncInterval": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, "Language": { "type": "object", "properties": { @@ -7865,6 +8025,10 @@ "type": "string", "nullable": true }, + "relativePath": { + "type": "string", + "nullable": true + }, "seriesId": { "type": "integer", "format": "int32" @@ -10283,6 +10447,14 @@ ], "type": "string" }, + "SkipValidation": { + "enum": [ + "none", + "warnings", + "all" + ], + "type": "string" + }, "SortDirection": { "enum": [ "default", @@ -10865,6 +11037,9 @@ { "name": "IndexerFlag" }, + { + "name": "IndexerSettings" + }, { "name": "Language" },