---
title: "Set a card's width on the 6-track dashboard grid: span 2 (third), 3 (half), 4 (two thirds), 6 (full), or null for the chart kind's default"
method: POST
path: "/crm/objects/{objectName}/analytics/panels/{panelId}/resize"
tags: ["crm"]
---

# Set a card's width on the 6-track dashboard grid: span 2 (third), 3 (half), 4 (two thirds), 6 (full), or null for the chart kind's default

`POST /crm/objects/{objectName}/analytics/panels/{panelId}/resize`

## Request

- Base URL: `https://www.dench.com/api/v1`
- URL: `https://www.dench.com/api/v1/crm/objects/{objectName}/analytics/panels/{panelId}/resize`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Set a card's width on the 6-track dashboard grid: span 2 (third), 3 (half), 4 (two thirds), 6 (full), or null for the chart kind's default.

## Path parameters

- `objectName` string, required
- `panelId` string, required

## Request body

- object
  - `span` union, required: 2 = third, 3 = half, 4 = two thirds, 6 = full row; null = the chart kind's default.
    - 2
    - 3
    - 4
    - 6
  - `viewName` string

## Response `200`

Successful response

- object
  - `ok` boolean, required
  - `panel` object, required: One analytics panel definition.
    - `id` string, required: Stable id (template panels use `tpl:<template>:<slug>`).
    - `title` string, required
    - `type` 'stat' | 'bar' | 'line' | 'area' | 'donut' | 'funnel' | 'leaderboard' | 'forecast' | 'map', required
    - `metric` 'count' | 'sum' | 'avg' | 'min' | 'max', required
    - `metricField` string: Numeric field for sum/avg/min/max. Ignored for count.
    - `groupBy` string: Bucketing field (enum/user/relation/boolean/text, or $location). On a time-series panel it splits the series into one line per value.
    - `dateField` string: Date field for line/area/forecast bucketing (or $createdAt).
    - `dateBucket` 'day' | 'week' | 'month' | 'quarter'
    - `filters` object: Panel-scoped FilterGroup, same shape as saved-view filters.
    - `size` 'sm' | 'md' | 'lg': Deprecated; ignored for layout. Use `span`.
    - `span` union: Card width on the 6-track dashboard grid: 2 = a third, 3 = half, 4 = two thirds, 6 = full row. Defaults: funnel 4; map and leaderboard 2; bar/donut grouped by a user field 2, by anything else 4; trends 3.
      - 2
      - 3
      - 4
      - 6
    - `hidden` boolean: Hide from the strip above the table; still shown in the full analytics view.
    - `sortOrder` number, required
    - `derived` 'conversion_rate' | 'win_rate' | 'won_amount' | 'lost_amount' | 'open_pipeline' | 'pipeline_forecast' | 'mrr' | 'arr': Role-driven derived metric; when set the panel computes from fieldRoles instead of metric/groupBy.

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid authentication
- `404`: Operation or resource not found
- `500`: Server error

---

[API](https://skmtc.dev/dench/apis/dench-api.md) - [All operations](https://skmtc.dev/dench/apis/dench-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dench/apis/dench-api/revisions/4a145b38f19c?raw)
