Data/Locations/v1/Edit
This endpoint is deprecated. Please see the latest version.
Edit an existing Location by either changing its name, position or both.
URL: /data/locations/v1/edit
Method: POST
Method Parameters
Name |
Type |
Required |
Description |
|
|
|
|
|
|
|
See Model Object Properties. |
Model Object Properties
Name |
Type |
Required |
Description |
|
|
|
|
|
|
|
The specified DataField should be of SystemLink type. |
|
|
|
Optional. Pass null to retain the current value. |
|
|
|
Pass null to retain the current position. |
|
|
|
The new coordinates for the position of the Location or null. Pass null to retain the current position. |
* If you intend to change the position of the location, at least one of either postcode or coordinate parameter values must be provided in order to determine a new position. If both are provided, the position will be determined using the coordinates. You may set both to null to retain the current position.
Coordinate Object Properties
Name |
Type |
Required |
Description |
|
|
|
|
|
|
|
|
Response
The following responses may be returned in addition to the standard ones specified under Common Information.
Code |
Error Message |
Notes |
|
|
|
|
|
|
|
|
|
|
If you wish to use the postcode parameter to position a location, you must have specified a Geocoding layer on the MapLayer specified by the targetMapLayerKey parameter value. |
Example call
URL: https://api.vision-mapping.com/data/locations/v1/edit?apiKey=INSERT_YOUR_KEY_HERE
Body:
{
recordKey: "example",
dataFieldKey: "example",
name: null,
postcode: null,
coordinates: {
latitudeY: 0.1,
longitudeX: 0.1
}
}