REST API
Update a View
Updates an existing view, or creates a new view if one doesn't exist.
PUT
/api/projects/{projectName}/views/{viewName}
projectName*
viewName*
curl --request PUT \
--url http://127.0.0.1:47334/api/projects/{projectName}/views/{viewName} \
--header 'Content-Type: application/json'
{
"name": "string",
"query": "string"
}
The REST API playground can currently only be used with MindsDB running locally at http://127.0.0.1:47334. Support for MindsDB Cloud is in progress. In the meantime, check out our SQL example for how to use the REST API with MindsDB Cloud.
Path Parameters
projectNamerequired
string
The name of the project
viewNamerequired
string
The name of the view
Body
view
object
Response
name
string
query
string
SELECT query used to create the view
curl --request PUT \
--url http://127.0.0.1:47334/api/projects/{projectName}/views/{viewName} \
--header 'Content-Type: application/json'
{
"name": "string",
"query": "string"
}