Inspection Document
The inspection document resource.
Basehttps://rest.carbon.ms/inspectionDocument
GET
/inspectionDocumentList inspection documents
Retrieve a paginated list of inspection documents. 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/inspectionDocument
curl --request GET \
--url 'https://rest.carbon.ms/inspectionDocument?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'Response
[
{
"id": "abc123def456",
"companyId": "xyz789",
"partId": "xyz789",
"version": 0,
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"drawingNumber": "string",
"storagePath": "string"
}
]GET
/inspectionDocumentRetrieve a inspection document
Fetch a single inspection document by filtering on `id`.
Query parameters
idstringMatch on the inspection document's `id`, e.g. `eq.{id}`.
GEThttps://rest.carbon.ms/inspectionDocument
curl --request GET \
--url 'https://rest.carbon.ms/inspectionDocument?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'Response
{
"id": "abc123def456",
"companyId": "xyz789",
"partId": "xyz789",
"version": 0,
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"drawingNumber": "string",
"storagePath": "string"
}POST
/inspectionDocumentCreate a inspection document
Create a new inspection document.
Body parameters
partIdstringrequiredReferences item.id
drawingNumberstringversionnumberrequiredstoragePathstringfileNamestringpageCountnumberdefaultPageWidthnumberdefaultPageHeightnumberuploadedBystringReferences user.id
POSThttps://rest.carbon.ms/inspectionDocument
curl --request POST \
--url https://rest.carbon.ms/inspectionDocument \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"partId":"xyz789","version":0}'Response
{
"id": "abc123def456",
"companyId": "xyz789",
"partId": "xyz789",
"version": 0,
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"drawingNumber": "string",
"storagePath": "string"
}PATCH
/inspectionDocumentUpdate a inspection document
Update an existing inspection document, matched on `id`.
Body parameters
partIdstringrequiredReferences item.id
drawingNumberstringversionnumberrequiredstoragePathstringfileNamestringpageCountnumberdefaultPageWidthnumberdefaultPageHeightnumberuploadedBystringReferences user.id
PATCHhttps://rest.carbon.ms/inspectionDocument
curl --request PATCH \
--url 'https://rest.carbon.ms/inspectionDocument?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"partId":"xyz789"}'Response
{
"id": "abc123def456",
"companyId": "xyz789",
"partId": "xyz789",
"version": 0,
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z",
"drawingNumber": "string",
"storagePath": "string"
}DELETE
/inspectionDocumentDelete a inspection document
Delete a inspection document, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the inspection document to delete, e.g. `eq.{id}`.
DELETEhttps://rest.carbon.ms/inspectionDocument
curl --request DELETE \
--url 'https://rest.carbon.ms/inspectionDocument?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'204 No Content