Seitenhierarchie
Zum Ende der Metadaten springen
Zum Anfang der Metadaten

URL: https://123.123.123.123/map_module/mapeditors/saveGadget.json?angular=true

Methode: POST

Response: JSON


JSON for inserting map gadgets via REST API
{
	"action": "add_or_edit",
    "Mapgadget":{
        "x"	:"58",
        "y":"133",
		"size_x": null,
		"size_y": null,
		"z_index": 0,
        "gadget":"Tacho",
        "type":"service",
        "object_id":"43",
        "map_id":$MAP_ID,
		"show_label": true,
		"label_possition": 2,
		"metric": "users"
	}
}



Response on successful API call
{
	"id": $ID,
	"map_id": $MAP_ID,
	"x": 820,
	"y": 70,
	"size_x": 0,
	"size_y": 0,
	"limit": null,
	"gadget": "Tacho",
	"type": "service",
	"object_id": 4,
	"transparent_background": null,
	"show_label": true,
	"font_size": null,
	"z_index": 0,
	"metric": "users",
	"display": true,
	"label_possition": null
}







  • Keine Stichwörter