Superfy Platform API Documentation


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)

Required parameter (POST)

Optional parameter

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

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
  }
}