Storage Unit
The storage unit resource.
/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.
curl --request GET \
--url 'https://rest.carbon.ms/storageUnit?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'[
{
"id": "abc123def456",
"locationId": "xyz789",
"active": true,
"companyId": "xyz789",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"name": "Example",
"storageTypeIds": []
}
]/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}`.
curl --request GET \
--url 'https://rest.carbon.ms/storageUnit?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'{
"id": "abc123def456",
"locationId": "xyz789",
"active": true,
"companyId": "xyz789",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"name": "Example",
"storageTypeIds": []
}/storageUnitCreate a storage unit
Create a new storage unit.
Body parameters
locationIdstringrequiredReferences location.id
warehouseIdstringReferences warehouse.id
activebooleanrequiredcompanyIdstringrequiredReferences company.id
customFieldsobjectnamestringrequiredtagsarrayparentIdstringReferences storageUnit.id
storageTypeIdsarrayrequiredcurl --request POST \
--url https://rest.carbon.ms/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":[]}'{
"id": "abc123def456",
"locationId": "xyz789",
"active": true,
"companyId": "xyz789",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"name": "Example",
"storageTypeIds": []
}/storageUnitUpdate a storage unit
Update an existing storage unit, matched on `id`.
Body parameters
locationIdstringrequiredReferences location.id
warehouseIdstringReferences warehouse.id
activebooleanrequiredcompanyIdstringrequiredReferences company.id
customFieldsobjectnamestringrequiredtagsarrayparentIdstringReferences storageUnit.id
storageTypeIdsarrayrequiredcurl --request PATCH \
--url 'https://rest.carbon.ms/storageUnit?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"locationId":"xyz789"}'{
"id": "abc123def456",
"locationId": "xyz789",
"active": true,
"companyId": "xyz789",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"name": "Example",
"storageTypeIds": []
}/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}`.
curl --request DELETE \
--url 'https://rest.carbon.ms/storageUnit?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'