Skip to main content
POST
Sync the baseline and many locations

Authorizations

X-API-Key
string
header
required

Body

application/json
locations
object[]
required

Up to 100 locations, each created or replaced by its external_id. A location that is not listed is left as it is unless archive_missing is true.

Maximum array length: 100
archive_missing
boolean
default:false

True archives every active location that is not in this request. Use it only when one request lists every location.

baseline
object

Replaces the baseline. Left out, the baseline is not touched.

dry_run
boolean
default:true

True (the default) answers what applying would change and writes nothing.

Response

applied
boolean
required

False for a dry run: nothing was written. The rest has the same shape.

baseline
object
required
changes
object[]
required

Every location whose own record or effective inventory changes. A baseline change can reach locations that are not in the request: they show action unchanged with the equipment they gain or lose.

locations
object
required

What happened to the locations in the request, and to those archived because the request left them out.

totals
object
required