{"action":"created","issue":{"url":"https://api.github.com/repos/Esri/arcgis-python-api/issues/40","repository_url":"https://api.github.com/repos/Esri/arcgis-python-api","labels_url":"https://api.github.com/repos/Esri/arcgis-python-api/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/Esri/arcgis-python-api/issues/40/comments","events_url":"https://api.github.com/repos/Esri/arcgis-python-api/issues/40/events","html_url":"https://github.com/Esri/arcgis-python-api/issues/40","id":191985377,"number":40,"title":"Overwrite Python API","user":{"login":"hhkaos","id":826965,"avatar_url":"https://avatars.githubusercontent.com/u/826965?v=3","gravatar_id":"","url":"https://api.github.com/users/hhkaos","html_url":"https://github.com/hhkaos","followers_url":"https://api.github.com/users/hhkaos/followers","following_url":"https://api.github.com/users/hhkaos/following{/other_user}","gists_url":"https://api.github.com/users/hhkaos/gists{/gist_id}","starred_url":"https://api.github.com/users/hhkaos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhkaos/subscriptions","organizations_url":"https://api.github.com/users/hhkaos/orgs","repos_url":"https://api.github.com/users/hhkaos/repos","events_url":"https://api.github.com/users/hhkaos/events{/privacy}","received_events_url":"https://api.github.com/users/hhkaos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-28T11:45:24Z","updated_at":"2016-11-28T12:13:39Z","closed_at":null,"body":"Hi there!\r\nIt's [Raul, from Esri Spain](https://twitter.com/hhkaos). I have received a [question in Geonet](https://geonet.esri.com/thread/184410-ejemplo-overwrite-python-api) and I need some help.\r\n\r\nA customer is trying to use [the API](https://developers.arcgis.com/python/) to overwrite the content of a feature service using a shapefile. We tried to do that using the **Item.Update** ([1](http://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.html#arcgis.gis.Item.update),[2](https://developers.arcgis.com/python/guide/class-gis-Item/#update(item_properties=None,-data=None,-thumbnail=None,-metadata=None))) function but it didn't work. It updates the metadata but not the content itself, the function even returns `True` as you can see here:\r\n\r\n![pythonapi](https://cloud.githubusercontent.com/assets/826965/20666670/c287f68e-b565-11e6-8e34-a91d38c3a0ec.JPG)\r\n\r\nDo you have any thoughts on that? Is this a bug? Should we use any other function? [Item.publish](http://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.html#arcgis.gis.Item.publish) maybe?\r\n\r\nThey can not use [ArcREST](https://github.com/Esri/ArcREST) because they have no ArcPy installed in the machine which is going to run the script.\r\n\r\nThanks in advance,\r\nRaul"},"comment":{"url":"https://api.github.com/repos/Esri/arcgis-python-api/issues/comments/263256357","html_url":"https://github.com/Esri/arcgis-python-api/issues/40#issuecomment-263256357","issue_url":"https://api.github.com/repos/Esri/arcgis-python-api/issues/40","id":263256357,"user":{"login":"achapkowski","id":5131271,"avatar_url":"https://avatars.githubusercontent.com/u/5131271?v=3","gravatar_id":"","url":"https://api.github.com/users/achapkowski","html_url":"https://github.com/achapkowski","followers_url":"https://api.github.com/users/achapkowski/followers","following_url":"https://api.github.com/users/achapkowski/following{/other_user}","gists_url":"https://api.github.com/users/achapkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/achapkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achapkowski/subscriptions","organizations_url":"https://api.github.com/users/achapkowski/orgs","repos_url":"https://api.github.com/users/achapkowski/repos","events_url":"https://api.github.com/users/achapkowski/events{/privacy}","received_events_url":"https://api.github.com/users/achapkowski/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T12:13:39Z","updated_at":"2016-11-28T12:13:39Z","body":"@hhkaos you do not need arcpy to use ArcREST.  "}}
{"actor":{"display_login":"achapkowski"}}