The help for the Vector Tile tools is wrong. This code from the help does not work. It keeps saying the value type for in_map is wrong.
Create Vector Tile Package—Data Management toolbox | ArcGIS for Desktop
p = arcpy.mp.ArcGISProject("c:\\temp\\myproject.aprx")
for m in p.listMaps():
print("Packaging" + m.name)
arcpy.CreateVectorTilePackage_management(m, m.name + '.vtpk', "INDEXED", 295828763.795777, 1128.497176)

It just has "Map" for the in_map when copied from the python snippet but that of course does not work in script. I have yet to find anything it likes. Any hints?
arcpy.management.CreateVectorTilePackage("Map", r"C:\Vector\Settings.vtpk", "ONLINE", None, "INDEXED", 295828763.795778, 564.248588, r"C:\Vector\SettingsIndex.shp", None, None)
The tool to create the vector index will also not accept in_map. Its help has a sample from some other tool??
Create Vector Tile Index—Data Management toolbox | ArcGIS for Desktop
The following Python window script demonstrates how to use the CreateVectorTileIndex tool in immediate mode.
<SPAN class="kn" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: blue;">import</SPAN> <SPAN class="nn" style="font-weight: inherit; font-style: inherit; font-family: inherit;">arcpy</SPAN> <SPAN class="kn" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: blue;">from</SPAN> <SPAN class="nn" style="font-weight: inherit; font-style: inherit; font-family: inherit;">arcpy</SPAN>
<SPAN class="kn" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: blue;">import</SPAN> <SPAN class="n" style="font-weight: inherit; font-style: inherit; font-family: inherit;">env</SPAN>
<SPAN class="n" style="font-weight: inherit; font-style: inherit; font-family: inherit;">env</SPAN><SPAN class="o" style="font-weight: inherit; font-style: inherit; font-family: inherit;">.</SPAN><SPAN class="n" style="font-weight: inherit; font-style: inherit; font-family: inherit;">workspace</SPAN> <SPAN class="o" style="font-weight: inherit; font-style: inherit; font-family: inherit;">=</SPAN> <SPAN class="s" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #a31515;">"C:/data/cartography.gdb/transportation"</SPAN>
<SPAN class="n" style="font-weight: inherit; font-style: inherit; font-family: inherit;">arcpy</SPAN><SPAN class="o" style="font-weight: inherit; font-style: inherit; font-family: inherit;">.</SPAN><SPAN class="n" style="font-weight: inherit; font-style: inherit; font-family: inherit;">CreateIndexTiles_cartography</SPAN><SPAN class="p" style="font-weight: inherit; font-style: inherit; font-family: inherit;">(</SPAN><SPAN class="s" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #a31515;">"CURRENT"</SPAN><SPAN class="p" style="font-weight: inherit; font-style: inherit; font-family: inherit;">,</SPAN> <SPAN class="s" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #a31515;">"tiles"</SPAN><SPAN class="p" style="font-weight: inherit; font-style: inherit; font-family: inherit;">,</SPAN> <SPAN class="mi" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #666666;">10000</SPAN><SPAN class="p" style="font-weight: inherit; font-style: inherit; font-family: inherit;">)</SPAN>
Also when copying the snippet from Pro it has another parameter with the value ONLINE that does not exist in the help.
#arcpy.management.CreateVectorTileIndex("Map", r"C:\Vector\SettingsIndex.shp", "ONLINE", None, 10000)
Please let me know the correct params or point me to help files that are correct.
Thanks