Inventory Manager API · locations

Rename a location, re-note it, change whether stock there can be sold, or move it in the…

PATCH /locations/{locationId}

Rename a location, re-note it, change whether stock there can be sold, or move it in the routing order (rank, lowest first).

Appends inventory.location-updated. 409 LastFulfillableLocation if this would leave the organization with nowhere to ship from. Stock already at the site stays put — making a location non-fulfillable withdraws it from sale rather than moving anything. Idempotent by content: a retry that changes nothing is acknowledged and appends nothing.

Access

Requires locations:write.

How scopes come from roles: Scopes and roles. Getting a token: Authentication and app tokens.

Retries

Idempotent by content: a retry that changes nothing is acknowledged and appends nothing.

Why every write carries a key: Idempotency and retries.

Facts appended

  • inventory.location-updated

What a fact is: Facts and the journal.

AI agent tool

Agents call this as inventory_update_location (Inventory: Update location), in the locations toolset.

Connecting an agent: AI agents.

Example

Move the shopfront ahead of Main in the routing order.

curl
curl -X PATCH 'https://inventory.getmanifold.io/locations/loc_019cd06e-3b38-7e92-b496-c92f8184a3aa' \
  -H "Authorization: Bearer $MANIFOLD_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
  "rank": 50
}'
JavaScript (fetch)
const response = await fetch("https://inventory.getmanifold.io/locations/loc_019cd06e-3b38-7e92-b496-c92f8184a3aa", {
  method: "PATCH",
  headers: { Authorization: `Bearer ${process.env.MANIFOLD_TOKEN}`, "Content-Type": "application/json" },
  body: JSON.stringify({
    "rank": 50
  }),
});
if (!response.ok) throw new Error(`${response.status}: ${await response.text()}`);
const answer = await response.json();
Request body · application/json
{
  "rank": 50
}
Response · 200 · application/json
{
  "id": "loc_019cd06e-3b38-7e92-b496-c92f8184a3aa",
  "name": "Shopfront",
  "fulfillable": true,
  "archived": false,
  "note": "Counter stock; restocked from Main twice a week.",
  "address": {
    "company": "Tidewater Supply Co.",
    "address1": "Shop 2, 40 Example Parade",
    "city": "Brookvale",
    "province": "New South Wales",
    "provinceCode": "NSW",
    "country": "Australia",
    "countryCode": "AU",
    "zip": "2100"
  },
  "coordinates": {
    "latitude": -33.7633,
    "longitude": 151.2694
  },
  "rank": 50,
  "bindings": [],
  "createdAt": "2026-03-09T02:30:11.000Z",
  "updatedAt": "2026-10-22T06:40:00.000Z"
}

The panel writes this call in other languages. It does not send it: Manifold's APIs do not take calls from a web page on another site, so run the call from your own code or terminal. The whole API as OpenAPI: inventory-manager.openapi.json. Base URL https://inventory.getmanifold.io.

Errors

Every refusal is a status and a JSON body whose _tag names it. A refused call changes nothing.

401

RefusalWhat it meansWhat to do
Unauthorized reason The token is missing, expired or not one Manifold issued.Get a fresh token and send the call again.
TokenAlreadyUsed tokenId A single-use app token was already spent.Mint a new token for this call.

402

RefusalWhat it meansWhat to do
SubscriptionRequired status The organization's subscription has lapsed, so writes are refused.An owner settles billing. Reads still work meanwhile.

403

RefusalWhat it meansWhat to do
TenantRequired userId The token names no organization.Choose the organization, then get a new token.
ScopeRequired required The token's roles do not grant the scope this call needs.Ask an owner or admin for a role that grants it.

404

RefusalWhat it meansWhat to do
LocationNotFound locationId No such record in this organization.Check the id in the path or the body.

409

RefusalWhat it meansWhat to do
LastFulfillableLocation locationId This is the only location left to ship from.Set another location to ship first.
MirroredFromSource source This area is fed by your source system until the organization goes live.Make the change in the source system, or go live first.

503

RefusalWhat it meansWhat to do
RequestLogUnavailable tokenId, reason The service could not record the request, so it did nothing.Send the same request again shortly.

How refusals work everywhere: Errors.

Used in