Update visualization metadata
Updates the visualization metadata legend for a specific mode (dynamic or theoretical). Only the specified mode is updated; the other mode is preserved.
PUT/v0/aois/{aoi_id}/visualizations/{visualization_id}/metadata
Authorisations
AuthorizationString
Path Parameters
aoi_idstringrequired
AOI IDvisualization_idstringrequired
Visualization IDRequest Body
visualization_modestringrequired
Which legend mode to update (dynamic or theoretical)Example: "theoretical"legendobjectrequired
Legend breakpoints per date. For dynamic mode, values can be null (auto-computed)dynamic_binsinteger
Number of equal-interval bins for dynamic mode (1-15). Required when visualization_mode is dynamicExample: 5Response
OKapplication/json
legendobject
Update visualization metadata
1curl -X PUT 'https://api.pixxel.space/v0/aois/{aoi_id}/visualizations/{visualization_id}/metadata' \2 -H 'Authorization: YOUR_API_KEY' \3 -H 'Content-Type: application/json' \4 -d '{5 "visualization_mode": "theoretical",6 "legend": {},7 "dynamic_bins": 58}'
Response:
{"legend": {}}