Upsert Production Schedule Resource Setting
Beta/v1/operations/production-schedule-settings/resourcesThis endpoint is idempotent. Learn more
Writes a planning override for one machine, department or production step.
A resource has at most one override, so this replaces the existing entry for the same scope rather than adding a second, and the entry keeps the ID it already had. Machines are chosen by naming the constraint department, so this is where one is taken out of planning — a machine down for a rebuild — and where a production step declares how many weeks its work starts after the step that feeds it.
Overrides are read when a plan is generated, so a change takes effect on the next generated version and leaves existing ones untouched.
scope_typestringenumValues:machinedepartmentproduction_stepWhat kind of resource this override applies to.
Together with the resource ID it identifies the override, so writing the same pair again updates the existing entry in place and keeps its ID.
scope_ref_idstringID of the machine, department or production step being overridden, matching the scope type.
participation_statusstringenumValues:includedexcludedWhether this resource takes part in planning.
Machines are chosen by naming the constraint department, so this is how one is taken out — a machine down for a rebuild — rather than how one is opted in.
lead_time_weeksoptional numberWeeks of lead time at this resource.
lead_time_offset_weeksnumberHow many weeks after the step feeding it this resource's work starts.
Read when downstream department work is derived from the constraint plan, so it is the production-step override that shifts a plan: without an offset every step lands in the same week as the step feeding it, and the offsets along a chain of steps add up. A schedule is planned in whole weeks, so a fractional offset is truncated.
idstringResource setting ID.
objectstringenumValues:production_schedule_resource_settingResource type identifier.
scope_typestringenumValues:machinedepartmentproduction_stepWhat kind of resource this override applies to.
scopeentitynullableThe machine, department or production step this overrides.
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).
participation_statusstringenumValues:includedexcludedWhether this resource takes part in planning.
Machines are chosen by naming the constraint department, so an override is how one is taken out — a machine down for a rebuild — rather than how one is opted in. A machine with no override is planned.
lead_time_weeksnumbernullableWeeks of lead time at this resource.
lead_time_offset_weeksnumberHow many weeks after the step feeding it this resource's work starts.
Read when downstream department work is derived from the constraint plan, so it is the production-step override that shifts a plan: without an offset every step lands in the same week as the step feeding it, and the offsets along a chain of steps add up. A schedule is planned in whole weeks, so a fractional offset is truncated.
Responses
Successful response for Upsert Production Schedule Resource Setting