Anchor to fulfillmentConstraintRuleUpdatefulfillment
fulfillmentConstraintRuleUpdate
mutation
Requires access scope.
Update a fulfillment constraint rule.
Anchor to Arguments
Arguments
- Anchor to deliveryMethodTypesdelivery•
Method Types [DeliveryMethod requiredType!]! 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 returnsFulfillmentConstraintRuleUpdatePayload 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
mutation fulfillmentConstraintRuleUpdate($deliveryMethodTypes: [DeliveryMethodType!]!, $id: ID!) {
fulfillmentConstraintRuleUpdate(deliveryMethodTypes: $deliveryMethodTypes, id: $id) {
fulfillmentConstraintRule {
# FulfillmentConstraintRule fields
}
userErrors {
field
message
}
}
}
Input
{
"deliveryMethodTypes": [
"LOCAL"
],
"id": "gid://shopify/<objectName>/10079785100"
}
{
"deliveryMethodTypes": [
"LOCAL"
],
"id": "gid://shopify/<objectName>/10079785100"
}