Insert / update Property / Building / Floor / Location-Store records (async)
curl --request PUT \
--url https://api.tangoanalytics.com/v1/locationmgmt/locations \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-client: <api-key>' \
--data '
{
"records": [
{
"store_id": "<string>",
"store_number": "<string>",
"store_number_erp": "<string>",
"store_number_legacy": "<string>",
"brand_id": "<string>",
"latitude": 123,
"longitude": 123,
"status": "<string>",
"country": "<string>",
"property_type": "<string>",
"dev_type": "<string>",
"facility_type": "<string>",
"location_type": "<string>",
"ownership_type": "<string>",
"contractual_type": "<string>",
"measurement_type": "<string>",
"occupancy_status": "<string>",
"store_size": 123,
"proposed_start_date": "<string>",
"purchase_date": "<string>",
"open_date": "<string>",
"close_date": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"county": "<string>",
"zip": "<string>"
}
]
}
'const options = {
method: 'PUT',
headers: {
'x-client': '<api-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
records: [
{
store_id: '<string>',
store_number: '<string>',
store_number_erp: '<string>',
store_number_legacy: '<string>',
brand_id: '<string>',
latitude: 123,
longitude: 123,
status: '<string>',
country: '<string>',
property_type: '<string>',
dev_type: '<string>',
facility_type: '<string>',
location_type: '<string>',
ownership_type: '<string>',
contractual_type: '<string>',
measurement_type: '<string>',
occupancy_status: '<string>',
store_size: 123,
proposed_start_date: '<string>',
purchase_date: '<string>',
open_date: '<string>',
close_date: '<string>',
address: '<string>',
city: '<string>',
state: '<string>',
county: '<string>',
zip: '<string>'
}
]
})
};
fetch('https://api.tangoanalytics.com/v1/locationmgmt/locations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.tangoanalytics.com/v1/locationmgmt/locations"
payload = { "records": [
{
"store_id": "<string>",
"store_number": "<string>",
"store_number_erp": "<string>",
"store_number_legacy": "<string>",
"brand_id": "<string>",
"latitude": 123,
"longitude": 123,
"status": "<string>",
"country": "<string>",
"property_type": "<string>",
"dev_type": "<string>",
"facility_type": "<string>",
"location_type": "<string>",
"ownership_type": "<string>",
"contractual_type": "<string>",
"measurement_type": "<string>",
"occupancy_status": "<string>",
"store_size": 123,
"proposed_start_date": "<string>",
"purchase_date": "<string>",
"open_date": "<string>",
"close_date": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"county": "<string>",
"zip": "<string>"
}
] }
headers = {
"x-client": "<api-key>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"status": "OK",
"gu_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status_message": "<string>"
}Locations
Insert / update Property / Building / Floor / Location-Store records (async)
PUT
/
v1
/
locationmgmt
/
locations
Insert / update Property / Building / Floor / Location-Store records (async)
curl --request PUT \
--url https://api.tangoanalytics.com/v1/locationmgmt/locations \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-client: <api-key>' \
--data '
{
"records": [
{
"store_id": "<string>",
"store_number": "<string>",
"store_number_erp": "<string>",
"store_number_legacy": "<string>",
"brand_id": "<string>",
"latitude": 123,
"longitude": 123,
"status": "<string>",
"country": "<string>",
"property_type": "<string>",
"dev_type": "<string>",
"facility_type": "<string>",
"location_type": "<string>",
"ownership_type": "<string>",
"contractual_type": "<string>",
"measurement_type": "<string>",
"occupancy_status": "<string>",
"store_size": 123,
"proposed_start_date": "<string>",
"purchase_date": "<string>",
"open_date": "<string>",
"close_date": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"county": "<string>",
"zip": "<string>"
}
]
}
'const options = {
method: 'PUT',
headers: {
'x-client': '<api-key>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
records: [
{
store_id: '<string>',
store_number: '<string>',
store_number_erp: '<string>',
store_number_legacy: '<string>',
brand_id: '<string>',
latitude: 123,
longitude: 123,
status: '<string>',
country: '<string>',
property_type: '<string>',
dev_type: '<string>',
facility_type: '<string>',
location_type: '<string>',
ownership_type: '<string>',
contractual_type: '<string>',
measurement_type: '<string>',
occupancy_status: '<string>',
store_size: 123,
proposed_start_date: '<string>',
purchase_date: '<string>',
open_date: '<string>',
close_date: '<string>',
address: '<string>',
city: '<string>',
state: '<string>',
county: '<string>',
zip: '<string>'
}
]
})
};
fetch('https://api.tangoanalytics.com/v1/locationmgmt/locations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.tangoanalytics.com/v1/locationmgmt/locations"
payload = { "records": [
{
"store_id": "<string>",
"store_number": "<string>",
"store_number_erp": "<string>",
"store_number_legacy": "<string>",
"brand_id": "<string>",
"latitude": 123,
"longitude": 123,
"status": "<string>",
"country": "<string>",
"property_type": "<string>",
"dev_type": "<string>",
"facility_type": "<string>",
"location_type": "<string>",
"ownership_type": "<string>",
"contractual_type": "<string>",
"measurement_type": "<string>",
"occupancy_status": "<string>",
"store_size": 123,
"proposed_start_date": "<string>",
"purchase_date": "<string>",
"open_date": "<string>",
"close_date": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"county": "<string>",
"zip": "<string>"
}
] }
headers = {
"x-client": "<api-key>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"status": "OK",
"gu_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status_message": "<string>"
}Body
application/json
Show child attributes
Show child attributes

