Database Views
Preview a Database View action
Builds a governed UPDATE or DELETE workset for a structured View using direct primary-key lineage. Regular Views return the preview directly; materialized Views return a tracked asynchronous preview operation after refreshing their snapshot.
POST
/
api
/
v1
/
databases
/
views
/
{databaseViewId}
/
actions
/
preview
Preview a Database View action
curl --request POST \
--url https://api.revoengine.com/api/v1/databases/views/{databaseViewId}/actions/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"targetDatabaseId": "<string>",
"keyMapping": {}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({targetDatabaseId: '<string>', keyMapping: {}})
};
fetch('https://api.revoengine.com/api/v1/databases/views/{databaseViewId}/actions/preview', 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/{databaseViewId}/actions/preview"
payload = {
"targetDatabaseId": "<string>",
"keyMapping": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)⌘I
Preview a Database View action
curl --request POST \
--url https://api.revoengine.com/api/v1/databases/views/{databaseViewId}/actions/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"targetDatabaseId": "<string>",
"keyMapping": {}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({targetDatabaseId: '<string>', keyMapping: {}})
};
fetch('https://api.revoengine.com/api/v1/databases/views/{databaseViewId}/actions/preview', 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/{databaseViewId}/actions/preview"
payload = {
"targetDatabaseId": "<string>",
"keyMapping": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
