Anchor to fulfillmentConstraintRuleUpdatefulfillment
fulfillment Constraint Rule Update
mutation
Requires access scope.
Update a fulfillment constraint rule.
Anchor to Arguments
Arguments
- Anchor to deliveryMethodTypesdelivery•
Method Types [DeliveryMethod Type!]!required Specifies the delivery method types to be updated. If not provided or providing an empty list will associate the function with all delivery methods.
- •ID!required
A globally-unique identifier for the fulfillment constraint rule.
Was this section helpful?
Anchor to FulfillmentConstraintRuleUpdatePayload returnsFulfillment Constraint Rule Update Payload returns
- Anchor to fulfillmentConstraintRulefulfillment•
Constraint Rule The updated fulfillment constraint rule.
- Anchor to userErrorsuser•
Errors The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
1mutation fulfillmentConstraintRuleUpdate($deliveryMethodTypes: [DeliveryMethodType!]!, $id: ID!) {2 fulfillmentConstraintRuleUpdate(deliveryMethodTypes: $deliveryMethodTypes, id: $id) {3 fulfillmentConstraintRule {4 # FulfillmentConstraintRule fields5 }6 userErrors {7 field8 message9 }10 }11}
Input
1{2 "deliveryMethodTypes": [3 "LOCAL"4 ],5 "id": "gid://shopify/<objectName>/10079785100"6}
{
"deliveryMethodTypes": [
"LOCAL"
],
"id": "gid://shopify/<objectName>/10079785100"
}