Job Material Step
The job material step resource.
Basehttps://rest.carbon.ms/jobMaterialStep
GET
/jobMaterialStepList job material steps
Retrieve a paginated list of job material steps. 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/jobMaterialStep
curl --request GET \
--url 'https://rest.carbon.ms/jobMaterialStep?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'Response
[
{
"jobMaterialId": "xyz789",
"jobOperationStepId": "xyz789"
}
]GET
/jobMaterialStepRetrieve a job material step
Fetch a single job material step by filtering on `jobMaterialId`.
Query parameters
jobMaterialIdstringMatch on the job material step's `jobMaterialId`, e.g. `eq.{id}`.
GEThttps://rest.carbon.ms/jobMaterialStep
curl --request GET \
--url 'https://rest.carbon.ms/jobMaterialStep?jobMaterialId=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'Response
{
"jobMaterialId": "xyz789",
"jobOperationStepId": "xyz789"
}POST
/jobMaterialStepCreate a job material step
Create a new job material step.
POSThttps://rest.carbon.ms/jobMaterialStep
curl --request POST \
--url https://rest.carbon.ms/jobMaterialStep \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"jobMaterialId":"xyz789"}'Response
{
"jobMaterialId": "xyz789",
"jobOperationStepId": "xyz789"
}PATCH
/jobMaterialStepUpdate a job material step
Update an existing job material step, matched on `jobMaterialId`.
PATCHhttps://rest.carbon.ms/jobMaterialStep
curl --request PATCH \
--url 'https://rest.carbon.ms/jobMaterialStep?jobMaterialId=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"name":"Example"}'Response
{
"jobMaterialId": "xyz789",
"jobOperationStepId": "xyz789"
}DELETE
/jobMaterialStepDelete a job material step
Delete a job material step, matched on `jobMaterialId`. Returns 204 No Content.
Query parameters
jobMaterialIdstringThe `jobMaterialId` of the job material step to delete, e.g. `eq.{id}`.
DELETEhttps://rest.carbon.ms/jobMaterialStep
curl --request DELETE \
--url 'https://rest.carbon.ms/jobMaterialStep?jobMaterialId=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'204 No Content