> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wisdom.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Refresh Dashboard

The `refreshDashboard` mutation refreshes all data in a dashboard's widgets to show the latest information.

## Signature

```graphql theme={null}
refreshDashboard(id: String!, version: String): Dashboard!
```

## Arguments

<ParamField path="id" type="String!" required>
  The unique identifier of the dashboard to refresh.
</ParamField>

## Response

Returns the refreshed `Dashboard` object with updated widget data. See [Dashboard](/integrations/graphql-api/objects/dashboard) for the schema.

## Usage example

The following example shows how to refresh all dashboard data:

```graphql theme={null}
mutation RefreshDashboard($id: String!) {
  refreshDashboard(id: $id) {
    id
    widgets {
      id
      title
      dataRefreshedAt
    }
  }
}
```

<RequestExample>
  ```bash Request theme={null}
  curl -X POST \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer <jwt_token>" \
    -d '{
      "query": "mutation RefreshDashboard($id: String!) { refreshDashboard(id: $id) { id widgets { id title dataRefreshedAt } } }",
      "variables": {
        "id": "dashboard_123456789"
      }
    }' \
    https://{ACCOUNT}.askwisdom.ai/graphql
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "data": {
      "refreshDashboard": {
        "id": "dashboard_123456789",
        "widgets": [
          {
            "id": "widget_987654321",
            "title": "Sales Chart",
            "dataRefreshedAt": "2024-01-15T10:30:00Z"
          }
        ]
      }
    }
  }
  ```
</ResponseExample>

## Next steps

<CardGroup cols={2}>
  <Card title="Dashboard Query" icon="magnifying-glass" href="/integrations/graphql-api/queries/dashboard/dashboard">
    Retrieve refreshed dashboard data
  </Card>
</CardGroup>
