diff --git a/routers/api/v1/settings/settings.go b/routers/api/v1/settings/settings.go
index 29210751d6..2b7b11bfd8 100644
--- a/routers/api/v1/settings/settings.go
+++ b/routers/api/v1/settings/settings.go
@@ -63,7 +63,7 @@ func GetGeneralRepoSettings(ctx *context.APIContext) {
 
 // GetGeneralAttachmentSettings returns instance's global settings for Attachment
 func GetGeneralAttachmentSettings(ctx *context.APIContext) {
-	// swagger:operation GET /settings/Attachment settings getGeneralAttachmentSettings
+	// swagger:operation GET /settings/attachment settings getGeneralAttachmentSettings
 	// ---
 	// summary: Get instance's global settings for Attachment
 	// produces:
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 837705682a..e7655f02a8 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -8870,23 +8870,6 @@
         }
       }
     },
-    "/settings/Attachment": {
-      "get": {
-        "produces": [
-          "application/json"
-        ],
-        "tags": [
-          "settings"
-        ],
-        "summary": "Get instance's global settings for Attachment",
-        "operationId": "getGeneralAttachmentSettings",
-        "responses": {
-          "200": {
-            "$ref": "#/responses/GeneralAttachmentSettings"
-          }
-        }
-      }
-    },
     "/settings/api": {
       "get": {
         "produces": [
@@ -8904,6 +8887,23 @@
         }
       }
     },
+    "/settings/attachment": {
+      "get": {
+        "produces": [
+          "application/json"
+        ],
+        "tags": [
+          "settings"
+        ],
+        "summary": "Get instance's global settings for Attachment",
+        "operationId": "getGeneralAttachmentSettings",
+        "responses": {
+          "200": {
+            "$ref": "#/responses/GeneralAttachmentSettings"
+          }
+        }
+      }
+    },
     "/settings/repository": {
       "get": {
         "produces": [