Update Specific Custom Location API
Require Authentication
This API is used to update specific custom location for the company based on combination of deviceID and token.
URL
api/manageassets/updatecustomlocation/:customlocationID
Required parameter (in URL)
- :customlocationID «contains customlocationID that want to be updated. It must be put in the URL, e.g: api/manageassets/updatecustomlocation/1»
Required parameter (POST)
- deviceID
- token
Optional parameter
- locationName «if passed, value must not be empty.»
- locationLat «if passed, value must not be empty.»
- locationLong «if passed, value must not be empty.»
- locationRadius «if passed, value must not be empty and must be greater than 0. Radius in meters.»
- locationAddress1
- locationAddress2
- locationCity
- locationState
- locationCountry
- locationPostCode
Example JSON Payload
{ "deviceID": "ABCD-EFGH-IJKL-MNOP", "token": "bb602ab13b8090268cd6e3bb9dfa39e2", "locationName": "test location API edited", "locationLat": -6.202101230621, "locationLong": 106.779190063477, "locationRadius": 500 }
Possible return HTTP status code
- 200
- 400
- 401
- 404
- 405
Return message
{ "status": "success", "message": { "customlocationID": 1, "locationName": "test location API edited", "locationAddress1": "", "locationAddress2": "", "locationCity": "", "locationState": "", "locationCountry": "", "locationPostCode": "", "locationLat": -6.202101230621, "locationLong": 106.77919006348, "locationRadius": 500, "createdDate": 1453481997, "createdByUserID": 3, "total_projectpins": 0 } }