Select to view content in your preferred language

Add Photo to Content via Api

440
1
05-03-2019 11:46 PM
YakupAydın
New Contributor

Hello I would like to add image to content via python api. But as i see image does not supported. Are there any way to add image via api ?

0 Kudos
1 Reply
J_R_Matchett
Occasional Contributor

Yes you can add an image to your content using the ArcGIS API for Python. For example:

from arcgis import GIS
gis = GIS(username='username', password='password')
image_item = gis.content.add(
    item_properties={'type': 'Image'},
    data='path_to_image_file'
)‍‍‍‍‍‍‍‍
0 Kudos