Work Center Replacement Part

The work center replacement part resource.

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

List work center replacement parts

Retrieve a paginated list of work center replacement parts. 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/workCenterReplacementPart
curl --request GET \
  --url 'https://rest.carbon.ms/workCenterReplacementPart?select=*&limit=10' \
  --header 'Authorization: Bearer <api-key>'
Response
[
  {
    "id": "abc123def456",
    "workCenterId": "xyz789",
    "itemId": "xyz789",
    "quantity": 10,
    "unitOfMeasureCode": "string",
    "companyId": "xyz789",
    "createdBy": "string",
    "createdAt": "2026-01-01T00:00:00Z"
  }
]
GET/workCenterReplacementPart

Retrieve a work center replacement part

Fetch a single work center replacement part by filtering on `id`.

Query parameters

idstring

Match on the work center replacement part's `id`, e.g. `eq.{id}`.

GEThttps://rest.carbon.ms/workCenterReplacementPart
curl --request GET \
  --url 'https://rest.carbon.ms/workCenterReplacementPart?id=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>'
Response
{
  "id": "abc123def456",
  "workCenterId": "xyz789",
  "itemId": "xyz789",
  "quantity": 10,
  "unitOfMeasureCode": "string",
  "companyId": "xyz789",
  "createdBy": "string",
  "createdAt": "2026-01-01T00:00:00Z"
}
POST/workCenterReplacementPart

Create a work center replacement part

Create a new work center replacement part.

Body parameters

workCenterIdstringrequired

References workCenter.id

itemIdstringrequired

References item.id

quantitynumberrequired
unitOfMeasureCodestringrequired
companyIdstringrequired

References company.id

POSThttps://rest.carbon.ms/workCenterReplacementPart
curl --request POST \
  --url https://rest.carbon.ms/workCenterReplacementPart \
  --header 'Authorization: Bearer <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'Prefer: return=representation' \
  --data '{"workCenterId":"xyz789","itemId":"xyz789","quantity":10,"unitOfMeasureCode":"string","companyId":"xyz789"}'
Response
{
  "id": "abc123def456",
  "workCenterId": "xyz789",
  "itemId": "xyz789",
  "quantity": 10,
  "unitOfMeasureCode": "string",
  "companyId": "xyz789",
  "createdBy": "string",
  "createdAt": "2026-01-01T00:00:00Z"
}
PATCH/workCenterReplacementPart

Update a work center replacement part

Update an existing work center replacement part, matched on `id`.

Body parameters

workCenterIdstringrequired

References workCenter.id

itemIdstringrequired

References item.id

quantitynumberrequired
unitOfMeasureCodestringrequired
companyIdstringrequired

References company.id

PATCHhttps://rest.carbon.ms/workCenterReplacementPart
curl --request PATCH \
  --url 'https://rest.carbon.ms/workCenterReplacementPart?id=eq.%7Bid%7D' \
  --header 'Authorization: Bearer <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'Prefer: return=representation' \
  --data '{"workCenterId":"xyz789"}'
Response
{
  "id": "abc123def456",
  "workCenterId": "xyz789",
  "itemId": "xyz789",
  "quantity": 10,
  "unitOfMeasureCode": "string",
  "companyId": "xyz789",
  "createdBy": "string",
  "createdAt": "2026-01-01T00:00:00Z"
}
DELETE/workCenterReplacementPart

Delete a work center replacement part

Delete a work center replacement part, matched on `id`. Returns 204 No Content.

Query parameters

idstring

The `id` of the work center replacement part to delete, e.g. `eq.{id}`.

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