Query Files
POST/api/v1/workspaces/:workspace_name/files/_sql
Executes an SQL query on the workspace's file index and returns the raw response. The query must follow the OpenSearch SQL Query syntax.The table must be file. Error responses contain an errors list. The error key is deprecated, so read errors instead, for example {"errors": ["message"]}.
Request
Responses
- 200
- 422
Successful Response
Validation Error
Was this page helpful?