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.
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.
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:activedisabledremovedAccount user status.
active: the user can access the account.disabled: the user is locked out of the account.removed: the user has been removed (soft-deleted) from the account.
Assigned role.
idstringRole ID.
objectstringenumValues:roleResource type identifier.
namestringDisplay name, unique within the account.
typestringenumValues:adminuserscannerThe kind of role.
The role's type is sometimes used to gate special behaviors and to restrict some actions to only certain types of roles. For example, only roles with the type admin can create and manage API keys.
admin: full administrative access, including managing API keys.user: a custom role tailored to a specific need (its permissions are defined explicitly). Roles created through the API always have this type.scanner: a role for scanning-station operators.sales_rep: a role for sales representatives.agent: a role assigned to an automated agent rather than a person.
ownerownernullableProvenance of this role.
System-owned roles are global defaults shared across all accounts and cannot be modified or deleted; account-owned roles are custom roles created by that 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.
Default billing address.
Default shipping address.
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 {domain}:{action} format, such as customers:read.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
departmentdepartmentnullableAssigned department.
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.
typeobjectLocation type code, identifying this location's level in the storage hierarchy.
building: a building-level location.section: a section within a building.aisle: an aisle within a section.rack: a rack within an aisle.shelf: a shelf within a rack.bin: a bin within a shelf.
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.
typeobjectLocation type code, identifying this location's level in the storage hierarchy.
building: a building-level location.section: a section within a building.aisle: an aisle within a section.rack: a rack within an aisle.shelf: a shelf within a rack.bin: a bin within a shelf.
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.
null when the last page has been reached.
previous_page_urlstringnullableRelative URL that fetches the previous page of results.
null while on the first page.
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 the station performs.
init_batch: initializes a new batch.merge_batch: merges multiple batches into one.move_batch: moves a batch to another location or step.split_batch: splits a batch into multiple batches.
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.
departmentdepartmentnullableThe department this scanning station belongs to.
Production steps connected to this station.
A production step can be connected to at most one 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.
null when the last page has been reached.
previous_page_urlstringnullableRelative URL that fetches the previous page of results.
null while on the first page.
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.
departmentdepartmentnullableThe department this machine belongs to.
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.
userusernullableUnderlying user.
idstringUser ID.
objectstringenumValues:userResource type identifier.
emailstringnullableEmail address.
namestringnullableUser's full display name.
usernamestringnullableUsername.
email_verified_atstring (date-time)nullableWhen the user verified their email address.
image_urlstringnullableURL of the user's profile image.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
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 when the first batch in the run is scanned, and unset until then.
completed_atstring (date-time)nullableTime the run was marked complete.
Set automatically once every batch in the run has been scanned or deleted, and unset while the run is still in progress. Once set, the run can no longer be updated and new batches can no longer be added.
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 were created across all campaigns.
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.
null when the last page has been reached.
previous_page_urlstringnullableRelative URL that fetches the previous page of results.
null while on the first page.
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.
The individual lots, in run order.
objectstringenumValues:listResource type identifier.
page_infoobjectPagination metadata.
next_page_urlstringnullableRelative URL that fetches the next page of results.
null when the last page has been reached.
previous_page_urlstringnullableRelative URL that fetches the previous page of results.
null while on the first page.
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 that was created. Null on a preview, where nothing has been written.
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 Release Production Schedule Week