Chart
Updates a Chart.
Updates a Chart.
PATCH
/api/charts/{id}Authorizations
X-AUTH-TOKEN
stringheaderrequired
Value for the X-AUTH-TOKEN header parameter.
Path Parameters
id
stringrequired
Chart identifier
Request Body
application/json
required
The updated Chart resource
{
"identifier": "key1",
"jsConfiguration": "{type: 'line',data: {labels: ['Jan'...",
"width": 500,
"height": 300,
"bgColor": "transparent",
"chartJsVersion": "4",
"active": true,
"activeFrom": "2024-01-01"
}Response
200
Chart resource updated
id
integer
Identifier generated by Output.Rocks.
identifier
stringrequired
Unique identifier
jsConfiguration
string
Chart configuration. <<>> syntax is supported.
width
integer
Chart width
height
integer
Chart height
bgColor
string
Chart background color
chartJsVersion
string
Chart JS version
createdBy
string
User, created this entry
updatedBy
string
User, updated this entry
createdAt
string<date-time>
UTC date time of entry creation
updatedAt
string<date-time>
UTC date time of last entry update
active
boolean
Active flag. Default: true
activeFrom
string<date-time>
Date to activate the entry. Default: today