Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

URL: https://123.123.123.123/map_module/mapeditors/edit/$MAP_IDsaveText.json?angular=true

Methode: POST

Response: JSON

Borderless table

Code Block
languagebash
themeMidnight
titleNeue Map anlegenJSON zum einfügen von Text per REST API
{
    "Map":{
        "id":$MAP_ID,
        "container_id" : [$CONTAINER_IDs],
        "name":"Api Map Name Modified",
        "title":"Api Map Title Modified"
    },
    "Mapline":{
    	"0":{
        	"startX":"105",
	        "endX":"373",
	        "startY":"701",
	        "endY":"174",
	        "iconset":"std_line",
	        "type":"host",
	        "object_id":"16",
	        	"action": "add_or_edit",
	"Maptext": {
		"map_id":$MAP_ID,
		"text": "map text",
		"x":"444",
		"y":"292",
		"z_index": 0
	}
}



Code Block
languagebash
themeMidnight
titleResponse bei erfolgreichem Aufruf
{
	"Maptext":{
		"Maptext":{
			"id":$ID,
			"map_id":$MAP_ID,
	    }
	},
	"Maptextx":{602,
		    "0	"y":{33,
	        			"text":"ssdfg[b]sd[\/b]fhsth sdfghwr[center]thwq[\/center]w [text='x-large']hwsrghwrth[\/text]map text",
	        "x":"444",
	        "y":"292",
	        "map_id":$MAP_ID
    	}
	}
}

Code Block
languagebash
themeMidnight
titleResponse bei erfolgreichem Aufruf
{
  "id": "$MAP_ID"			"font_size":null,
			"z_index":"0",
			"display":true
		}
	}
}