Reorder trigger panes
PUT
/triggers/{id}/panes/order
const url = 'https://localhost:3000/api/v1/triggers/example/panes/order';const options = { method: 'PUT', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"pane_ids":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://localhost:3000/api/v1/triggers/example/panes/order \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "pane_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'Sets the display order of the account’s panes on a trigger. pane_ids lists the panes in their new order; every id must be a pane of the account on that trigger, without duplicates. Returns the trigger’s panes in the new order.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Trigger ID (UUID)
Request Body
Section titled “Request Body”Pane ids in the new order
Media typeapplication/json
object
pane_ids
required
Array<string>
Example generated
{ "pane_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ]}Responses
Section titled “Responses”Panes in the new order
Media typeapplication/json
Array<object>
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 trigger ID, empty or duplicate ids
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 trigger
Media typeapplication/json
object
error
required
string
message
string
Example
{ "error": "invalid_request", "message": "Invalid request body"}A pane id is unknown or not on this trigger
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"}