Skip to content

Update a pane

PATCH
/panes/{id}
curl --request PATCH \
--url https://localhost:3000/api/v1/panes/example \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "config": { "cross": "metadata.weekday", "dimension": "metadata.hour", "filters": {}, "interval": "1h", "measure": "sum:cost_usd", "range": "24h", "viz": "heatmap" }, "name": "Hourly activity", "width": "half" }'

Updates a pane’s name, config, or width (half or full)

id
required
string

Pane ID (UUID)

Fields to update

Media typeapplication/json
object
config
object
cross
string

Example

metadata.weekday
dimension
required
string

Example

metadata.hour
filters
object
interval
required
string
Allowed values: 1m 5m 30m 1h 6h 1d

Example

1h
measure

Measure is what the figures are: empty or count for the number of events, sum: for the sum of a numeric key (see ParseMeasure).

string

Example

sum:cost_usd
range

Range is an explicit override of the page range; empty means the pane follows the page.

string
Allowed values: "" 1h 6h 24h 7d 30d

Example

24h
viz
required
string
Allowed values: heatmap punchcard map bars donut cols line table stack

Example

heatmap
name
string

Example

Hourly activity
width
string
Allowed values: half full

Example

full

Pane updated

Media typeapplication/json
object
account_id
required
string format: uuid
config
required
object
cross
string
dimension
required
string
filters
object
interval
required
string
Allowed values: 1m 5m 30m 1h 6h 1d
measure

Measure is what the figures are: empty or count for the number of events, sum: for the sum of a numeric key (see ParseMeasure).

string
range

Range is an explicit override of the page range; empty means the pane follows the page.

string
Allowed values: "" 1h 6h 24h 7d 30d
viz
required
string
Allowed values: heatmap punchcard map bars donut cols line table stack
created_at
required
string format: date-time
id
required
string format: uuid
name
required
string
position
required
integer
scope_id
required
string format: uuid
scope_type
required
string
updated_at
required
string format: date-time
width
required
string
Allowed values: half full

Example

{
"account_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"config": {
"cross": "metadata.weekday",
"dimension": "metadata.hour",
"interval": "1h",
"measure": "sum:cost_usd",
"range": "24h",
"viz": "heatmap"
},
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Hourly activity",
"position": 0,
"scope_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"scope_type": "trigger",
"width": "half"
}

Invalid request or config

Media typeapplication/json
object
error
required
string
message
string

Example

{
"error": "invalid_request",
"message": "Invalid request body"
}

Unauthorized

Media typeapplication/json
object
error
required
string
message
string

Example

{
"error": "invalid_request",
"message": "Invalid request body"
}

Pane not found

Media typeapplication/json
object
error
required
string
message
string

Example

{
"error": "invalid_request",
"message": "Invalid request body"
}

Internal error

Media typeapplication/json
object
error
required
string
message
string

Example

{
"error": "invalid_request",
"message": "Invalid request body"
}