Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
en:sidebar:remoteapi:apiref:resource:upload_zone_image [25/02/2016 17:08]
stan [Geofences: upload/delete image]
en:sidebar:remoteapi:apiref:resource:upload_zone_image [08/08/2017 15:18]
stan [Parameters]
Line 2: Line 2:
 ====== Geofences: Image ====== ====== Geofences: Image ======
  
-To upload an image for a Geofence, use the command **resource/​upload_zone_image**: ​+To upload an image for a Geofence or set an image of other Geofence, use the command **resource/​upload_zone_image**: ​
 <code javascript>​ <code javascript>​
 svc=resource/​upload_zone_image&​params={"​itemId":<​long>,​ svc=resource/​upload_zone_image&​params={"​itemId":<​long>,​
        "​id":<​long>,​        "​id":<​long>,​
-       "​eventHash":<​text>​}+       "​eventHash":<​text>, 
 +       "​oldItemId":<​long>,​ 
 +       "​oldZoneId":<​uint>}
 </​code>​ </​code>​
  
-:!: To delete an image, use the command [[update_zone]]. +:!: To delete an image, use the command [[update_zone]].\\ 
-:!: To get an image, use [[../​requests/​avl_zone_image]]+:!: To get an image, use [[../​requests/​avl_zone_image]].
 ===== Parameters ===== ===== Parameters =====
 ^ Name ^ Description ^ ^ Name ^ Description ^
Line 16: Line 18:
 | id | geofence ID | | id | geofence ID |
 | eventHash | event name, which will be generated after uploading the image (optional parameter) | | eventHash | event name, which will be generated after uploading the image (optional parameter) |
 +| oldItemId | resource id of other Geofence to set its image |
 +| oldZoneId | other Geofence id of to set its image |
  
 To upload an image, use a POST request with multiple contents (multipart/​form-data),​ where one part contains parameters and the other contains the image. ​ To upload an image, use a POST request with multiple contents (multipart/​form-data),​ where one part contains parameters and the other contains the image. ​
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam