PUT
/
project
/
{project_id}
/
chart
/
{id}
/
chart-dataset-config
/
{cdc_id}
curl --request PUT \
  --url https://api.chartbrew.com/project/{project_id}/chart/{id}/chart-dataset-config/{cdc_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "chart_id": 123,
  "dataset_id": 123,
  "formula": "<string>",
  "datasetColor": "<string>",
  "fillColor": "<string>",
  "fill": false,
  "multiFill": false,
  "legend": "<string>",
  "pointRadius": 123,
  "excludedFields": [
    "<string>"
  ],
  "sort": "<string>",
  "columnsOrder": [
    "<string>"
  ],
  "order": 0,
  "maxRecords": 123,
  "goal": 123
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "chart_id": 123,
  "dataset_id": 123,
  "formula": "<string>",
  "datasetColor": "<string>",
  "fillColor": "<string>",
  "fill": false,
  "multiFill": false,
  "legend": "<string>",
  "pointRadius": 123,
  "excludedFields": [
    "<string>"
  ],
  "sort": "<string>",
  "columnsOrder": [
    "<string>"
  ],
  "order": 0,
  "maxRecords": 123,
  "goal": 123
}

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

id
string
required

ID of the chart

cdcId
string
required

ID of the chart dataset configuration

Body

application/json
id
string
chart_id
integer
dataset_id
integer
formula
string
datasetColor
string
fillColor
string
fill
boolean
default:
false
multiFill
boolean
default:
false
legend
string
pointRadius
integer
excludedFields
string[]
sort
string
columnsOrder
string[]
order
integer
default:
0
maxRecords
integer
goal
integer

Response

200
application/json
Updated chart dataset configuration
id
string
chart_id
integer
dataset_id
integer
formula
string
datasetColor
string
fillColor
string
fill
boolean
default:
false
multiFill
boolean
default:
false
legend
string
pointRadius
integer
excludedFields
string[]
sort
string
columnsOrder
string[]
order
integer
default:
0
maxRecords
integer
goal
integer