cURL
curl --request PUT \ --url https://api.chartbrew.com/project/{project_id}/chart/{chart_id}/share/policy/{policy_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "params": [ { "key": "<string>", "value": "<string>" } ], "allow_params": false, "expires_at": "2023-11-07T05:31:56Z" } '
{ "id": 123, "entity_type": "Project", "entity_id": 123, "params": [ { "key": "<string>", "value": "<string>" } ], "allow_params": false, "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" }
Update a share policy for a chart to enable secure sharing with signed URLs
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of the project
ID of the chart
ID of the share policy
Parameters to include in the share policy. Use this to pass parameters to the dashboard's variables.
Show child attributes
Whether to allow parameters to be passed via URL
Token expiration date and time
Updated share policy
Project
Chart
Parameters to pass to variables in the dashboard's charts