POST
/
api
/
projects
/
{projectName}
/
views
curl --request POST \
  --url http://127.0.0.1:47334/api/projects/{projectName}/views \
  --header 'Content-Type: application/json' \
  --data '{
  "view": {
    "name": "<string>",
    "query": "<string>"
  }
}'
[
  {
    "name": "<string>",
    "query": "<string>"
  }
]

The REST API endpoints can be used with MindsDB running locally at http://127.0.0.1:47334/api.

Path Parameters

projectName
string
required

The name of the project

Body

application/json
view
object

Response

200
application/json
View created
name
string
query
string

SELECT query used to create the view