Update Location
Update a location by ID. Include only fields you want to change; omit the rest. Empty strings, null, and 0 are ignored so they cannot wipe existing values. App connections need the booking:write or inventory:write scope.
curl -X POST "https://dash.lockii.app/api/v1/location/{id}" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"address": "string",
"companyID": "string",
"lat": 0,
"lng": 0,
"accessDetails": "string",
"taxRateOverride": 0,
"opens": 0,
"closes": 0,
"operatingHours": {
"friday": {
"closes": 0,
"opens": 0
},
"monday": {
"closes": 0,
"opens": 0
},
"saturday": {
"closes": 0,
"opens": 0
},
"sunday": {
"closes": 0,
"opens": 0
},
"thursday": {
"closes": 0,
"opens": 0
},
"tuesday": {
"closes": 0,
"opens": 0
},
"wednesday": {
"closes": 0,
"opens": 0
}
},
"googlePlaceID": "string",
"googleReviewUrl": "string",
"archived": true
}'Authorization
x-api-keystringheaderAPI key from Settings → Integrations → API.
AuthorizationstringheaderThe same API key, or an OAuth access token, sent as Authorization: Bearer.
api_keystringqueryAPI key query parameter.
Parameters
idstringpathrequiredLocation ID
Body
namestringLocation name Omit to leave unchanged.
addressstringLocation address Omit to leave unchanged.
companyIDstringCompany ID. Defaults to the authenticated user's company. Omit to leave unchanged.
latnumber | nullOmit to leave unchanged.
lngnumber | nullOmit to leave unchanged.
accessDetailsstring | nullOmit to leave unchanged.
taxRateOverridenumber | nullOmit to leave unchanged.
opensnumber | nullOmit to leave unchanged.
closesnumber | nullOmit to leave unchanged.
operatingHoursobjectPer-day operating hours. Each day is { opens, closes }, '24h', or 'closed'. Omit to leave unchanged.
googlePlaceIDstring | nullOmit to leave unchanged.
googleReviewUrlstring | nullOmit to leave unchanged.
archivedbooleanOmit to leave unchanged.
Response
JSON result for this operation.
{}