Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

add missing changes in swagger.json

Ramesh Mane14675802b274
diff --git a/packages/nocodb/src/schema/swagger.json b/packages/nocodb/src/schema/swagger.json
index a1d0d27d5c..074b48af86 100644
--- a/packages/nocodb/src/schema/swagger.json
+++ b/packages/nocodb/src/schema/swagger.json
@@ -21256,7 +21256,8 @@
"properties": {
"title": {"type": "string"},
"description": {"type": "string"},
- "template_data": {"type": "object"}
+ "template_data": {"type": "object"},
+ "enabled": {"type": "boolean"}
}
}
}
@@ -21292,7 +21293,7 @@
"/api/v2/meta/bases/{baseId}/tables/{sourceId}/record-templates/{templateId}/create-from": {
"post": {
"summary": "Create Record From Template",
- "operationId": "record-template-use",
+ "operationId": "record-template-create-from",
"responses": {
"200": {
"description": "OK"
@@ -21320,6 +21321,32 @@
"required": true
}
]
+ },
+ "/api/v2/meta/bases/{baseId}/record-templates/{templateId}/use": {
+ "post": {
+ "summary": "Increment Template Usage Count",
+ "operationId": "record-template-use",
+ "responses": {
+ "200": {
+ "description": "OK"
+ }
+ },
+ "tags": ["Record Templates"]
+ },
+ "parameters": [
+ {
+ "schema": {"type": "string"},
+ "name": "baseId",
+ "in": "path",
+ "required": true
+ },
+ {
+ "schema": {"type": "string"},
+ "name": "templateId",
+ "in": "path",
+ "required": true
+ }
+ ]
}
},
"components": {