fulfillmentConstraintRuleCreate - admin-graphql - MUTATION
Version: 2025-01
Description:
Creates a fulfillment constraint rule and its metafield.
Access Scopes
`write_fulfillment_constraint_rules` access scope.
Arguments
-
deliveryMethodTypes:
DeliveryMethodType! -
Associate the function with one or multiple delivery method types.
-
functionId:
String! -
The identifier of the function providing the constraint rule.
-
metafields:
MetafieldInput -
Metafields to associate to the fulfillment constraint rule.
Returns
-
fulfillmentConstraintRule:
FulfillmentConstraintRule
The newly created fulfillment constraint rule.
-
userErrors:
FulfillmentConstraintRuleCreateUserError!
The list of errors that occurred from executing the mutation.
Examples