Admin API / Types
UpdateShippingProfileInput
InputThe shipping profile to change. An omitted or null field keeps its value.
input UpdateShippingProfileInputInput fields
| Field | Type | Description |
|---|---|---|
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. |
name | NonEmptyString | The new name, stored without leading and trailing white space. |
origin | ShippingOriginInput | The new ship-from. Refused with VALIDATION_ERROR when no setting is CALCULATED after the change. |
parcel | ParcelInput | The 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. |
shippingProfileId | ID! | The profile to change. |