# fulfillmentConstraintRuleCreate - admin - MUTATION
Version: 2025-01

## Description
Creates a fulfillment constraint rule and its metafield.

### Access Scopes
`write_fulfillment_constraint_rules` access scope.


## Arguments
* [deliveryMethodTypes](/docs/api/admin/2025-01/enums/DeliveryMethodType): DeliveryMethodType! - Associate the function with one or multiple delivery method types.
* [functionId](/docs/api/admin/2025-01/scalars/String): String! - The identifier of the function providing the constraint rule.
* [metafields](/docs/api/admin/2025-01/input-objects/MetafieldInput): MetafieldInput - Metafields to associate to the fulfillment constraint rule.


## Returns
* [fulfillmentConstraintRule](/docs/api/admin/2025-01/objects/FulfillmentConstraintRule): FulfillmentConstraintRule The newly created fulfillment constraint rule.
* [userErrors](/docs/api/admin/2025-01/objects/FulfillmentConstraintRuleCreateUserError): FulfillmentConstraintRuleCreateUserError! The list of errors that occurred from executing the mutation.


## Examples