Preview Production Schedule Week Release
Beta/v1/operations/production-schedules/{id}/week-release-previewThis endpoint is idempotent. Learn more
Returns what releasing a week would create, without creating it.
The lots are resolved exactly as the release itself resolves them, so what a planner is shown and what the floor receives cannot drift apart.
is_releasable is false when the week is empty or already released, with blocked_reason saying which; existing_production_run_id names the run a released week is already tied to.
Cancelled campaigns and campaigns planned at zero are excluded here exactly as the release excludes them, so a week holding nothing but those previews as empty.
Lots the floor is already holding are named as such. A batch with carried_forward_from set is a ticket an earlier week issued and nobody worked, which the release moves into the new run rather than reissuing, so nothing has to be reprinted.
idstringID of the production schedule.
week_indexoptional integerZero-based week offset from the start of the horizon.
skip_carry_forwardoptional booleanPreview the week as if every batch were newly issued.
By default the preview counts tickets an earlier week issued and the floor never worked against this week's campaigns, because that is what releasing would do.
objectstringenumValues:production_schedule_week_release_previewResource type identifier.
week_indexintegerZero-based week offset from the start of the horizon.
week_starts_atstring (date-time)First instant of the week.
line_countintegerHow many campaigns would be released.
batch_countintegerHow many batches the run would hold, created and carried forward together.
carried_forward_batch_countintegerHow many of batch_count would be moved off an earlier run rather than created.
total_quantitynumberTotal units that would be released.
The campaigns that would be released, each with its lots.
objectstringenumValues:listResource type identifier.
page_infoobjectPagination metadata.
next_page_urlstringnullableRelative URL that fetches the next page of results.
previous_page_urlstringnullableRelative URL that fetches the previous page of results.
has_next_pagebooleanWhether more results exist after this page.
has_prev_pagebooleanWhether results exist before this page.
dataarray of objectResources in this page.
lineentitynullableThe schedule line released.
idstringUnique identifier for the entity.
objectstringenumValues:entityResource type identifier.
typestringenumValues:accountactorentityThe resource kind that this entity references, as an object-type value (e.g. user, account).
Unlike object — which is always entity — this names the underlying resource the id points to.
namestringnullableHuman-readable display name for the entity (e.g. a user's full name, a sales order number).
handlestringnullableSecondary human-readable identifier (e.g. email address, username, redacted API key value).
itementitynullableThe item to produce.
idstringUnique identifier for the entity.
objectstringenumValues:entityResource type identifier.
typestringenumValues:accountactorentityThe resource kind that this entity references, as an object-type value (e.g. user, account).
Unlike object — which is always entity — this names the underlying resource the id points to.
namestringnullableHuman-readable display name for the entity (e.g. a user's full name, a sales order number).
handlestringnullableSecondary human-readable identifier (e.g. email address, username, redacted API key value).
skustringThe item's SKU, as it stood when the plan was generated.
machineentitynullableThe machine the campaign runs on.
idstringUnique identifier for the entity.
objectstringenumValues:entityResource type identifier.
typestringenumValues:accountactorentityThe resource kind that this entity references, as an object-type value (e.g. user, account).
Unlike object — which is always entity — this names the underlying resource the id points to.
namestringnullableHuman-readable display name for the entity (e.g. a user's full name, a sales order number).
handlestringnullableSecondary human-readable identifier (e.g. email address, username, redacted API key value).
planned_quantitynumberTotal units planned for the campaign.
lot_unitsnumberUnits in one lot.
unitstringnullableAbbreviation of the unit the quantity and the lot are counted in.
6 × 60 is not an instruction until it says 6 × 60 of what.
batch_countintegerHow many batches the campaign broke into.
carried_forward_quantitynumberHow much of planned_quantity is covered by tickets an earlier week already issued.
The individual lots, carried-forward tickets first and then the new ones, in run order.
objectstringenumValues:listResource type identifier.
page_infoobjectPagination metadata.
next_page_urlstringnullableRelative URL that fetches the next page of results.
previous_page_urlstringnullableRelative URL that fetches the previous page of results.
has_next_pagebooleanWhether more results exist after this page.
has_prev_pagebooleanWhether results exist before this page.
dataarray of objectResources in this page.
itementitynullableThe item the batch produces.
idstringUnique identifier for the entity.
objectstringenumValues:entityResource type identifier.
typestringenumValues:accountactorentityThe resource kind that this entity references, as an object-type value (e.g. user, account).
Unlike object — which is always entity — this names the underlying resource the id points to.
namestringnullableHuman-readable display name for the entity (e.g. a user's full name, a sales order number).
handlestringnullableSecondary human-readable identifier (e.g. email address, username, redacted API key value).
skustringThe item's SKU, as it stood when the plan was generated.
quantitynumberUnits in this lot.
The last lot of a campaign is short when the planned quantity is not a whole number of lots.
batchentitynullableThe batch this lot was created as.
A preview names a batch only when the lot is one that already exists and is being moved.
idstringUnique identifier for the entity.
objectstringenumValues:entityResource type identifier.
typestringenumValues:accountactorentityThe resource kind that this entity references, as an object-type value (e.g. user, account).
Unlike object — which is always entity — this names the underlying resource the id points to.
namestringnullableHuman-readable display name for the entity (e.g. a user's full name, a sales order number).
handlestringnullableSecondary human-readable identifier (e.g. email address, username, redacted API key value).
carried_forward_fromstringnullableThe number of the run this ticket came off, when the batch already existed.
Present on a lot carried forward from an earlier week that the floor never worked. The ticket is already printed and on the floor, so the release moves it into the new run rather than issuing a replacement.
is_releasablebooleanWhether the week can be released.
blocked_reasonstringnullableWhy the week cannot be released, phrased for display.
A week is blocked when it has already been released to the floor, or when it holds nothing to release.
existing_production_runentitynullableThe run the week was already released as.
idstringUnique identifier for the entity.
objectstringenumValues:entityResource type identifier.
typestringenumValues:accountactorentityThe resource kind that this entity references, as an object-type value (e.g. user, account).
Unlike object — which is always entity — this names the underlying resource the id points to.
namestringnullableHuman-readable display name for the entity (e.g. a user's full name, a sales order number).
handlestringnullableSecondary human-readable identifier (e.g. email address, username, redacted API key value).
Responses
Successful response for Preview Production Schedule Week Release