Database Views
Create a Database View
Creates a regular or materialized Database View after validating its definition, source access, output columns, ACL, quota, and materialization settings. The exact request contract is generated below.
POST
/
api
/
v1
/
databases
/
views
Create a Database View
curl --request POST \
--url https://api.revoengine.com/api/v1/databases/views \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"restricted": true
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', restricted: true})
};
fetch('https://api.revoengine.com/api/v1/databases/views', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/databases/views"
payload = {
"name": "<string>",
"restricted": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Body
application/json
Response
201
⌘I
Create a Database View
curl --request POST \
--url https://api.revoengine.com/api/v1/databases/views \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"restricted": true
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', restricted: true})
};
fetch('https://api.revoengine.com/api/v1/databases/views', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/databases/views"
payload = {
"name": "<string>",
"restricted": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
