curl --request POST \
--url https://api2.rhombussystems.com/api/location/updateLocation \
--header 'Content-Type: application/json' \
--header 'x-auth-apikey: <api-key>' \
--header 'x-auth-scheme: <x-auth-scheme>' \
--data '
{
"location": {
"address1": "<string>",
"address2": "<string>",
"countryCode": "<string>",
"floorPlans": [
{
"eastEdge": 123,
"floorLabel": "<string>",
"floorNumber": 123,
"imageUrl": "<string>",
"mediaUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"northEdge": 123,
"rotation": 123,
"southEdge": 123,
"westEdge": 123
}
],
"labels": [
"<string>"
],
"latitude": 123,
"longitude": 123,
"name": "<string>",
"policyUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"postalCode": "<string>",
"subLocations": "<array>",
"tz": "<string>",
"uuid": "AAAAAAAAAAAAAAAAAAAAAA"
}
}
'import requests
url = "https://api2.rhombussystems.com/api/location/updateLocation"
payload = { "location": {
"address1": "<string>",
"address2": "<string>",
"countryCode": "<string>",
"floorPlans": [
{
"eastEdge": 123,
"floorLabel": "<string>",
"floorNumber": 123,
"imageUrl": "<string>",
"mediaUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"northEdge": 123,
"rotation": 123,
"southEdge": 123,
"westEdge": 123
}
],
"labels": ["<string>"],
"latitude": 123,
"longitude": 123,
"name": "<string>",
"policyUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"postalCode": "<string>",
"subLocations": "<array>",
"tz": "<string>",
"uuid": "AAAAAAAAAAAAAAAAAAAAAA"
} }
headers = {
"x-auth-scheme": "<x-auth-scheme>",
"x-auth-apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-auth-scheme': '<x-auth-scheme>',
'x-auth-apikey': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
location: {
address1: '<string>',
address2: '<string>',
countryCode: '<string>',
floorPlans: [
{
eastEdge: 123,
floorLabel: '<string>',
floorNumber: 123,
imageUrl: '<string>',
mediaUuid: 'AAAAAAAAAAAAAAAAAAAAAA',
northEdge: 123,
rotation: 123,
southEdge: 123,
westEdge: 123
}
],
labels: ['<string>'],
latitude: 123,
longitude: 123,
name: '<string>',
policyUuid: 'AAAAAAAAAAAAAAAAAAAAAA',
postalCode: '<string>',
subLocations: '<array>',
tz: '<string>',
uuid: 'AAAAAAAAAAAAAAAAAAAAAA'
}
})
};
fetch('https://api2.rhombussystems.com/api/location/updateLocation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api2.rhombussystems.com/api/location/updateLocation")
.header("x-auth-scheme", "<x-auth-scheme>")
.header("x-auth-apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"location\": {\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"floorPlans\": [\n {\n \"eastEdge\": 123,\n \"floorLabel\": \"<string>\",\n \"floorNumber\": 123,\n \"imageUrl\": \"<string>\",\n \"mediaUuid\": \"AAAAAAAAAAAAAAAAAAAAAA\",\n \"northEdge\": 123,\n \"rotation\": 123,\n \"southEdge\": 123,\n \"westEdge\": 123\n }\n ],\n \"labels\": [\n \"<string>\"\n ],\n \"latitude\": 123,\n \"longitude\": 123,\n \"name\": \"<string>\",\n \"policyUuid\": \"AAAAAAAAAAAAAAAAAAAAAA\",\n \"postalCode\": \"<string>\",\n \"subLocations\": \"<array>\",\n \"tz\": \"<string>\",\n \"uuid\": \"AAAAAAAAAAAAAAAAAAAAAA\"\n }\n}")
.asString();{
"error": true,
"errorMsg": "<string>",
"warningMsg": "<string>"
}Update location
Update a location **NOTE: This will replace old settings meaning if you leave a field blank it will be overrode to blank. For selective field updates use the endpoint /selectiveUpdateLocation
curl --request POST \
--url https://api2.rhombussystems.com/api/location/updateLocation \
--header 'Content-Type: application/json' \
--header 'x-auth-apikey: <api-key>' \
--header 'x-auth-scheme: <x-auth-scheme>' \
--data '
{
"location": {
"address1": "<string>",
"address2": "<string>",
"countryCode": "<string>",
"floorPlans": [
{
"eastEdge": 123,
"floorLabel": "<string>",
"floorNumber": 123,
"imageUrl": "<string>",
"mediaUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"northEdge": 123,
"rotation": 123,
"southEdge": 123,
"westEdge": 123
}
],
"labels": [
"<string>"
],
"latitude": 123,
"longitude": 123,
"name": "<string>",
"policyUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"postalCode": "<string>",
"subLocations": "<array>",
"tz": "<string>",
"uuid": "AAAAAAAAAAAAAAAAAAAAAA"
}
}
'import requests
url = "https://api2.rhombussystems.com/api/location/updateLocation"
payload = { "location": {
"address1": "<string>",
"address2": "<string>",
"countryCode": "<string>",
"floorPlans": [
{
"eastEdge": 123,
"floorLabel": "<string>",
"floorNumber": 123,
"imageUrl": "<string>",
"mediaUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"northEdge": 123,
"rotation": 123,
"southEdge": 123,
"westEdge": 123
}
],
"labels": ["<string>"],
"latitude": 123,
"longitude": 123,
"name": "<string>",
"policyUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"postalCode": "<string>",
"subLocations": "<array>",
"tz": "<string>",
"uuid": "AAAAAAAAAAAAAAAAAAAAAA"
} }
headers = {
"x-auth-scheme": "<x-auth-scheme>",
"x-auth-apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-auth-scheme': '<x-auth-scheme>',
'x-auth-apikey': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
location: {
address1: '<string>',
address2: '<string>',
countryCode: '<string>',
floorPlans: [
{
eastEdge: 123,
floorLabel: '<string>',
floorNumber: 123,
imageUrl: '<string>',
mediaUuid: 'AAAAAAAAAAAAAAAAAAAAAA',
northEdge: 123,
rotation: 123,
southEdge: 123,
westEdge: 123
}
],
labels: ['<string>'],
latitude: 123,
longitude: 123,
name: '<string>',
policyUuid: 'AAAAAAAAAAAAAAAAAAAAAA',
postalCode: '<string>',
subLocations: '<array>',
tz: '<string>',
uuid: 'AAAAAAAAAAAAAAAAAAAAAA'
}
})
};
fetch('https://api2.rhombussystems.com/api/location/updateLocation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api2.rhombussystems.com/api/location/updateLocation")
.header("x-auth-scheme", "<x-auth-scheme>")
.header("x-auth-apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"location\": {\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"floorPlans\": [\n {\n \"eastEdge\": 123,\n \"floorLabel\": \"<string>\",\n \"floorNumber\": 123,\n \"imageUrl\": \"<string>\",\n \"mediaUuid\": \"AAAAAAAAAAAAAAAAAAAAAA\",\n \"northEdge\": 123,\n \"rotation\": 123,\n \"southEdge\": 123,\n \"westEdge\": 123\n }\n ],\n \"labels\": [\n \"<string>\"\n ],\n \"latitude\": 123,\n \"longitude\": 123,\n \"name\": \"<string>\",\n \"policyUuid\": \"AAAAAAAAAAAAAAAAAAAAAA\",\n \"postalCode\": \"<string>\",\n \"subLocations\": \"<array>\",\n \"tz\": \"<string>\",\n \"uuid\": \"AAAAAAAAAAAAAAAAAAAAAA\"\n }\n}")
.asString();{
"error": true,
"errorMsg": "<string>",
"warningMsg": "<string>"
}Authorizations
Your Rhombus API key. Must be accompanied by the x-auth-scheme header set to api-token (or partner-api-token for partner endpoints).
Headers
Authentication scheme identifier. Use api-token for standard API key authentication, partner-api-token for partner API key authentication. Must be paired with the x-auth-apikey header containing your API key.
api-token, api, partner-api-token, partner-api Body
Request object for updating a location. NOTE: This will replace old settings meaning if you leave a field blank it will be overrode to blank. For selective field updates use the endpoint /selectiveUpdateLocation.
Location information to update
Show child attributes
Show child attributes
Was this page helpful?