This upserts (create or replace) a materialized view from an existing query
Materialized Views
Upsert Materialized View
This upserts a materialized view from an existing query. If the materialized view with the given name
POST
This upserts (create or replace) a materialized view from an existing query
Documentation Index
Fetch the complete documentation index at: https://docs.dune.com/llms.txt
Use this file to discover all available pages before exploring further.
Minimum required API key scope:
Read/Write- This endpoint will create a new matview if none exists for the given query ID, or update an existing one if the query ID matches.
- It will fail to create a matview with the same name as an existing one, but for a different query ID
- The name of the matview is just the last part of the matview, not including
dune.<your_team>.and must be prefixed withresult_ - The
cron_expressionparameter must be passed in as a valid 5 section cron expression. See here for how to write them.
Headers
API Key for the service
Query Parameters
API Key, alternative to using the HTTP header X-Dune-Api-Key
Body
*/*
MatviewsUpsertRequest