curl --request PUT \
--url https://app.azalt.co/api/v1/widgets/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dashboardId": "<string>",
"reportSectionId": "<string>",
"x": 123,
"y": 123,
"w": 123,
"h": 123,
"name": "<string>",
"type": "line_chart",
"filter": {
"siteIds": [
"<string>"
],
"startYear": 123,
"endYear": 123,
"startDate": "<string>",
"endDate": "<string>",
"statuses": [
"COMPLETED"
]
},
"indicatorId": "<string>",
"settings": {
"showTitle": true,
"indicatorDatasetMappings": {},
"period": "MONTHLY",
"displayMode": "sites",
"decimalPlaces": 123,
"aggregator": "sum",
"showNumbers": true,
"showIndicatorName": true,
"angle": 123,
"chartSettings": "default",
"timeGranularity": "monthly",
"siteGroups": [
{
"id": "<string>",
"name": "<string>",
"siteIds": [
"<string>"
]
}
],
"siteGroupIds": [
"<string>"
],
"selectedTargetEntries": [
"<string>"
],
"showTargets": true,
"showContributionShares": true,
"contributionScope": "organization",
"content": "<string>"
}
}
'