diff --git a/server/endpoints/api/workspace/index.js b/server/endpoints/api/workspace/index.js index dca21e49f6..090d5c7afa 100644 --- a/server/endpoints/api/workspace/index.js +++ b/server/endpoints/api/workspace/index.js @@ -150,18 +150,20 @@ function apiWorkspaceEndpoints(app) { schema: { type: 'object', example: { - workspace: { - "id": 79, - "name": "My workspace", - "slug": "my-workspace-123", - "createdAt": "2023-08-17 00:45:03", - "openAiTemp": null, - "lastUpdatedAt": "2023-08-17 00:45:03", - "openAiHistory": 20, - "openAiPrompt": null, - "documents": [], - "threads": [] - } + workspace: [ + { + "id": 79, + "name": "My workspace", + "slug": "my-workspace-123", + "createdAt": "2023-08-17 00:45:03", + "openAiTemp": null, + "lastUpdatedAt": "2023-08-17 00:45:03", + "openAiHistory": 20, + "openAiPrompt": null, + "documents": [], + "threads": [] + } + ] } } } diff --git a/server/swagger/openapi.json b/server/swagger/openapi.json index 1222b78b24..d478e1b264 100644 --- a/server/swagger/openapi.json +++ b/server/swagger/openapi.json @@ -1473,18 +1473,20 @@ "schema": { "type": "object", "example": { - "workspace": { - "id": 79, - "name": "My workspace", - "slug": "my-workspace-123", - "createdAt": "2023-08-17 00:45:03", - "openAiTemp": null, - "lastUpdatedAt": "2023-08-17 00:45:03", - "openAiHistory": 20, - "openAiPrompt": null, - "documents": [], - "threads": [] - } + "workspace": [ + { + "id": 79, + "name": "My workspace", + "slug": "my-workspace-123", + "createdAt": "2023-08-17 00:45:03", + "openAiTemp": null, + "lastUpdatedAt": "2023-08-17 00:45:03", + "openAiHistory": 20, + "openAiPrompt": null, + "documents": [], + "threads": [] + } + ] } } }