# fulfillmentConstraintRuleCreate - admin-graphql - MUTATION Version: 2024-10 ## Description Creates a fulfillment constraint rule and its metafield. ### Access Scopes `write_fulfillment_constraint_rules` access scope. ## Arguments * [deliveryMethodTypes](/docs/api/admin-graphql/2024-10/enums/DeliveryMethodType): DeliveryMethodType! - Associate the function with one or multiple delivery method types. * [functionId](/docs/api/admin-graphql/2024-10/scalars/String): String! - The identifier of the function providing the constraint rule. * [metafields](/docs/api/admin-graphql/2024-10/input-objects/MetafieldInput): MetafieldInput - Metafields to associate to the fulfillment constraint rule. ## Returns * [fulfillmentConstraintRule](/docs/api/admin-graphql/2024-10/objects/FulfillmentConstraintRule): FulfillmentConstraintRule The newly created fulfillment constraint rule. * [userErrors](/docs/api/admin-graphql/2024-10/objects/FulfillmentConstraintRuleCreateUserError): FulfillmentConstraintRuleCreateUserError! The list of errors that occurred from executing the mutation. ## Examples