Storage Unit
The storage unit resource.
Base/storageUnit
GET
/storageUnitList storage units
Retrieve a paginated list of storage units. Filter, order, and select columns with PostgREST query parameters.
Query parameters
selectstringComma-separated columns to return. Defaults to all.
orderstringColumn to sort by, e.g. `createdAt.desc`.
limitintegerMaximum rows to return.
offsetintegerRows to skip, for pagination.
GET/storageUnit
curl --request GET \
--url '<your-host>/storageUnit?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'Response
[
{
"id": "abc123def456",
"locationId": "xyz789",
"active": true,
"companyId": "xyz789",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"name": "Example",
"storageTypeIds": []
}
]GET
/storageUnitRetrieve a storage unit
Fetch a single storage unit by filtering on `id`.
Query parameters
idstringMatch on the storage unit's `id`, e.g. `eq.{id}`.
GET/storageUnit
curl --request GET \
--url '<your-host>/storageUnit?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'Response
{
"id": "abc123def456",
"locationId": "xyz789",
"active": true,
"companyId": "xyz789",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"name": "Example",
"storageTypeIds": []
}POST
/storageUnitCreate a storage unit
Create a new storage unit.
Body parameters
locationIdstringrequiredwarehouseIdstringReferences warehouse.id
activebooleanrequiredcompanyIdstringrequiredReferences company.id
customFieldsobjectnamestringrequiredtagsarrayparentIdstringstorageTypeIdsarrayrequiredworkCenterIdstringReferences workCenter.id
isWorkCenterDefaultbooleanrequiredPOST/storageUnit
curl --request POST \
--url <your-host>/storageUnit \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"locationId":"xyz789","active":true,"companyId":"xyz789","name":"Example","storageTypeIds":[],"isWorkCenterDefault":true}'Response
{
"id": "abc123def456",
"locationId": "xyz789",
"active": true,
"companyId": "xyz789",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"name": "Example",
"storageTypeIds": []
}PATCH
/storageUnitUpdate a storage unit
Update an existing storage unit, matched on `id`.
Body parameters
locationIdstringrequiredwarehouseIdstringReferences warehouse.id
activebooleanrequiredcompanyIdstringrequiredReferences company.id
customFieldsobjectnamestringrequiredtagsarrayparentIdstringstorageTypeIdsarrayrequiredworkCenterIdstringReferences workCenter.id
isWorkCenterDefaultbooleanrequiredPATCH/storageUnit
curl --request PATCH \
--url '<your-host>/storageUnit?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"locationId":"xyz789"}'Response
{
"id": "abc123def456",
"locationId": "xyz789",
"active": true,
"companyId": "xyz789",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"name": "Example",
"storageTypeIds": []
}DELETE
/storageUnitDelete a storage unit
Delete a storage unit, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the storage unit to delete, e.g. `eq.{id}`.
DELETE/storageUnit
curl --request DELETE \
--url '<your-host>/storageUnit?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'204 No Content