Update Demand Override
Beta/v1/operations/demand-overrides/{id}Idempotent with Idempotency-Key header. Learn more
Updates a demand override.
The type and value are validated as a pair against the resulting override, so switching an existing units adjustment to delta_percent is checked as a percent even when only the type is sent.
idstringID of the demand override.
include[]optional arrayenumValues:scopeSub-objects to expand in the response. When omitted, sub-objects are returned as null.
period_starts_atoptional string (date-time)First day of the demand period the override applies to.
period_ends_atoptional string (date-time)Last day of the demand period the override applies to.
adjustmentoptional stringenumValues:absolutedelta_unitsdelta_percentHow the value adjusts the forecast.
valueoptional numberThe adjustment, interpreted according to adjustment.
unit_idoptional stringnullableID of the unit the value is expressed in. Send null to clear.
reasonoptional stringnullableenumValues:new_customerlost_accountpromotionWhy the adjustment was made. Send null to clear.
noteoptional stringnullableFree-form notes about the adjustment. Send null to clear.
expires_atoptional string (date-time)nullableWhen the override stops being applied to solves. Clear it to make the override permanent. Send null to clear.
activeoptional booleanWhether the override is applied to solves at all.
idstringDemand override ID.
objectstringenumValues:demand_overrideResource type identifier.
scope_typestringenumValues:itemproduct_lineaccountWhat kind of resource the override targets. Mirrors scope.type, which is only present when the scope is expanded.
scopeentityExpandablenullableThe item or product line the override targets. Expandable. Null for an account-wide override, which targets everything.
This is a single reference rather than one field per scope because a given override targets exactly one of them; scope.type names which.
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).
period_starts_atstring (date-time)First day of the demand period the override applies to.
period_ends_atstring (date-time)Last day of the demand period the override applies to.
adjustmentstringenumValues:absolutedelta_unitsdelta_percentHow the value adjusts the forecast.
valuenumberThe adjustment, interpreted according to adjustment.
The unit the value is expressed in. Expandable.
reasonstringnullableenumValues:new_customerlost_accountpromotionWhy the adjustment was made.
notestringnullableFree-form notes about the adjustment.
created_byactornullableThe actor that created the override. This may be a user, an API key, or an agent. Expandable.
effective_atstring (date-time)When the override starts being applied to solves.
expires_atstring (date-time)nullableWhen the override stops being applied to solves.
statusstringenumValues:activeinactiveWhether the override is applied to solves at all.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
Responses
Successful response for Update Demand Override