Skip to main content
POST
Create a dashboard widget

Request Structure

Key Fields

configuration reference

The configuration JSON object’s keys vary by widget_type. All keys are snake_case.

Common keys

Per-type keys

Authorizations

Authorization
string
header
required

OAuth 2.0 authentication. Use the client credentials or authorization code flow to obtain an access token.

X-Clarus-Subdomain
string
header
required

The subdomain/tenant name identifying which tenant's data to access. Required for all API requests.

Body

application/json
data
object
required

Response

Dashboard widget created successfully. Response contains the new widget's id.

id
integer

Identifier of the created widget