Reusable SQL query definitions and team assignment.
/me/queriesList my queries
Returns all queries that the current user can access based on their team memberships.
Includes team associations for each query in the normalized response.
Parameters
limitinteger
The maximum number of items to list.
"int32"0100100pageinteger
The page number to retrieve (1-indexed). Used with limit to support offset-based pagination.
"int32"11sortBystring
The field to sort by.
"name""updatedAt""updatedAt"sortDirectionstring
The direction to sort (ascending or descending).
"asc""desc""asc"Responses
Responses
A list of queries the current user can access is returned.
/workloads/queriesList queries
Returns a paginated list of all queries in the organization, including their SQL statements and catalog configuration.
Parameters
limitinteger
The maximum number of items to list.
"int32"0100100Responses
Responses
A list of queries is returned.
/workloads/queriesCreate a query
Defines a new reusable SQL query within the organization. Queries can be referenced by one or more jobs and shared with teams for collaborative use.
Request Body
Responses
Responses
The query was created successfully.
/workloads/queries/{query}Describe a query
Returns the full details of a query, including its SQL statement, catalog provider, schema, and associated teams.
Parameters
queryrequired
A query ID.
Responses
Responses
Query details with normalized entity references.
/workloads/queries/{query}Delete a query
Permanently removes a query and its team assignments. Queries that are still referenced by active jobs cannot be deleted.
Parameters
queryrequired
A query ID.
Responses
Responses
The requested operation was done successfully.
/workloads/queries/{query}Update a query
Modifies a query's properties such as its name, SQL statement, catalog provider, or schema configuration.
Parameters
queryrequired
A query ID.
Request Body
Responses
Responses
The query was updated successfully.
/workloads/queries/{query}/teamsList query teams
Returns the teams that have been granted access to the specified query.
Parameters
limitinteger
The maximum number of items to list.
"int32"0100100Responses
Responses
The list of teams associated with the query is returned.
/workloads/queries/{query}/teamsAdd teams to a query
Grants one or more teams access to a query. Team members inherit the ability to view and use the query based on their team role permissions.
Parameters
queryrequired
A query ID.
Request Body
Responses
Responses
The teams were added to the query successfully.
/workloads/queries/{query}/teams/{team}Remove a team from a query
Revokes a team's access to a query. Team members will no longer be able to view or use the query unless they have access through another team.
Parameters
queryrequired
A query ID.
teamrequired
The team ID.
Responses
Responses
The team was removed from the query successfully.
/workloads/teams/{team}/queriesList team queries
Returns a paginated list of queries that the specified team has been granted access to.
Parameters
limitinteger
The maximum number of items to list.
"int32"0100100Responses
Responses
A list of queries accessible to the team is returned.