Admin API / Types

UpdateShippingProfileInput

Input

The shipping profile to change. An omitted or null field keeps its value.

input UpdateShippingProfileInput

Input fields

FieldTypeDescription
expectedSettings[ShippingSettingInput!]The settings that the caller read in ShippingProfile.settings, in any order. Each setting is compared on its country, its type and the fields that the type takes. When the stored settings differ, the call returns ShippingProfileSettingsChangedError and writes nothing. With it, a name-only change also fails with error code SHIPPING_PROFILE_CHANGED when another change to the profile saves twice before the write. Omitted or null: no check.
nameNonEmptyStringThe new name, stored without leading and trailing white space.
originShippingOriginInputThe new ship-from. Refused with VALIDATION_ERROR when no setting is CALCULATED after the change.
parcelParcelInputThe new parcel. Refused with VALIDATION_ERROR when no setting is CALCULATED after the change.
settings[ShippingSettingInput!]Replaces every setting, with the rules of CreateShippingProfileInput.settings. A CALCULATED setting uses the sent origin and parcel, else the stored ones. With neither, the call fails with VALIDATION_ERROR.
shippingProfileIdID!The profile to change.