Create a pane
POST
/panes
const url = 'https://localhost:3000/api/v1/panes';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"config":{"cross":"metadata.weekday","dimension":"metadata.hour","filters":{},"interval":"1h","measure":"sum:cost_usd","range":"24h","viz":"heatmap"},"name":"Hourly activity","scope_id":"3fa85f64-5717-4562-b3fc-2c963f66afa6","scope_type":"trigger"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://localhost:3000/api/v1/panes \ --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", "scope_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "scope_type": "trigger" }'Creates an Explore pane on a trigger or group the account can access
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Pane details
Media typeapplication/json
object
config
required
object
cross
string
Example
metadata.weekdaydimension
required
string
Example
metadata.hourfilters
object
interval
required
string
Example
1hmeasure
Measure is what the figures are: empty or count for the number of events,
sum:
string
Example
sum:cost_usdrange
Range is an explicit override of the page range; empty means the pane follows the page.
string
Example
24hviz
required
string
Example
heatmapname
required
string
Example
Hourly activityscope_id
required
string format: uuid
Example
3fa85f64-5717-4562-b3fc-2c963f66afa6scope_type
required
string
Example
triggerResponses
Section titled “Responses”Pane created
Media typeapplication/json
object
account_id
required
string format: uuid
config
required
object
cross
string
dimension
required
string
filters
object
interval
required
string
measure
Measure is what the figures are: empty or count for the number of events,
sum:
string
range
Range is an explicit override of the page range; empty means the pane follows the page.
string
viz
required
string
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
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"}No access to this scope
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"}