diff --git a/packages/nocodb-sdk/src/lib/Api.ts b/packages/nocodb-sdk/src/lib/Api.ts index c66195cf5a..2d6b769634 100644 --- a/packages/nocodb-sdk/src/lib/Api.ts +++ b/packages/nocodb-sdk/src/lib/Api.ts @@ -10661,132 +10661,6 @@ export class Api< ...params, }), - /** - * @description Create a new row in a given table and project. - * - * @tags DB Data Table Row - * @name Create2 - * @summary Create Table Rows - * @request POST:/api/v1/tables/{tableId}/rows/{rowId} - * @originalName create - * @duplicate - * @response `200` `any` OK - * @response `400` `{ - \** @example BadRequest [Error]: *\ - msg: string, - -}` - */ - create2: ( - tableId: string, - rowId: string, - query: { - /** View ID */ - viewId: string; - }, - data: object | object[], - params: RequestParams = {} - ) => - this.request< - any, - { - /** @example BadRequest [Error]: */ - msg: string; - } - >({ - path: `/api/v1/tables/${tableId}/rows/${rowId}`, - method: 'POST', - query: query, - body: data, - type: ContentType.Json, - format: 'json', - ...params, - }), - - /** - * @description Create a new row in a given table and project. - * - * @tags DB Data Table Row - * @name Update2 - * @summary Update Table Rows - * @request PUT:/api/v1/tables/{tableId}/rows/{rowId} - * @originalName update - * @duplicate - * @response `200` `any` OK - * @response `400` `{ - \** @example BadRequest [Error]: *\ - msg: string, - -}` - */ - update2: ( - tableId: string, - rowId: string, - query: { - /** View ID */ - viewId: string; - }, - data: object | object[], - params: RequestParams = {} - ) => - this.request< - any, - { - /** @example BadRequest [Error]: */ - msg: string; - } - >({ - path: `/api/v1/tables/${tableId}/rows/${rowId}`, - method: 'PUT', - query: query, - body: data, - type: ContentType.Json, - format: 'json', - ...params, - }), - - /** - * @description Create a new row in a given table and project. - * - * @tags DB Data Table Row - * @name Delete2 - * @summary Delete Table Rows - * @request DELETE:/api/v1/tables/{tableId}/rows/{rowId} - * @originalName delete - * @duplicate - * @response `200` `any` OK - * @response `400` `{ - \** @example BadRequest [Error]: *\ - msg: string, - -}` - */ - delete2: ( - tableId: string, - rowId: string, - query: { - /** View ID */ - viewId: string; - }, - data: object | object[], - params: RequestParams = {} - ) => - this.request< - any, - { - /** @example BadRequest [Error]: */ - msg: string; - } - >({ - path: `/api/v1/tables/${tableId}/rows/${rowId}`, - method: 'DELETE', - query: query, - body: data, - type: ContentType.Json, - format: 'json', - ...params, - }), - /** * @description Count of rows in a given table * diff --git a/packages/nocodb/src/schema/swagger.json b/packages/nocodb/src/schema/swagger.json index cb2254f3e5..0786ebe381 100644 --- a/packages/nocodb/src/schema/swagger.json +++ b/packages/nocodb/src/schema/swagger.json @@ -15788,170 +15788,6 @@ "$ref": "#/components/responses/BadRequest" } } - }, - "post": { - "summary": "Create Table Rows", - "operationId": "db-data-table-row-create", - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": {} - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - } - }, - "tags": [ - "DB Data Table Row" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "oneOf": [ - { - "type": "object" - }, - { - "type": "array", - "items": { - "type": "object" - } - } - ] - }, - "examples": { - "Example 1": { - "value": { - "Id": 1, - "Title": "foo", - "CreatedAt": "2023-03-11T09:10:53.567Z", - "UpdatedAt": "2023-03-11T09:10:53.567Z" - } - } - } - } - } - }, - "description": "Create a new row in a given table and project.", - "parameters": [ - { - "$ref": "#/components/parameters/xc-auth" - } - ] - }, - "put": { - "summary": "Update Table Rows", - "operationId": "db-data-table-row-update", - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": {} - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - } - }, - "tags": [ - "DB Data Table Row" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "oneOf": [ - { - "type": "object" - }, - { - "type": "array", - "items": { - "type": "object" - } - } - ] - }, - "examples": { - "Example 1": { - "value": { - "Id": 1, - "Title": "foo", - "CreatedAt": "2023-03-11T09:10:53.567Z", - "UpdatedAt": "2023-03-11T09:10:53.567Z" - } - } - } - } - } - }, - "description": "Create a new row in a given table and project.", - "parameters": [ - { - "$ref": "#/components/parameters/xc-auth" - } - ] - }, - "delete": { - "summary": "Delete Table Rows", - "operationId": "db-data-table-row-delete", - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": {} - } - } - }, - "400": { - "$ref": "#/components/responses/BadRequest" - } - }, - "tags": [ - "DB Data Table Row" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "oneOf": [ - { - "type": "object" - }, - { - "type": "array", - "items": { - "type": "object" - } - } - ] - }, - "examples": { - "Example 1": { - "value": [ - { - "Id": 1 - } - ] - } - } - } - } - }, - "description": "Create a new row in a given table and project.", - "parameters": [ - { - "$ref": "#/components/parameters/xc-auth" - } - ] } }, "/api/v1/tables/{tableId}/rows/count": {