Capacity Reservation
The capacity reservation resource.
/capacityReservationList capacity reservations
Retrieve a paginated list of capacity reservations. 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/capacityReservation?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'[
{
"id": "abc123def456",
"companyId": "xyz789",
"resourceKind": "string",
"resourceId": "xyz789",
"operationId": "xyz789",
"jobId": "xyz789",
"startAt": "2026-01-01T00:00:00Z",
"endAt": "2026-01-01T00:00:00Z"
}
]/capacityReservationRetrieve a capacity reservation
Fetch a single capacity reservation by filtering on `id`.
Query parameters
idstringMatch on the capacity reservation's `id`, e.g. `eq.{id}`.
curl --request GET \
--url 'https://rest.carbon.ms/capacityReservation?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'{
"id": "abc123def456",
"companyId": "xyz789",
"resourceKind": "string",
"resourceId": "xyz789",
"operationId": "xyz789",
"jobId": "xyz789",
"startAt": "2026-01-01T00:00:00Z",
"endAt": "2026-01-01T00:00:00Z"
}/capacityReservationCreate a capacity reservation
Create a new capacity reservation.
Body parameters
resourceKindcapacityResourceKindrequiredresourceIdstringrequiredoperationIdstringrequiredReferences jobOperation.id
jobIdstringrequiredReferences job.id
startAttimestamprequiredendAttimestamprequiredscenarioIdstringearliestStartAttimestampWhen the operation could have started at the earliest; startAt - earliestStartAt is time spent waiting. Null when unknown (legacy rows).
scheduleNotestringHuman-readable reason for the placement timing (English, engine-generated), e.g. "Waited 14h for the work center - queued behind J000010 (2 ops)". Null when the operation started as early as it could.
workHoursnumberActual work content (hours) inside this reservation; endAt - startAt minus off-shift pauses. Null on legacy rows and manual pins.
isPlaceholderbooleanrequiredtrue = a non-binding placeholder for an operation the scheduler could not place. Shown on the Forecast (flagged) but excluded from capacity so it never blocks other jobs.
curl --request POST \
--url https://rest.carbon.ms/capacityReservation \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"resourceKind":"string","resourceId":"xyz789","operationId":"xyz789","jobId":"xyz789","startAt":"2026-01-01T00:00:00Z","endAt":"2026-01-01T00:00:00Z","isPlaceholder":true}'{
"id": "abc123def456",
"companyId": "xyz789",
"resourceKind": "string",
"resourceId": "xyz789",
"operationId": "xyz789",
"jobId": "xyz789",
"startAt": "2026-01-01T00:00:00Z",
"endAt": "2026-01-01T00:00:00Z"
}/capacityReservationUpdate a capacity reservation
Update an existing capacity reservation, matched on `id`.
Body parameters
resourceKindcapacityResourceKindrequiredresourceIdstringrequiredoperationIdstringrequiredReferences jobOperation.id
jobIdstringrequiredReferences job.id
startAttimestamprequiredendAttimestamprequiredscenarioIdstringearliestStartAttimestampWhen the operation could have started at the earliest; startAt - earliestStartAt is time spent waiting. Null when unknown (legacy rows).
scheduleNotestringHuman-readable reason for the placement timing (English, engine-generated), e.g. "Waited 14h for the work center - queued behind J000010 (2 ops)". Null when the operation started as early as it could.
workHoursnumberActual work content (hours) inside this reservation; endAt - startAt minus off-shift pauses. Null on legacy rows and manual pins.
isPlaceholderbooleanrequiredtrue = a non-binding placeholder for an operation the scheduler could not place. Shown on the Forecast (flagged) but excluded from capacity so it never blocks other jobs.
curl --request PATCH \
--url 'https://rest.carbon.ms/capacityReservation?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"resourceKind":"string"}'{
"id": "abc123def456",
"companyId": "xyz789",
"resourceKind": "string",
"resourceId": "xyz789",
"operationId": "xyz789",
"jobId": "xyz789",
"startAt": "2026-01-01T00:00:00Z",
"endAt": "2026-01-01T00:00:00Z"
}/capacityReservationDelete a capacity reservation
Delete a capacity reservation, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the capacity reservation to delete, e.g. `eq.{id}`.
curl --request DELETE \
--url 'https://rest.carbon.ms/capacityReservation?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'