curl --request POST \
--url 'https://api.addressy.com/LocationServices/LocationManagement/UpdateListOrPoint/v1.10/json6.ws?Key=' \
--header 'Content-Type: application/json' \
--data '
{
"Key": "AA11-AA11-AA11-AA11",
"ListId": "<string>",
"ListName": "<string>",
"LatestRelatedListId": "<string>",
"IsErrorList": true,
"ListDescription": "<string>",
"Locations": [
{
"Id": "<string>",
"Name": "<string>",
"Description": "<string>",
"Address": "<string>",
"Country": "<string>",
"Latitude": "<string>",
"Longitude": "<string>",
"MetaInfo": {},
"UnstructuredMetaInfo": {},
"OpeningHours": {
"Monday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Tuesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Wednesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Thursday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Friday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Saturday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Sunday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
}
}
}
],
"CreatedOn": "2023-11-07T05:31:56Z",
"LastModifiedOn": "2023-11-07T05:31:56Z",
"Geocoding": true
}
'import requests
url = "https://api.addressy.com/LocationServices/LocationManagement/UpdateListOrPoint/v1.10/json6.ws?Key="
payload = {
"Key": "AA11-AA11-AA11-AA11",
"ListId": "<string>",
"ListName": "<string>",
"LatestRelatedListId": "<string>",
"IsErrorList": True,
"ListDescription": "<string>",
"Locations": [
{
"Id": "<string>",
"Name": "<string>",
"Description": "<string>",
"Address": "<string>",
"Country": "<string>",
"Latitude": "<string>",
"Longitude": "<string>",
"MetaInfo": {},
"UnstructuredMetaInfo": {},
"OpeningHours": {
"Monday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Tuesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Wednesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Thursday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Friday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Saturday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Sunday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
}
}
}
],
"CreatedOn": "2023-11-07T05:31:56Z",
"LastModifiedOn": "2023-11-07T05:31:56Z",
"Geocoding": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
Key: 'AA11-AA11-AA11-AA11',
ListId: '<string>',
ListName: '<string>',
LatestRelatedListId: '<string>',
IsErrorList: true,
ListDescription: '<string>',
Locations: [
{
Id: '<string>',
Name: '<string>',
Description: '<string>',
Address: '<string>',
Country: '<string>',
Latitude: '<string>',
Longitude: '<string>',
MetaInfo: {},
UnstructuredMetaInfo: {},
OpeningHours: {
Monday: {Open: '<string>', Close: '<string>', Information: '<string>'},
Tuesday: {Open: '<string>', Close: '<string>', Information: '<string>'},
Wednesday: {Open: '<string>', Close: '<string>', Information: '<string>'},
Thursday: {Open: '<string>', Close: '<string>', Information: '<string>'},
Friday: {Open: '<string>', Close: '<string>', Information: '<string>'},
Saturday: {Open: '<string>', Close: '<string>', Information: '<string>'},
Sunday: {Open: '<string>', Close: '<string>', Information: '<string>'}
}
}
],
CreatedOn: '2023-11-07T05:31:56Z',
LastModifiedOn: '2023-11-07T05:31:56Z',
Geocoding: true
})
};
fetch('https://api.addressy.com/LocationServices/LocationManagement/UpdateListOrPoint/v1.10/json6.ws?Key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.addressy.com/LocationServices/LocationManagement/UpdateListOrPoint/v1.10/json6.ws?Key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'Key' => 'AA11-AA11-AA11-AA11',
'ListId' => '<string>',
'ListName' => '<string>',
'LatestRelatedListId' => '<string>',
'IsErrorList' => true,
'ListDescription' => '<string>',
'Locations' => [
[
'Id' => '<string>',
'Name' => '<string>',
'Description' => '<string>',
'Address' => '<string>',
'Country' => '<string>',
'Latitude' => '<string>',
'Longitude' => '<string>',
'MetaInfo' => [
],
'UnstructuredMetaInfo' => [
],
'OpeningHours' => [
'Monday' => [
'Open' => '<string>',
'Close' => '<string>',
'Information' => '<string>'
],
'Tuesday' => [
'Open' => '<string>',
'Close' => '<string>',
'Information' => '<string>'
],
'Wednesday' => [
'Open' => '<string>',
'Close' => '<string>',
'Information' => '<string>'
],
'Thursday' => [
'Open' => '<string>',
'Close' => '<string>',
'Information' => '<string>'
],
'Friday' => [
'Open' => '<string>',
'Close' => '<string>',
'Information' => '<string>'
],
'Saturday' => [
'Open' => '<string>',
'Close' => '<string>',
'Information' => '<string>'
],
'Sunday' => [
'Open' => '<string>',
'Close' => '<string>',
'Information' => '<string>'
]
]
]
],
'CreatedOn' => '2023-11-07T05:31:56Z',
'LastModifiedOn' => '2023-11-07T05:31:56Z',
'Geocoding' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.addressy.com/LocationServices/LocationManagement/UpdateListOrPoint/v1.10/json6.ws?Key="
payload := strings.NewReader("{\n \"Key\": \"AA11-AA11-AA11-AA11\",\n \"ListId\": \"<string>\",\n \"ListName\": \"<string>\",\n \"LatestRelatedListId\": \"<string>\",\n \"IsErrorList\": true,\n \"ListDescription\": \"<string>\",\n \"Locations\": [\n {\n \"Id\": \"<string>\",\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Address\": \"<string>\",\n \"Country\": \"<string>\",\n \"Latitude\": \"<string>\",\n \"Longitude\": \"<string>\",\n \"MetaInfo\": {},\n \"UnstructuredMetaInfo\": {},\n \"OpeningHours\": {\n \"Monday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Tuesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Wednesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Thursday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Friday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Saturday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Sunday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n }\n }\n }\n ],\n \"CreatedOn\": \"2023-11-07T05:31:56Z\",\n \"LastModifiedOn\": \"2023-11-07T05:31:56Z\",\n \"Geocoding\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.addressy.com/LocationServices/LocationManagement/UpdateListOrPoint/v1.10/json6.ws?Key=")
.header("Content-Type", "application/json")
.body("{\n \"Key\": \"AA11-AA11-AA11-AA11\",\n \"ListId\": \"<string>\",\n \"ListName\": \"<string>\",\n \"LatestRelatedListId\": \"<string>\",\n \"IsErrorList\": true,\n \"ListDescription\": \"<string>\",\n \"Locations\": [\n {\n \"Id\": \"<string>\",\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Address\": \"<string>\",\n \"Country\": \"<string>\",\n \"Latitude\": \"<string>\",\n \"Longitude\": \"<string>\",\n \"MetaInfo\": {},\n \"UnstructuredMetaInfo\": {},\n \"OpeningHours\": {\n \"Monday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Tuesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Wednesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Thursday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Friday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Saturday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Sunday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n }\n }\n }\n ],\n \"CreatedOn\": \"2023-11-07T05:31:56Z\",\n \"LastModifiedOn\": \"2023-11-07T05:31:56Z\",\n \"Geocoding\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.addressy.com/LocationServices/LocationManagement/UpdateListOrPoint/v1.10/json6.ws?Key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"Key\": \"AA11-AA11-AA11-AA11\",\n \"ListId\": \"<string>\",\n \"ListName\": \"<string>\",\n \"LatestRelatedListId\": \"<string>\",\n \"IsErrorList\": true,\n \"ListDescription\": \"<string>\",\n \"Locations\": [\n {\n \"Id\": \"<string>\",\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Address\": \"<string>\",\n \"Country\": \"<string>\",\n \"Latitude\": \"<string>\",\n \"Longitude\": \"<string>\",\n \"MetaInfo\": {},\n \"UnstructuredMetaInfo\": {},\n \"OpeningHours\": {\n \"Monday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Tuesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Wednesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Thursday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Friday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Saturday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Sunday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n }\n }\n }\n ],\n \"CreatedOn\": \"2023-11-07T05:31:56Z\",\n \"LastModifiedOn\": \"2023-11-07T05:31:56Z\",\n \"Geocoding\": true\n}"
response = http.request(request)
puts response.read_body{
"ListId": "<string>",
"ListName": "<string>",
"LatestRelatedListId": "<string>",
"IsErrorList": true,
"ListDescription": "<string>",
"Locations": [
{
"Id": "<string>",
"Name": "<string>",
"Description": "<string>",
"Address": "<string>",
"Country": "<string>",
"Latitude": "<string>",
"Longitude": "<string>",
"MetaInfo": {},
"UnstructuredMetaInfo": {},
"OpeningHours": {
"Monday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Tuesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Wednesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Thursday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Friday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Saturday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Sunday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
}
}
}
],
"CreatedOn": "2023-11-07T05:31:56Z",
"LastModifiedOn": "2023-11-07T05:31:56Z"
}Location Management: Update List or Point
Update location lists or individual points with new information. Add up to 100 new points per request while preserving existing location data.
curl --request POST \
--url 'https://api.addressy.com/LocationServices/LocationManagement/UpdateListOrPoint/v1.10/json6.ws?Key=' \
--header 'Content-Type: application/json' \
--data '
{
"Key": "AA11-AA11-AA11-AA11",
"ListId": "<string>",
"ListName": "<string>",
"LatestRelatedListId": "<string>",
"IsErrorList": true,
"ListDescription": "<string>",
"Locations": [
{
"Id": "<string>",
"Name": "<string>",
"Description": "<string>",
"Address": "<string>",
"Country": "<string>",
"Latitude": "<string>",
"Longitude": "<string>",
"MetaInfo": {},
"UnstructuredMetaInfo": {},
"OpeningHours": {
"Monday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Tuesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Wednesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Thursday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Friday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Saturday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Sunday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
}
}
}
],
"CreatedOn": "2023-11-07T05:31:56Z",
"LastModifiedOn": "2023-11-07T05:31:56Z",
"Geocoding": true
}
'import requests
url = "https://api.addressy.com/LocationServices/LocationManagement/UpdateListOrPoint/v1.10/json6.ws?Key="
payload = {
"Key": "AA11-AA11-AA11-AA11",
"ListId": "<string>",
"ListName": "<string>",
"LatestRelatedListId": "<string>",
"IsErrorList": True,
"ListDescription": "<string>",
"Locations": [
{
"Id": "<string>",
"Name": "<string>",
"Description": "<string>",
"Address": "<string>",
"Country": "<string>",
"Latitude": "<string>",
"Longitude": "<string>",
"MetaInfo": {},
"UnstructuredMetaInfo": {},
"OpeningHours": {
"Monday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Tuesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Wednesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Thursday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Friday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Saturday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Sunday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
}
}
}
],
"CreatedOn": "2023-11-07T05:31:56Z",
"LastModifiedOn": "2023-11-07T05:31:56Z",
"Geocoding": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
Key: 'AA11-AA11-AA11-AA11',
ListId: '<string>',
ListName: '<string>',
LatestRelatedListId: '<string>',
IsErrorList: true,
ListDescription: '<string>',
Locations: [
{
Id: '<string>',
Name: '<string>',
Description: '<string>',
Address: '<string>',
Country: '<string>',
Latitude: '<string>',
Longitude: '<string>',
MetaInfo: {},
UnstructuredMetaInfo: {},
OpeningHours: {
Monday: {Open: '<string>', Close: '<string>', Information: '<string>'},
Tuesday: {Open: '<string>', Close: '<string>', Information: '<string>'},
Wednesday: {Open: '<string>', Close: '<string>', Information: '<string>'},
Thursday: {Open: '<string>', Close: '<string>', Information: '<string>'},
Friday: {Open: '<string>', Close: '<string>', Information: '<string>'},
Saturday: {Open: '<string>', Close: '<string>', Information: '<string>'},
Sunday: {Open: '<string>', Close: '<string>', Information: '<string>'}
}
}
],
CreatedOn: '2023-11-07T05:31:56Z',
LastModifiedOn: '2023-11-07T05:31:56Z',
Geocoding: true
})
};
fetch('https://api.addressy.com/LocationServices/LocationManagement/UpdateListOrPoint/v1.10/json6.ws?Key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.addressy.com/LocationServices/LocationManagement/UpdateListOrPoint/v1.10/json6.ws?Key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'Key' => 'AA11-AA11-AA11-AA11',
'ListId' => '<string>',
'ListName' => '<string>',
'LatestRelatedListId' => '<string>',
'IsErrorList' => true,
'ListDescription' => '<string>',
'Locations' => [
[
'Id' => '<string>',
'Name' => '<string>',
'Description' => '<string>',
'Address' => '<string>',
'Country' => '<string>',
'Latitude' => '<string>',
'Longitude' => '<string>',
'MetaInfo' => [
],
'UnstructuredMetaInfo' => [
],
'OpeningHours' => [
'Monday' => [
'Open' => '<string>',
'Close' => '<string>',
'Information' => '<string>'
],
'Tuesday' => [
'Open' => '<string>',
'Close' => '<string>',
'Information' => '<string>'
],
'Wednesday' => [
'Open' => '<string>',
'Close' => '<string>',
'Information' => '<string>'
],
'Thursday' => [
'Open' => '<string>',
'Close' => '<string>',
'Information' => '<string>'
],
'Friday' => [
'Open' => '<string>',
'Close' => '<string>',
'Information' => '<string>'
],
'Saturday' => [
'Open' => '<string>',
'Close' => '<string>',
'Information' => '<string>'
],
'Sunday' => [
'Open' => '<string>',
'Close' => '<string>',
'Information' => '<string>'
]
]
]
],
'CreatedOn' => '2023-11-07T05:31:56Z',
'LastModifiedOn' => '2023-11-07T05:31:56Z',
'Geocoding' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.addressy.com/LocationServices/LocationManagement/UpdateListOrPoint/v1.10/json6.ws?Key="
payload := strings.NewReader("{\n \"Key\": \"AA11-AA11-AA11-AA11\",\n \"ListId\": \"<string>\",\n \"ListName\": \"<string>\",\n \"LatestRelatedListId\": \"<string>\",\n \"IsErrorList\": true,\n \"ListDescription\": \"<string>\",\n \"Locations\": [\n {\n \"Id\": \"<string>\",\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Address\": \"<string>\",\n \"Country\": \"<string>\",\n \"Latitude\": \"<string>\",\n \"Longitude\": \"<string>\",\n \"MetaInfo\": {},\n \"UnstructuredMetaInfo\": {},\n \"OpeningHours\": {\n \"Monday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Tuesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Wednesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Thursday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Friday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Saturday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Sunday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n }\n }\n }\n ],\n \"CreatedOn\": \"2023-11-07T05:31:56Z\",\n \"LastModifiedOn\": \"2023-11-07T05:31:56Z\",\n \"Geocoding\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.addressy.com/LocationServices/LocationManagement/UpdateListOrPoint/v1.10/json6.ws?Key=")
.header("Content-Type", "application/json")
.body("{\n \"Key\": \"AA11-AA11-AA11-AA11\",\n \"ListId\": \"<string>\",\n \"ListName\": \"<string>\",\n \"LatestRelatedListId\": \"<string>\",\n \"IsErrorList\": true,\n \"ListDescription\": \"<string>\",\n \"Locations\": [\n {\n \"Id\": \"<string>\",\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Address\": \"<string>\",\n \"Country\": \"<string>\",\n \"Latitude\": \"<string>\",\n \"Longitude\": \"<string>\",\n \"MetaInfo\": {},\n \"UnstructuredMetaInfo\": {},\n \"OpeningHours\": {\n \"Monday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Tuesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Wednesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Thursday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Friday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Saturday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Sunday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n }\n }\n }\n ],\n \"CreatedOn\": \"2023-11-07T05:31:56Z\",\n \"LastModifiedOn\": \"2023-11-07T05:31:56Z\",\n \"Geocoding\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.addressy.com/LocationServices/LocationManagement/UpdateListOrPoint/v1.10/json6.ws?Key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"Key\": \"AA11-AA11-AA11-AA11\",\n \"ListId\": \"<string>\",\n \"ListName\": \"<string>\",\n \"LatestRelatedListId\": \"<string>\",\n \"IsErrorList\": true,\n \"ListDescription\": \"<string>\",\n \"Locations\": [\n {\n \"Id\": \"<string>\",\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Address\": \"<string>\",\n \"Country\": \"<string>\",\n \"Latitude\": \"<string>\",\n \"Longitude\": \"<string>\",\n \"MetaInfo\": {},\n \"UnstructuredMetaInfo\": {},\n \"OpeningHours\": {\n \"Monday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Tuesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Wednesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Thursday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Friday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Saturday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Sunday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n }\n }\n }\n ],\n \"CreatedOn\": \"2023-11-07T05:31:56Z\",\n \"LastModifiedOn\": \"2023-11-07T05:31:56Z\",\n \"Geocoding\": true\n}"
response = http.request(request)
puts response.read_body{
"ListId": "<string>",
"ListName": "<string>",
"LatestRelatedListId": "<string>",
"IsErrorList": true,
"ListDescription": "<string>",
"Locations": [
{
"Id": "<string>",
"Name": "<string>",
"Description": "<string>",
"Address": "<string>",
"Country": "<string>",
"Latitude": "<string>",
"Longitude": "<string>",
"MetaInfo": {},
"UnstructuredMetaInfo": {},
"OpeningHours": {
"Monday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Tuesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Wednesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Thursday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Friday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Saturday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Sunday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
}
}
}
],
"CreatedOn": "2023-11-07T05:31:56Z",
"LastModifiedOn": "2023-11-07T05:31:56Z"
}Authorizations
Body
The key you want to use to authenticate with the service (you can request we create one for you or create one in your account section).
The unique GuID for a given list.
The name of the list being updated or created.
A description of the list being updated or created.
An array of strings that is populated with information about a location. If latitude and longitude are blank then Geocoding must be set to true.
Show child attributes
Show child attributes
Response
Success
Automatically generated GuID used to uniquely identify a list.
The name of the list passed in the request.
The description of the list passed in the request.
An array of strings that is populated with information about a location. Also contains a uniquely generated GuID per point.
Show child attributes
Show child attributes
The date and time of when the list was initially created.
The date and time of when the list was last modified.
Was this page helpful?

