Skip to main content
PUT
/
customer
/
{customerId}
/
location
Update Location
curl --request PUT \
  --url https://api.masternautconnect.com/connect-webservices/services/public/v1/customer/{customerId}/location \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "categoryName": "<string>",
  "id": "<string>",
  "address": {
    "roadNumber": "<string>",
    "road": "<string>",
    "city": "<string>",
    "postCode": "<string>",
    "country": "<string>"
  },
  "coordinate": {
    "longitude": 123,
    "latitude": 123
  },
  "radius": 123,
  "polygon": [
    {
      "longitude": 123,
      "latitude": 123
    }
  ],
  "reference": "<string>",
  "phoneNumber": "<string>",
  "contact": "<string>",
  "email": "<string>",
  "notes": "<string>"
}
'
{
  "name": "<string>",
  "categoryName": "<string>",
  "id": "<string>",
  "address": {
    "roadNumber": "<string>",
    "road": "<string>",
    "city": "<string>",
    "postCode": "<string>",
    "country": "<string>"
  },
  "coordinate": {
    "longitude": 123,
    "latitude": 123
  },
  "radius": 123,
  "polygon": [
    {
      "longitude": 123,
      "latitude": 123
    }
  ],
  "reference": "<string>",
  "phoneNumber": "<string>",
  "contact": "<string>",
  "email": "<string>",
  "notes": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

customerId
string
required

Body

application/json
name
string
required

Unique name for the location.

categoryName
string
required

Name of an existing location category.

id
string
address
object

Address object of the location.

coordinate
object
radius
number<double>

Radius (in km) of the location boundary.
Must be between 0.001 and 1.
Must be specified if polygon details are not specified.

polygon
object[]

Array of points that define the geo-fence boundary of the polygon.
Must be specified if radius is not specified.

reference
string
phoneNumber
string
contact
string
email
string

A valid email address for this location.
Cannot be more than 50 characters.

notes
string

Notes for this location, Cannot be more than 140 characters.

Response

200 - application/json

Successful operation

name
string
required

Unique name for the location.

categoryName
string
required

Name of an existing location category.

id
string
address
object

Address object of the location.

coordinate
object
radius
number<double>

Radius (in km) of the location boundary.
Must be between 0.001 and 1.
Must be specified if polygon details are not specified.

polygon
object[]

Array of points that define the geo-fence boundary of the polygon.
Must be specified if radius is not specified.

reference
string
phoneNumber
string
contact
string
email
string

A valid email address for this location.
Cannot be more than 50 characters.

notes
string

Notes for this location, Cannot be more than 140 characters.