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