Material Grades

The material grades resource.

Basehttps://rest.carbon.ms/materialGrades
GET/materialGrades

List material gradess

Retrieve a paginated list of material gradess. Filter, order, and select columns with PostgREST query parameters.

Query parameters

selectstring

Comma-separated columns to return. Defaults to all.

orderstring

Column to sort by, e.g. `createdAt.desc`.

limitinteger

Maximum rows to return.

offsetinteger

Rows to skip, for pagination.

GEThttps://rest.carbon.ms/materialGrades
curl --request GET \
  --url 'https://rest.carbon.ms/materialGrades?select=*&limit=10' \
  --header 'Authorization: Bearer <api-key>'
Response
[
  {
    "id": "abc123def456",
    "name": "Example",
    "materialSubstanceId": "xyz789",
    "companyId": "xyz789",
    "substanceName": "string"
  }
]
GET/materialGrades

Retrieve a material grades

Fetch a single material grades by filtering on `id`.

Query parameters

idstring

Match on the material grades's `id`, e.g. `eq.{id}`.

GEThttps://rest.carbon.ms/materialGrades
curl --request GET \
  --url 'https://rest.carbon.ms/materialGrades?id=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>'
Response
{
  "id": "abc123def456",
  "name": "Example",
  "materialSubstanceId": "xyz789",
  "companyId": "xyz789",
  "substanceName": "string"
}