Method Material Step

The method material step resource.

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

List method material steps

Retrieve a paginated list of method material steps. 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/methodMaterialStep
curl --request GET \
  --url 'https://rest.carbon.ms/methodMaterialStep?select=*&limit=10' \
  --header 'Authorization: Bearer <api-key>'
Response
[
  {
    "methodMaterialId": "xyz789",
    "methodOperationStepId": "xyz789"
  }
]
GET/methodMaterialStep

Retrieve a method material step

Fetch a single method material step by filtering on `methodMaterialId`.

Query parameters

methodMaterialIdstring

Match on the method material step's `methodMaterialId`, e.g. `eq.{id}`.

GEThttps://rest.carbon.ms/methodMaterialStep
curl --request GET \
  --url 'https://rest.carbon.ms/methodMaterialStep?methodMaterialId=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>'
Response
{
  "methodMaterialId": "xyz789",
  "methodOperationStepId": "xyz789"
}
POST/methodMaterialStep

Create a method material step

Create a new method material step.

POSThttps://rest.carbon.ms/methodMaterialStep
curl --request POST \
  --url https://rest.carbon.ms/methodMaterialStep \
  --header 'Authorization: Bearer <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'Prefer: return=representation' \
  --data '{"methodMaterialId":"xyz789"}'
Response
{
  "methodMaterialId": "xyz789",
  "methodOperationStepId": "xyz789"
}
PATCH/methodMaterialStep

Update a method material step

Update an existing method material step, matched on `methodMaterialId`.

PATCHhttps://rest.carbon.ms/methodMaterialStep
curl --request PATCH \
  --url 'https://rest.carbon.ms/methodMaterialStep?methodMaterialId=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'Prefer: return=representation' \
  --data '{"name":"Example"}'
Response
{
  "methodMaterialId": "xyz789",
  "methodOperationStepId": "xyz789"
}
DELETE/methodMaterialStep

Delete a method material step

Delete a method material step, matched on `methodMaterialId`. Returns 204 No Content.

Query parameters

methodMaterialIdstring

The `methodMaterialId` of the method material step to delete, e.g. `eq.{id}`.

DELETEhttps://rest.carbon.ms/methodMaterialStep
curl --request DELETE \
  --url 'https://rest.carbon.ms/methodMaterialStep?methodMaterialId=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>'
204 No Content