diff --git a/lib/Controller/Api1Controller.php b/lib/Controller/Api1Controller.php index 839d71971..a4d7f183e 100644 --- a/lib/Controller/Api1Controller.php +++ b/lib/Controller/Api1Controller.php @@ -1097,7 +1097,7 @@ public function createRowInView(int $viewId, $data): DataResponse { * @NoCSRFRequired * * @param int $tableId Table ID - * @param string|array{columnId: int, value: mixed} $data Data as key - value store + * @param string|array{int, mixed} $data Data as key - value store * @return DataResponse|DataResponse * * 200: Row returned diff --git a/openapi.json b/openapi.json index 020cc2f2e..b6a713c22 100644 --- a/openapi.json +++ b/openapi.json @@ -3852,15 +3852,11 @@ { "type": "object", "required": [ - "columnId", - "value" + null, + null ], "properties": { - "columnId": { - "type": "integer", - "format": "int64" - }, - "value": { + "": { "type": "object" } } diff --git a/src/types/openapi/openapi.ts b/src/types/openapi/openapi.ts index f9810e2e1..f44f65baa 100644 --- a/src/types/openapi/openapi.ts +++ b/src/types/openapi/openapi.ts @@ -1847,9 +1847,7 @@ export type operations = { "application/json": { /** @description Data as key - value store */ data: OneOf<[string, { - /** Format: int64 */ - columnId: number; - value: Record; + ""?: Record; }]>; }; };