Release Production Schedule Week
Beta/v1/operations/production-schedules/{id}/actions/release-weekIdempotent with Idempotency-Key header. Learn more
Turns one planned week into a production run.
Each campaign in the week becomes one batch per planned lot, using the lot size the campaign was planned at. A 360-unit campaign at a 60-unit lot arrives on the floor as six batches, not one instruction to make 360; a quantity that is not a whole number of lots trails a single short lot at the end of the run.
The release is atomic. A run holding half a week's batches is worse than no run, because the missing half looks like work nobody was asked to do and attainment would count it as unplanned production.
Releasing the same week twice fails rather than creating a second run. Each released line records the run now carrying it, and a line that is already released is never re-pointed.
Lots an earlier week already issued are carried forward rather than reissued. When a week fell short, the next plan asks for the shortfall — and the batches covering it are usually already printed and sitting on the floor. Those tickets are moved into this run and counted against the campaign, so only the genuinely new work is created. carried_forward_batch_count says how many arrived that way, and each one names the run it came off. Send skip_carry_forward to issue the whole week new instead.
Cancelled campaigns and campaigns planned at zero are left behind rather than released. A week that would produce an implausible number of batches is rejected outright, since that is far more likely to be a misconfigured lot size than a real week's work.
idstringID of the production schedule.
week_indexintegerZero-based week offset from the start of the horizon.
responsible_user_idstringID of the account user accountable for executing the run.
Accepts either an account user ID or a user ID; it is resolved and stored as the account user.
scanning_station_idoptional stringID of the scanning station the batches will be scanned at.
Applied to every batch this release creates, across all machines in the week.
skip_carry_forwardoptional booleanIssue the whole week as new batches, leaving an earlier week's unworked lots where they are.
Off unless you ask for it: reprinting a ticket the floor is already holding is exactly what carrying work forward exists to prevent, so it takes a deliberate choice to do it.
objectstringenumValues:production_schedule_week_releaseResource type identifier.
production_runproduction_runnullableThe run now carrying the week's work.
idstringProduction run ID.
objectstringenumValues:production_runResource type identifier.
numberstringProduction run number, unique per account.
Assigned automatically at creation as the next sequential number for the account; can be changed via update.
Account user accountable for executing the run.
idstringAccount user ID.
objectstringenumValues:account_userResource type identifier.
statusstringenumValues:activedisabledremovedThe current state of this user's membership in the account.
active: the user can sign in to the account and occupies one of the plan's seats.disabled: the user is locked out of the account and their sessions have been revoked, but the membership is retained.removed: the membership has been soft-deleted; it is hidden from listings by default and can be restored with the activate action.
The role that determines what this user is permitted to do in the account.
idstringRole ID.
objectstringenumValues:roleResource type identifier.
namestringDisplay name of the role.
Unique within the account.
typestringenumValues:adminuserscannerThe kind of role.
The type gates behavior that individual permissions do not cover, and some actions are reserved for a single role type.
admin: full administrative access. Sensitive areas such as API keys, billing, and third-party integrations are restricted to admins no matter what permissions another role holds.user: a custom role tailored to a specific need, with its permissions defined explicitly. Roles created through the API always have this type.scanner: the role used by shop-floor scanning stations, assigned automatically when a scanning-station user is created.sales_rep: a role for sales representatives. Order analytics are scoped to the rep's own orders.agent: a role assigned to an automated agent rather than a person.
ownerownernullableProvenance of this role.
System-owned roles are platform-provided defaults shared across all accounts and cannot be updated or deleted; account-owned roles are custom to your account.
objectstringenumValues:ownerResource type identifier.
typestringenumValues:systemaccountWhere this resource came from.
system: a platform-provided default shared across all accounts; not editable.account: created and owned by a specific account; theaccountfield identifies which.
accountaccountnullableThe account that owns this resource.
Present only when type is account; system-owned resources have no owning account.
idstringAccount ID.
objectstringenumValues:accountResource type identifier.
namestringThe account's display name.
The address billed by default on orders for this account.
The address shipped to by default on orders for this account.
brandingaccount_brandingnullableCustomer-facing branding for the account, such as the logo, support contacts, and social links.
portalaccount_portalnullableThe account's customer portal settings, including the portal URL slug.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
permissionsarray of stringnullablePermissions granted by this role, in {permission}:{action} format, such as customers:read.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
The department this user belongs to within the account.
idstringDepartment ID.
objectstringenumValues:departmentResource type identifier.
namestringDisplay name of the department.
Unique within the account.
notesstringnullableFree-form notes about the department.
locationlocationnullableThe storage location where this department operates.
idstringLocation ID.
objectstringenumValues:locationResource type identifier.
namestringDisplay name of the location.
typeobjectThis location's level in the storage hierarchy.
The levels run from largest to smallest: building, section, aisle, rack, shelf, bin. They are descriptive labels rather than a rule — a location's parent is not required to be the next level up.
parentlocationnullableThe location directly above this one in the storage hierarchy.
Absent for top-level locations.
idstringLocation ID.
objectstringenumValues:locationResource type identifier.
namestringDisplay name of the location.
typeobjectThis location's level in the storage hierarchy.
The levels run from largest to smallest: building, section, aisle, rack, shelf, bin. They are descriptive labels rather than a rule — a location's parent is not required to be the next level up.
parentlocationnullableThe location directly above this one in the storage hierarchy.
Absent for top-level locations.
The locations directly below this one in the storage hierarchy.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last-updated timestamp.
The locations directly below this one in the storage hierarchy.
objectstringenumValues:listResource type identifier.
page_infoobjectPagination metadata.
dataarray of locationResources in this page.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last-updated timestamp.
Scanning stations in this department.
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 scanning_stationResources in this page.
idstringScanning station ID.
objectstringenumValues:scanning_stationResource type identifier.
namestringDisplay name of the scanning station.
Unique within the account.
notesstringnullableFree-form notes about the scanning station.
typestringenumValues:init_batchmerge_batchmove_batchScanning station type, determining which batch operation an operator performs when they scan here.
init_batch: starts a new batch at the beginning of a production flow.merge_batch: combines several scanned batches into one.move_batch: advances a batch through a production step connected to this station.split_batch: divides a batch into several batches.
Fixed when the station is created.
label_sizestringnullableenumValues:1x11x31x4Size of the labels printed at this station, given as width-by-height (for example, 1x1).
label_typestringnullableenumValues:tagtravelerType of label printed at this station.
tag: a label attached to the physical product.traveler: a routing sheet that accompanies the batch through every production step.
operator_requirementstringenumValues:nonematerial_checkWhether operators must perform a material check at this station.
none: no additional operator check is required.material_check: a material check is expected before the operation.
The department this scanning station belongs to.
Assigned when the station is created and cannot be reassigned afterward.
Production steps connected to this station.
A production step can be connected to at most one scanning station, so connecting a step here disconnects it from any other station. Manage the connections with Connect Production Steps to Scanning Station.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
Machines in this department.
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 machineResources in this page.
idstringMachine ID.
objectstringenumValues:machineResource type identifier.
namestringDisplay name of the machine.
Unique within the account.
serial_numberstringSerial number of the machine.
notesstringnullableFree-form notes about the machine.
The department this machine belongs to.
Set when the machine is created; a machine cannot be moved to another department afterwards.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
labor_rateratenullableHourly labor rate for work done in this department, such as a changeover technician.
Production scheduling costs changeovers with the constraint department's rate when one is set, falling back to the account-wide changeover labor rate setting.
idstringRate ID.
objectstringenumValues:rateResource type identifier.
valuestring (decimal)Decimal value of the rate, as a string to preserve precision.
Expressed as the amount of the numerator unit per one denominator unit.
Unit of the rate's numerator (e.g. the currency of a price).
idstringUnit ID.
objectstringenumValues:unitResource type identifier.
namestringDisplay name of the unit (e.g. "Gram", "Kilogram").
abbreviationstringShort abbreviation for the unit (e.g. "g", "kg").
typestringenumValues:currencyquantitytimeThe dimension this unit measures, such as mass, volume, or currency.
A unit can only be converted to another unit of the same dimension. The quantity dimension is for discrete countable items rather than a physical measure.
ratio_numeratorstring (decimal)Numerator of the ratio that converts a quantity in this unit into the dimension's base unit.
A quantity is converted with value × (ratio_numerator / ratio_denominator) + (offset_numerator / offset_denominator), so a kilogram in a gram-based dimension has a numerator of 1000 and a denominator of 1.
ratio_denominatorstring (decimal)Denominator of the ratio that converts a quantity in this unit into the dimension's base unit.
Cannot be zero.
offset_numeratorstring (decimal)Numerator of the conversion offset, applied after the ratio for scales that do not share a zero point, such as temperature.
Zero for units that convert by ratio alone.
offset_denominatorstring (decimal)Denominator of the conversion offset applied after the ratio.
Never zero; a unit with no offset carries a numerator of 0 over a denominator of 1.
is_base_unitbooleanWhether this is the base unit for its dimension.
Every other unit's conversion ratio is expressed relative to the base unit. Base units are platform-defined; units created through the API are never base units.
ownerownernullableOwner of this resource.
created_atstring (date-time)When this unit was created.
updated_atstring (date-time)When this unit was last updated.
Unit of the rate's denominator (the per-unit basis, e.g. kilograms for a price per kilogram).
idstringUnit ID.
objectstringenumValues:unitResource type identifier.
namestringDisplay name of the unit (e.g. "Gram", "Kilogram").
abbreviationstringShort abbreviation for the unit (e.g. "g", "kg").
typestringenumValues:currencyquantitytimeThe dimension this unit measures, such as mass, volume, or currency.
A unit can only be converted to another unit of the same dimension. The quantity dimension is for discrete countable items rather than a physical measure.
ratio_numeratorstring (decimal)Numerator of the ratio that converts a quantity in this unit into the dimension's base unit.
A quantity is converted with value × (ratio_numerator / ratio_denominator) + (offset_numerator / offset_denominator), so a kilogram in a gram-based dimension has a numerator of 1000 and a denominator of 1.
ratio_denominatorstring (decimal)Denominator of the ratio that converts a quantity in this unit into the dimension's base unit.
Cannot be zero.
offset_numeratorstring (decimal)Numerator of the conversion offset, applied after the ratio for scales that do not share a zero point, such as temperature.
Zero for units that convert by ratio alone.
offset_denominatorstring (decimal)Denominator of the conversion offset applied after the ratio.
Never zero; a unit with no offset carries a numerator of 0 over a denominator of 1.
is_base_unitbooleanWhether this is the base unit for its dimension.
Every other unit's conversion ratio is expressed relative to the base unit. Base units are platform-defined; units created through the API are never base units.
ownerownernullableOwner of this resource.
created_atstring (date-time)When this unit was created.
updated_atstring (date-time)When this unit was last updated.
display_valuestringHuman-readable formatted value (e.g. "$25.50 / kg" or "100 kg / hr").
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last update timestamp.
userusernullableThe underlying user profile, shared across every account this person belongs to.
idstringUser ID.
objectstringenumValues:userResource type identifier.
emailstringnullableEmail address the user signs in with and receives platform email at.
namestringnullableUser's full display name.
usernamestringnullableUsername the user can sign in with instead of their email address.
Usernames are unique across the whole platform, not just within your account.
email_verified_atstring (date-time)nullableWhen the user verified their email address.
image_urlstringnullableLocation of the user's profile image.
For photos uploaded through the API this holds an internal path rather than a fetchable image URL; call Get User Photo URL to obtain a temporary link to the image itself.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
is_commission_eligiblebooleanWhether this user can be assigned as a sales representative on orders, territories, and targets.
Independent of the sales_rep role type, which still scopes analytics and hides cost. Users with the sales_rep role are always eligible.
last_used_atstring (date-time)nullableWhen the user last accessed this account.
created_atstring (date-time)When the account user was created.
updated_atstring (date-time)When the account user was last updated.
batch_countintegerNumber of batches currently recorded against this run.
started_atstring (date-time)nullableTime the run started production.
Set automatically the first time a batch in the run is scanned at a station.
completed_atstring (date-time)nullableTime the run finished production.
Set automatically once every batch in the run has been scanned or deleted. From that point the run can no longer be updated and no further batches can be added to it.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last-updated timestamp.
week_indexintegerZero-based week offset from the start of the horizon.
week_starts_atstring (date-time)First instant of the released week.
released_line_countintegerHow many campaigns were released.
batch_countintegerHow many batches the run holds across all campaigns, created and carried forward together.
carried_forward_batch_countintegerHow many of batch_count were moved off an earlier run rather than created.
Tickets for these are already printed and on the floor.
total_quantitynumberTotal units released.
The campaigns 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.
Responses
Successful response for Release Production Schedule Week