Material
The material resource.
/materialList materials
Retrieve a paginated list of materials. 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/material?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'[
{
"id": "abc123def456",
"companyId": "xyz789",
"approved": true,
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"materialFormId": "xyz789",
"materialSubstanceId": "xyz789",
"approvedBy": "string"
}
]/materialRetrieve a material
Fetch a single material by filtering on `id`.
Query parameters
idstringMatch on the material's `id`, e.g. `eq.{id}`.
curl --request GET \
--url 'https://rest.carbon.ms/material?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'{
"id": "abc123def456",
"companyId": "xyz789",
"approved": true,
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"materialFormId": "xyz789",
"materialSubstanceId": "xyz789",
"approvedBy": "string"
}/materialCreate a material
Create a new material.
Body parameters
materialFormIdstringReferences materialForm.id
materialSubstanceIdstringReferences materialSubstance.id
approvedbooleanrequiredapprovedBystringReferences user.id
customFieldsobjecttagsarraydimensionIdstringReferences materialDimension.id
finishIdstringReferences materialFinish.id
gradeIdstringReferences materialGrade.id
materialTypeIdstringReferences materialType.id
curl --request POST \
--url https://rest.carbon.ms/material \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"approved":true}'{
"id": "abc123def456",
"companyId": "xyz789",
"approved": true,
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"materialFormId": "xyz789",
"materialSubstanceId": "xyz789",
"approvedBy": "string"
}/materialUpdate a material
Update an existing material, matched on `id`.
Body parameters
materialFormIdstringReferences materialForm.id
materialSubstanceIdstringReferences materialSubstance.id
approvedbooleanrequiredapprovedBystringReferences user.id
customFieldsobjecttagsarraydimensionIdstringReferences materialDimension.id
finishIdstringReferences materialFinish.id
gradeIdstringReferences materialGrade.id
materialTypeIdstringReferences materialType.id
curl --request PATCH \
--url 'https://rest.carbon.ms/material?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"materialFormId":"xyz789"}'{
"id": "abc123def456",
"companyId": "xyz789",
"approved": true,
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"materialFormId": "xyz789",
"materialSubstanceId": "xyz789",
"approvedBy": "string"
}/materialDelete a material
Delete a material, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the material to delete, e.g. `eq.{id}`.
curl --request DELETE \
--url 'https://rest.carbon.ms/material?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'