Inspection Sample
The inspection sample resource.
/inspectionSampleList inspection samples
Retrieve a paginated list of inspection samples. 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.
curl --request GET \
--url 'https://rest.carbon.ms/inspectionSample?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'[
{
"id": "abc123def456",
"inspectionId": "xyz789",
"status": "string",
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z",
"createdBy": "string",
"trackedEntityId": "xyz789",
"notes": "string"
}
]/inspectionSampleRetrieve a inspection sample
Fetch a single inspection sample by filtering on `id`.
Query parameters
idstringMatch on the inspection sample's `id`, e.g. `eq.{id}`.
curl --request GET \
--url 'https://rest.carbon.ms/inspectionSample?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'{
"id": "abc123def456",
"inspectionId": "xyz789",
"status": "string",
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z",
"createdBy": "string",
"trackedEntityId": "xyz789",
"notes": "string"
}/inspectionSampleCreate a inspection sample
Create a new inspection sample.
Body parameters
inspectionIdstringrequiredReferences inspection.id
trackedEntityIdstringReferences trackedEntity.id
statusinspectionSampleStatusTyperequirednotesstringinspectedBystringReferences user.id
inspectedAttimestampcompanyIdstringrequiredReferences company.id
curl --request POST \
--url https://rest.carbon.ms/inspectionSample \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"inspectionId":"xyz789","status":"string","companyId":"xyz789"}'{
"id": "abc123def456",
"inspectionId": "xyz789",
"status": "string",
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z",
"createdBy": "string",
"trackedEntityId": "xyz789",
"notes": "string"
}/inspectionSampleUpdate a inspection sample
Update an existing inspection sample, matched on `id`.
Body parameters
inspectionIdstringrequiredReferences inspection.id
trackedEntityIdstringReferences trackedEntity.id
statusinspectionSampleStatusTyperequirednotesstringinspectedBystringReferences user.id
inspectedAttimestampcompanyIdstringrequiredReferences company.id
curl --request PATCH \
--url 'https://rest.carbon.ms/inspectionSample?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"inspectionId":"xyz789"}'{
"id": "abc123def456",
"inspectionId": "xyz789",
"status": "string",
"companyId": "xyz789",
"createdAt": "2026-01-01T00:00:00Z",
"createdBy": "string",
"trackedEntityId": "xyz789",
"notes": "string"
}/inspectionSampleDelete a inspection sample
Delete a inspection sample, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the inspection sample to delete, e.g. `eq.{id}`.
curl --request DELETE \
--url 'https://rest.carbon.ms/inspectionSample?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'