Skip to main content
PUT
Upsert a location

Authorizations

X-API-Key
string
header
required

Organization-scoped API key. Create one in the BuildingSwell app under Organization settings, API keys.

Path Parameters

id
string<uuid>
required

Record id.

Query Parameters

update
string[]
required

Columns to overwrite when the row already exists. Repeat the parameter for each column: a single comma-separated value is read as one column name and fails at the database. Without the parameter the request is rejected with 400.

Body

application/json

Exactly one of shopId or projectId is required; coordinates must be supplied together.

name
string
required
id
string<uuid>

Optional client-supplied ID.

shopId
string<uuid> | null
projectId
string<uuid> | null
parentId
string<uuid> | null
code
string | null
type
enum<string>
Available options:
storage,
staging,
in_transit,
yard,
build_bay,
station,
rack,
bay,
booth,
cell,
shelf,
zone,
work_center,
site
metadata
object
addressLine1
string | null
addressLine2
string | null
city
string | null
stateOrProvince
string | null
postalCode
string | null
country
enum<string> | null
Available options:
US,
CA
latitude
number | null
longitude
number | null
timezone
string | null
deliveryInstructions
string | null
notes
string | null

Response

Successful response.

value
object