PUT
/
project
/
{project_id}
/
chart
/
{chart_id}
/
share
/
policy
/
{policy_id}
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"
}
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

Response

200
application/json

Updated share policy

The response is of type object.