diff --git a/packages/nocodb/src/schema/swagger-v2.json b/packages/nocodb/src/schema/swagger-v2.json index 36d1298fa0..98a5b646b9 100644 --- a/packages/nocodb/src/schema/swagger-v2.json +++ b/packages/nocodb/src/schema/swagger-v2.json @@ -22535,23 +22535,23 @@ } }, "parameters": { - "xc-auth": { - "name": "xc-auth", + "xc-token": { + "name": "xc-token", "in": "header", "required": true, "schema": { "type": "string" }, - "description": "Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN." + "description": "API Token. Refer [here](https://docs.nocodb.com/account-settings/api-tokens/) to know more" }, - "xc-token": { - "name": "xc-token", + "xc-auth": { + "name": "xc-auth", "in": "header", "required": true, "schema": { "type": "string" }, - "description": "API Token. Refer [here](https://docs.nocodb.com/account-settings/api-tokens/) to know more" + "description": "Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN." } } } diff --git a/packages/nocodb/src/schema/swagger.json b/packages/nocodb/src/schema/swagger.json index c0b31098db..3feb763c8d 100644 --- a/packages/nocodb/src/schema/swagger.json +++ b/packages/nocodb/src/schema/swagger.json @@ -27626,10 +27626,19 @@ } }, "parameters": { + "xc-token": { + "name": "xc-token", + "in": "header", + "required": true, + "schema": { + "type": "string" + }, + "description": "API Token. Refer [here](https://docs.nocodb.com/account-settings/api-tokens/) to know more" + }, "xc-auth": { "name": "xc-auth", "in": "header", - "required": false, + "required": true, "schema": { "type": "string" }, diff --git a/packages/nocodb/src/services/api-docs/swagger/swagger-base.json b/packages/nocodb/src/services/api-docs/swagger/swagger-base.json index b7096249f8..6a77e839b6 100644 --- a/packages/nocodb/src/services/api-docs/swagger/swagger-base.json +++ b/packages/nocodb/src/services/api-docs/swagger/swagger-base.json @@ -71,12 +71,6 @@ } }, "securitySchemes": { - "xcAuth": { - "type": "apiKey", - "in": "header", - "name": "xc-auth", - "description": "JWT access token" - }, "xcToken": { "type": "apiKey", "in": "header", diff --git a/packages/nocodb/src/services/api-docs/swaggerV2/swagger-base.json b/packages/nocodb/src/services/api-docs/swaggerV2/swagger-base.json index a8ec46234e..05b9ec18e0 100644 --- a/packages/nocodb/src/services/api-docs/swaggerV2/swagger-base.json +++ b/packages/nocodb/src/services/api-docs/swaggerV2/swagger-base.json @@ -70,12 +70,6 @@ } }, "securitySchemes": { - "xcAuth": { - "type": "apiKey", - "in": "header", - "name": "xc-auth", - "description": "JWT access token" - }, "xcToken": { "type": "apiKey", "in": "header",