Skip to Content
Analytics boards

Update, archive, or restore an analysis board

Permissionboards:updateAuthentication
PATCH
/analysis/boards/{id}

Partially updates a board. Set archived=true to make its insight definitions read-only and hide it from the default list; set archived=false to restore it. Restoring can return 409 if another active board now uses the name. Use If-Match for optimistic concurrency.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Path Parameters

id*string
Formatuuid

Header Parameters

If-Match?string

Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.

Request Body

application/json
  1. body
Properties1 <= properties
name?string
Length1 <= length <= 120
archived?boolean

True archives the board; false restores it.

Response Body

Updated board and its current ordered insights. A semantic no-op returns the unchanged ETag and writes a no-op audit entry.

application/json
  1. response

A complete analysis board. Insights are always present and ordered by position, then ID.

id*string
Formatuuid
name*string
Length1 <= length <= 120
archived_at*|
Formatdate-time
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
insights*array<>
Example Request
curl -X PATCH 'https://api.kejue.co/v1/analysis/boards/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "archived_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "insights": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "board_id": "75e8c400-2dbc-43a3-9af4-ff9e6c099385",      "name": "string",      "chart_type": "bar",      "time_range": "24h",      "bucket": "hour",      "group_by": "none",      "config": {        "queries": [          {            "name": "string",            "group_by": {              "source": "call",              "column": "string"            },            "extraction_object_id": "dd58f28a-20cf-4d0e-af7a-6fd115475937",            "column": "string",            "operation": "count",            "filters": [              {                "source": "call",                "column": "string",                "value": "string",                "op": "is_null"              }            ],            "agent_ids": [              "06fc211d-6a87-43c8-9a41-e3b40320420d"            ],            "source": "extraction"          }        ],        "formula": "string",        "group_by_2": "time",        "range_from": "2019-08-24T14:15:22Z",        "range_to": "2019-08-24T14:15:22Z",        "display": {          "series_colors": {            "property1": "string",            "property2": "string"          },          "legend": true,          "value_format": "number",          "stack_mode": "none",          "orientation": "vertical",          "goal": 0,          "lower_is_better": true        }      },      "position": 0,      "layout": {        "x": 0,        "y": 0,        "w": 1,        "h": 1      },      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    }  ]}