/v1/business/locations/{locationId}ReviewedAccess
Workspace API key, minimum role viewer. Changes data; workspace must allow writes.
Requires all: inventory.write
Behavior
Change the label, hierarchy, address, or capabilities. Send the current record's updatedAt value in an If-Match header. The route rejects missing preconditions with 428 and stale values with a conflict. Keep operationMetadata.idempotencyKey stable when retrying.
Parameters
query
workspace string · requiredWorkspace ID associated with the API key. The query name is workspace, not workspaceId.
minLength: 1
path
locationId string · requiredminLength: 1
header
If-Match string · requiredupdatedAt value from the current location record.
minLength: 1
Request body
Content-Type: application/json
body object · required
Additional fields are not accepted.
parentLocationId composition · optional
Alternative 1 composition · required
All required 1 string · requiredminLength: 1
maxLength: 256
Alternative 2 string · required · nullableAllowed: null
type composition · optional
All required 1 string · requiredAllowed: "land_plot", "warehouse", "yard", "building", "floor", "room", "store", "vehicle", "customer_site", "job_site", "zone", "area", "aisle", "rack", "shelf", "bin", "bay", "container", "tote", "virtual", "other"
label string · optional · nullableminLength: 1
maxLength: 256
description string · optional · nullablemaxLength: 1024
customerId string · optional · nullableminLength: 1
maxLength: 128
address object · optional · nullable
line1 string · optionalminLength: 1
maxLength: 160
line2 string · optionalminLength: 1
maxLength: 160
city string · optionalminLength: 1
maxLength: 120
region string · optionalminLength: 1
maxLength: 120
postalCode string · optionalminLength: 1
maxLength: 32
countryCode string · optionalminLength: 2
maxLength: 2
capacity object · optional · nullable
Additional fields are not accepted.
primaryUnit string · optional · nullableminLength: 1
maxLength: 32
maxUnits number · optional · nullableminimum: 0
metrics array · optional
maxItems: 25
Each item object · required
Additional fields are not accepted.
key string · requiredminLength: 1
maxLength: 80
label string · optionalminLength: 1
maxLength: 160
limit number · requiredminimum: 0
unit string · requiredminLength: 1
maxLength: 32
softLimit number · optional · nullableminimum: 0
used number · optional · nullableminimum: 0
reserved number · optional · nullableminimum: 0
enforce boolean · optional · nullabledimensions object · optional · nullable
Additional fields are not accepted.
length number · optional · nullableminimum: 0
width number · optional · nullableminimum: 0
height number · optional · nullableminimum: 0
unit string · optional · nullableminLength: 1
maxLength: 24
area number · optional · nullableminimum: 0
areaUnit string · optional · nullableminLength: 1
maxLength: 24
volume number · optional · nullableminimum: 0
volumeUnit string · optional · nullableminLength: 1
maxLength: 24
notes string · optional · nullablemaxLength: 1000
capabilities array · optional
maxItems: 50
Each item object · required
Additional fields are not accepted.
key string · requiredminLength: 1
maxLength: 80
label string · requiredminLength: 1
maxLength: 160
category string · optional · nullableminLength: 1
maxLength: 80
status string · optionalAllowed: "available", "limited", "unavailable"
Default: "available"
notes string · optional · nullablemaxLength: 1000
warehouseProfile object · optional · nullable
Additional fields are not accepted.
barcode string · optional · nullableminLength: 1
maxLength: 160
scanAliases array · optional
maxItems: 25
Each item string · requiredminLength: 1
maxLength: 160
workflows array · optional
maxItems: 25
Each item string · requiredAllowed: "receiving", "putaway", "storage", "picking", "packing", "shipping", "returns", "quarantine", "replenishment", "cycle_count", "sales_fulfillment", "service_work", "transfer"
handlingUnits array · optional
maxItems: 12
Each item string · requiredAllowed: "each", "case", "pallet", "carton", "tote", "container", "vehicle", "bulk", "mixed"
capacity object · optional · nullable
Additional fields are not accepted.
maxEaches number · optional · nullableminimum: 0
maxWeight number · optional · nullableminimum: 0
weightUnit string · optional · nullableminLength: 1
maxLength: 24
maxVolume number · optional · nullableminimum: 0
volumeUnit string · optional · nullableminLength: 1
maxLength: 24
temperatureBand composition · optional
Alternative 1 string · requiredAllowed: "ambient", "refrigerated", "frozen", "heated", "controlled"
Alternative 2 string · required · nullableAllowed: null
hazardousMaterialAllowed boolean · optional · nullablelockable boolean · optional · nullablepickPriority integer · optional · nullableminimum: 0
putawayPriority integer · optional · nullableminimum: 0
cycleCountFrequencyDays integer · optional · nullableminimum: 0
notes string · optional · nullablemaxLength: 1000
metadata composition · optional
Alternative 1 composition · required
All required 1 object · required
Additional values any JSON value · requiredAlternative 2 string · required · nullableAllowed: null
status composition · optional
All required 1 string · requiredAllowed: "active", "archived"
operationMetadata composition · optional
All required 1 object · required
idempotencyKey composition · optional
All required 1 string · requiredminLength: 8
maxLength: 255
occToken composition · optional
All required 1 string · requiredminLength: 8
maxLength: 255
occVersion composition · optional
All required 1 integer · requiredminimum: 0
requestId string · optionalminLength: 1
maxLength: 255
source string · optionalAllowed: "api", "workflow", "import", "integration"
Response · 200
response object · required
location object · required
Additional fields are not accepted.
workspaceId string · requiredminLength: 1
maxLength: 128
pattern: ^[A-Za-z0-9][A-Za-z0-9_-]*$
locationId string · requiredminLength: 1
maxLength: 256
parentLocationId composition · optional
Alternative 1 composition · required
All required 1 string · requiredminLength: 1
maxLength: 256
Alternative 2 string · required · nullableAllowed: null
type composition · optional
Default: "warehouse"
All required 1 string · requiredAllowed: "land_plot", "warehouse", "yard", "building", "floor", "room", "store", "vehicle", "customer_site", "job_site", "zone", "area", "aisle", "rack", "shelf", "bin", "bay", "container", "tote", "virtual", "other"
label string · requiredminLength: 1
maxLength: 256
description string · optional · nullablemaxLength: 1024
customerId string · optional · nullableminLength: 1
maxLength: 128
address object · optional · nullable
line1 string · optionalminLength: 1
maxLength: 160
line2 string · optionalminLength: 1
maxLength: 160
city string · optionalminLength: 1
maxLength: 120
region string · optionalminLength: 1
maxLength: 120
postalCode string · optionalminLength: 1
maxLength: 32
countryCode string · optionalminLength: 2
maxLength: 2
capacity object · optional · nullable
Additional fields are not accepted.
primaryUnit string · optional · nullableminLength: 1
maxLength: 32
maxUnits number · optional · nullableminimum: 0
metrics array · optional
maxItems: 25
Each item object · required
Additional fields are not accepted.
key string · requiredminLength: 1
maxLength: 80
label string · optionalminLength: 1
maxLength: 160
limit number · requiredminimum: 0
unit string · requiredminLength: 1
maxLength: 32
softLimit number · optional · nullableminimum: 0
used number · optional · nullableminimum: 0
reserved number · optional · nullableminimum: 0
enforce boolean · optional · nullabledimensions object · optional · nullable
Additional fields are not accepted.
length number · optional · nullableminimum: 0
width number · optional · nullableminimum: 0
height number · optional · nullableminimum: 0
unit string · optional · nullableminLength: 1
maxLength: 24
area number · optional · nullableminimum: 0
areaUnit string · optional · nullableminLength: 1
maxLength: 24
volume number · optional · nullableminimum: 0
volumeUnit string · optional · nullableminLength: 1
maxLength: 24
notes string · optional · nullablemaxLength: 1000
capabilities array · optional
maxItems: 50
Each item object · required
Additional fields are not accepted.
key string · requiredminLength: 1
maxLength: 80
label string · requiredminLength: 1
maxLength: 160
category string · optional · nullableminLength: 1
maxLength: 80
status string · optionalAllowed: "available", "limited", "unavailable"
Default: "available"
notes string · optional · nullablemaxLength: 1000
warehouseProfile object · optional · nullable
Additional fields are not accepted.
barcode string · optional · nullableminLength: 1
maxLength: 160
scanAliases array · optional
maxItems: 25
Each item string · requiredminLength: 1
maxLength: 160
workflows array · optional
maxItems: 25
Each item string · requiredAllowed: "receiving", "putaway", "storage", "picking", "packing", "shipping", "returns", "quarantine", "replenishment", "cycle_count", "sales_fulfillment", "service_work", "transfer"
handlingUnits array · optional
maxItems: 12
Each item string · requiredAllowed: "each", "case", "pallet", "carton", "tote", "container", "vehicle", "bulk", "mixed"
capacity object · optional · nullable
Additional fields are not accepted.
maxEaches number · optional · nullableminimum: 0
maxWeight number · optional · nullableminimum: 0
weightUnit string · optional · nullableminLength: 1
maxLength: 24
maxVolume number · optional · nullableminimum: 0
volumeUnit string · optional · nullableminLength: 1
maxLength: 24
temperatureBand composition · optional
Alternative 1 string · requiredAllowed: "ambient", "refrigerated", "frozen", "heated", "controlled"
Alternative 2 string · required · nullableAllowed: null
hazardousMaterialAllowed boolean · optional · nullablelockable boolean · optional · nullablepickPriority integer · optional · nullableminimum: 0
putawayPriority integer · optional · nullableminimum: 0
cycleCountFrequencyDays integer · optional · nullableminimum: 0
notes string · optional · nullablemaxLength: 1000
metadata composition · optional
All required 1 object · required
Additional values any JSON value · requiredstatus string · requiredAllowed: "active", "archived"
createdAt string · required · date-timeupdatedAt string · required · date-timeErrors and recovery
- 400
- Invalid input or unmet request prerequisite. Read message and any code or issues.
- 401
- Missing, invalid, expired, revoked, or wrong-environment credentials.
- 403
- Workspace permissions or workspace state do not allow this operation.
- 404
- Workspace or requested record was not found.
- 409
- State, lifecycle, idempotency, or concurrency conflict. Read current state before deciding whether to retry.
- 422
- The requested hierarchy exceeds its depth or size limit. Choose a shallower parent or reduce the hierarchy before retrying.
- 428
- Required If-Match precondition is missing. Read the current record and send its updatedAt value in If-Match.
- 429
- Rate limit reached. Honor Retry-After.
- 500
- Unexpected server failure. A write may have committed; reconcile before retrying.
- 503
- Required authority or dependency unavailable. Preserve the command identity if retrying a write.