ReportsEdit a dashboard

Edit a dashboard

Needs: Reports, Read-write

Edits a dashboard's name, description, settings and cards with ordered operations, all saved together. Protected dashboards are refused.

Card operations

  • add_insight: insight_id, with optional position, show_title and show_description.
  • add_text: text (a blank line starts a new paragraph) and an optional position.
  • update_card: card_id, with optional show_title, show_description, locked, text (text cards) and position.
  • remove_card: card_id.
  • auto_layout: arranges the cards once.

Card ids come from the dashboard. Positions must fit the grid, respect the card's minimum size and not overlap. Moving a card turns auto layout off, as dragging does.

curl -X PATCH "https://app.imploy.com.au/api/integrations/v1/reports/dashboards/123" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "operations": [
    {
      "op": "add_insight",
      "insight_id": 32
    },
    {
      "op": "auto_layout"
    }
  ]
}'
{
  "updated": 6,
  "...": "the dashboard, its link and cards"
}
PATCH
/reports/dashboards/{id}
PATCH
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.

An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.
path
idinteger
Required

The dashboard id.

Content-Typestring
Required

The media type of the request body

Options: application/json
namestring

The new name.

descriptionstring

Or null to clear.

settingsobject

The same keys as create.

operationsarray

Ordered card edits. See the list below.

space_idinteger

Move it to this space.

subfolder_idstring

A subfolder within the space.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.

Path Parameters

idinteger
Required

The dashboard id.

Body

application/json
namestring

The new name.

descriptionstring

Or null to clear.

settingsobject

The same keys as create.

operationsarray

Ordered card edits. See the list below.

space_idinteger

Move it to this space.

subfolder_idstring

A subfolder within the space.

Responses

OK