/v1/business/locations/{locationId}ReviewedAccess
Workspace API key, minimum role viewer. Changes data; workspace must allow writes.
Requires all: inventory.write
Behavior
Retire a location without deleting it. Archiving sets the location status to archived; the record stays addressable so dependent records keep their history. The If-Match header must carry the current record's updatedAt value: a missing value returns 428 and a stale value is rejected. The body is optional; send operationMetadata.idempotencyKey when a retry could repeat the archive. Success returns 204 with no body, including for an exact retry; confirm state with a GET.
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 · optional
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 · 204
Success. The response has no body.
Errors 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.
- 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.