Skip to main content
PUT
cURL
This endpoint updates an existing SharePolicy for a chart, which enables advanced sharing features including:
  • Signed URL generation with expiration dates
  • Parameter passing to chart variables
  • Control over URL parameter allowance
  • Enhanced security for embedded charts

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

project_id
string
required

ID of the project

chart_id
string
required

ID of the chart

policy_id
string
required

ID of the share policy

Body

application/json
params
object[]

Parameters to include in the share policy. Use this to pass parameters to the dashboard's variables.

allow_params
boolean
default:false

Whether to allow parameters to be passed via URL

expires_at
string<date-time>

Token expiration date and time

Response

Updated share policy

id
integer
entity_type
enum<string>
Available options:
Project,
Chart
entity_id
integer
params
object[]

Parameters to pass to variables in the dashboard's charts

allow_params
boolean
default:false

Whether to allow parameters to be passed via URL

createdAt
string<date-time>
updatedAt
string<date-time>