Rename Dashboard

Update the title of an existing dashboard using the Blue API


Rename a Dashboard

The editDashboard mutation allows you to rename a dashboard by updating its title. Only the dashboard creator has permission to rename a dashboard.

Basic Example

mutation RenameDashboard {
  editDashboard(
    input: {
      id: "dash_abc123"
      title: "Q4 Sales Dashboard"
    }
  ) {
    id
    title
    updatedAt
  }
}

Advanced Example with User Management

The editDashboard mutation can also update dashboard users while renaming:

mutation RenameAndUpdateUsers {
  editDashboard(
    input: {
      id: "dash_abc123"
      title: "Updated Sales Dashboard"
      dashboardUsers: [
        {
          userId: "user_123"
          role: EDITOR
        }
        {
          userId: "user_456"
          role: VIEWER
        }
      ]
    }
  ) {
    id
    title
    dashboardUsers {
      id
      user {
        id
        email
        firstName
        lastName
      }
      role
    }
    updatedAt
  }
}

Input Parameters

EditDashboardInput

ParameterTypeRequiredDescription
idString!✅ YesThe unique identifier of the dashboard to rename
titleStringNoThe new title for the dashboard. If not provided, title remains unchanged
dashboardUsers[EditDashboardUserInput!]NoOptional array to update dashboard user permissions

EditDashboardUserInput

ParameterTypeRequiredDescription
userIdString!✅ YesThe ID of the user to add or update
roleDashboardRole!✅ YesThe role to assign to the user

DashboardRole Values

ValueDescription
EDITORCan view and edit dashboard content (charts, filters, layout)
VIEWERCan only view the dashboard

Response Fields

The mutation returns a complete Dashboard object:

FieldTypeDescription
idString!Unique dashboard identifier
titleString!The updated dashboard title
createdByUser!The user who created the dashboard
dashboardUsers[DashboardUser!]!List of users with access to the dashboard
createdAtDateTime!When the dashboard was created
updatedAtDateTime!When the dashboard was last modified

Required Permissions

Only the dashboard creator can rename a dashboard. Other users with EDITOR or VIEWER roles cannot change the dashboard title.

User TypeCan Rename Dashboard
Dashboard Creator✅ Yes
Dashboard Editor❌ No
Dashboard Viewer❌ No
Other Company Users❌ No

Error Responses

Dashboard Not Found

{
  "errors": [{
    "message": "Dashboard not found",
    "extensions": {
      "code": "NOT_FOUND"
    }
  }]
}

Insufficient Permissions

{
  "errors": [{
    "message": "You don't have permission to edit this dashboard",
    "extensions": {
      "code": "FORBIDDEN"
    }
  }]
}

Validation Error

{
  "errors": [{
    "message": "Dashboard title cannot be empty",
    "extensions": {
      "code": "VALIDATION_ERROR"
    }
  }]
}

Important Notes

  • No separate rename mutation: There is no renameDashboard mutation. Renaming is handled through the editDashboard mutation
  • Creator-only permission: Only the dashboard creator can rename it, even if other users have EDITOR role
  • Title validation: Dashboard titles must be non-empty strings
  • Atomic operation: When updating both title and users, either all changes succeed or none are applied
  • User management: You can add, update, or remove dashboard users in the same operation as renaming

Use Cases

  1. Rebranding dashboards: Update dashboard names to reflect new company terminology or branding
  2. Seasonal updates: Rename dashboards to reflect current time periods (e.g., “Q3 2024 Sales” → “Q4 2024 Sales”)
  3. Project evolution: Update dashboard titles as projects change scope or focus
  4. Clarity improvements: Rename dashboards to be more descriptive or follow naming conventions