Unit Of Measure
The unit of measure resource.
Basehttps://rest.carbon.ms/unitOfMeasure
GET
/unitOfMeasureList unit of measures
Retrieve a paginated list of unit of measures. 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.
GEThttps://rest.carbon.ms/unitOfMeasure
curl --request GET \
--url 'https://rest.carbon.ms/unitOfMeasure?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'Response
[
{
"id": "abc123def456",
"code": "string",
"name": "Example",
"active": true,
"companyId": "xyz789",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"updatedBy": "string"
}
]GET
/unitOfMeasureRetrieve a unit of measure
Fetch a single unit of measure by filtering on `id`.
Query parameters
idstringMatch on the unit of measure's `id`, e.g. `eq.{id}`.
GEThttps://rest.carbon.ms/unitOfMeasure
curl --request GET \
--url 'https://rest.carbon.ms/unitOfMeasure?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'Response
{
"id": "abc123def456",
"code": "string",
"name": "Example",
"active": true,
"companyId": "xyz789",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"updatedBy": "string"
}POST
/unitOfMeasureCreate a unit of measure
Create a new unit of measure.
Body parameters
codestringrequirednamestringrequiredactivebooleanrequiredcompanyIdstringrequiredReferences company.id
customFieldsobjecttagsarrayPOSThttps://rest.carbon.ms/unitOfMeasure
curl --request POST \
--url https://rest.carbon.ms/unitOfMeasure \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"code":"string","name":"Example","active":true,"companyId":"xyz789"}'Response
{
"id": "abc123def456",
"code": "string",
"name": "Example",
"active": true,
"companyId": "xyz789",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"updatedBy": "string"
}PATCH
/unitOfMeasureUpdate a unit of measure
Update an existing unit of measure, matched on `id`.
Body parameters
codestringrequirednamestringrequiredactivebooleanrequiredcompanyIdstringrequiredReferences company.id
customFieldsobjecttagsarrayPATCHhttps://rest.carbon.ms/unitOfMeasure
curl --request PATCH \
--url 'https://rest.carbon.ms/unitOfMeasure?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"code":"string"}'Response
{
"id": "abc123def456",
"code": "string",
"name": "Example",
"active": true,
"companyId": "xyz789",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"updatedBy": "string"
}DELETE
/unitOfMeasureDelete a unit of measure
Delete a unit of measure, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the unit of measure to delete, e.g. `eq.{id}`.
DELETEhttps://rest.carbon.ms/unitOfMeasure
curl --request DELETE \
--url 'https://rest.carbon.ms/unitOfMeasure?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'204 No Content