Skip to main content
POST
Move queries and dashboards
Minimum required API key scope: Read/Write

Use Cases

  • File New Work: Move queries and dashboards an agent just created into the right folder.
  • Bulk Moves: Move up to 100 queries and 100 dashboards in one call. The move is all or nothing.
  • Take Content Out of Folders: Pass target_folder_id: null to move items out of all folders.

Headers

X-Dune-Api-Key
string
required

API Key for the service

Query Parameters

api_key
string

API Key, alternative to using the HTTP header X-Dune-Api-Key

Body

application/json

Content to move and its destination

target_folder_id
string | null
required

TargetFolderID is the destination folder, or null to take the content out of folders. The field is required so that a missing value never moves content by accident.

dashboard_ids
integer[]
Maximum array length: 100
Example:
query_ids
integer[]
Maximum array length: 100
Example:

Response

OK

moved_dashboard_ids
integer[]
moved_query_ids
integer[]
target_folder
object

TargetFolder is null when the content moved to the library root.