Skip to content
LogoLogo

Saved view schema

See Management API schema for every domain, the endpoint and authentication.

Queries

savedView

Reads a saved view. Scope: ORGANIZATION_PROJECTS_READ.

savedView(input: SavedViewInput!): SavedView @auth

Mutations

savedViewCreate

Creates a saved view of a list in a project. Scope: ORGANIZATION_PROJECTS_UPDATE.

savedViewCreate(input: SavedViewCreateInput!): SavedViewCreatePayload! @auth

savedViewUpdate

Updates a saved view: its name, its controls, or whether it is the default. Scope: ORGANIZATION_PROJECTS_UPDATE.

savedViewUpdate(input: SavedViewUpdateInput!): SavedViewUpdatePayload! @auth

savedViewDelete

Deletes a saved view. Scope: ORGANIZATION_PROJECTS_UPDATE.

savedViewDelete(input: SavedViewDeleteInput!): SavedViewDeletePayload! @auth

Types

SavedView

"""
A named set of controls for a list page in the dashboard, shared by everyone on the project.
"""
type SavedView {
  """The ID of the saved view."""
  id: ID!
  """The ID of the project the saved view belongs to."""
  projectId: ID!
  """The list the saved view applies to."""
  resource: SavedViewResource!
  """The name of the saved view."""
  name: String!
  """The `q` query-string value: a search in the list's query language."""
  query: String
  """
  The `cols` query-string value: comma-separated column paths, in display order.
  """
  columnPaths: String
  """The `sort` query-string value, as `<key>:<direction>`."""
  sort: String
  """
  The `from` query-string value: the first day of a fixed capture window, as `YYYY-MM-DD`.
  """
  windowFrom: String
  """
  The `to` query-string value: the last day of a fixed capture window, as `YYYY-MM-DD`.
  """
  windowTo: String
  """
  The `last` query-string value: the number of units a relative capture window spans.
  """
  windowLast: String
  """The `unit` query-string value: the unit of a relative capture window."""
  windowUnit: String
  """The `chart` query-string value: the kind of chart above the list."""
  chart: String
  """The `interval` query-string value: the bucket width of the chart."""
  chartInterval: String
  """
  The `chartBy` query-string value: the path that splits the chart into series.
  """
  chartBy: String
  """
  The `compare` query-string value: `previous` when the chart shows the period before its window.
  """
  chartCompare: String
  """
  Whether the list opens with this view when its URL has no controls. At most one per project and
  list.
  """
  isDefault: Boolean!
  """When the saved view was created."""
  createdAt: DateTime!
  """When the saved view last changed."""
  updatedAt: DateTime!
}

SavedViewResource

"""The list a saved view applies to."""
enum SavedViewResource {
  """The leads of the project."""
  LEADS
  """The visits to the project."""
  SESSIONS
}

SavedViewConnection

"""A page of saved views."""
type SavedViewConnection {
  """The edges in this page."""
  edges: [SavedViewEdge!]!
  """The saved views in this page."""
  nodes: [SavedView!]!
  """Where this page sits in the list."""
  pageInfo: PageInfo!
  """The total number of saved views."""
  totalCount: Int!
}

SavedViewEdge

"""A saved view in a page of results."""
type SavedViewEdge {
  """The cursor of this edge."""
  cursor: String!
  """The saved view."""
  node: SavedView!
}

SavedViewInput

"""The input of `savedView`."""
input SavedViewInput {
  """The ID of the saved view."""
  id: ID!
}

SavedViewCreateInput

"""The input of `savedViewCreate`."""
input SavedViewCreateInput {
  """The ID of the project."""
  projectId: ID!
  """The list the saved view applies to."""
  resource: SavedViewResource!
  """The name: 1 to 120 characters after trimming."""
  name: String!
  """The `q` query-string value."""
  query: String
  """The `cols` query-string value."""
  columnPaths: String
  """The `sort` query-string value."""
  sort: String
  """The `from` query-string value."""
  windowFrom: String
  """The `to` query-string value."""
  windowTo: String
  """The `last` query-string value."""
  windowLast: String
  """The `unit` query-string value."""
  windowUnit: String
  """The `chart` query-string value."""
  chart: String
  """The `interval` query-string value."""
  chartInterval: String
  """The `chartBy` query-string value."""
  chartBy: String
  """The `compare` query-string value."""
  chartCompare: String
  """
  Whether to make this the default view, taking the default from the view that held it.
  """
  isDefault: Boolean
}

SavedViewUpdateInput

"""
The input of `savedViewUpdate`. Omit a field to keep its value. Null clears a query-string value.
"""
input SavedViewUpdateInput {
  """The ID of the saved view."""
  id: ID!
  """The name: 1 to 120 characters after trimming."""
  name: String
  """The `q` query-string value."""
  query: String
  """The `cols` query-string value."""
  columnPaths: String
  """The `sort` query-string value."""
  sort: String
  """The `from` query-string value."""
  windowFrom: String
  """The `to` query-string value."""
  windowTo: String
  """The `last` query-string value."""
  windowLast: String
  """The `unit` query-string value."""
  windowUnit: String
  """The `chart` query-string value."""
  chart: String
  """The `interval` query-string value."""
  chartInterval: String
  """The `chartBy` query-string value."""
  chartBy: String
  """The `compare` query-string value."""
  chartCompare: String
  """
  Whether this is the default view. True takes the default from the view that held it.
  """
  isDefault: Boolean
}

SavedViewDeleteInput

"""The input of `savedViewDelete`."""
input SavedViewDeleteInput {
  """The ID of the saved view."""
  id: ID!
}

SavedViewCreatePayload

"""The result of `savedViewCreate`."""
type SavedViewCreatePayload {
  """The saved view."""
  savedView: SavedView
  """The errors. Always empty: an invalid input fails with a GraphQL error."""
  userErrors: [UserError!]!
}

SavedViewUpdatePayload

"""The result of `savedViewUpdate`."""
type SavedViewUpdatePayload {
  """The saved view."""
  savedView: SavedView
  """The errors. Always empty: an invalid input fails with a GraphQL error."""
  userErrors: [UserError!]!
}

SavedViewDeletePayload

"""The result of `savedViewDelete`."""
type SavedViewDeletePayload {
  """The ID of the deleted saved view."""
  deletedSavedViewId: ID
  """The errors. Always empty."""
  userErrors: [UserError!]!
}