--- title: AttributeInput - Storefront API description: The input fields for an attribute. api_version: 2025-10 api_name: storefront type: input-object api_type: graphql source_url: html: https://shopify.dev/docs/api/storefront/latest/input-objects/AttributeInput md: https://shopify.dev/docs/api/storefront/latest/input-objects/AttributeInput.md --- # Attribute​Input input\_object The input fields for an attribute. ## Fields * key [String!](https://shopify.dev/docs/api/storefront/latest/scalars/String) non-null Key or name of the attribute. * value [String!](https://shopify.dev/docs/api/storefront/latest/scalars/String) non-null Value of the attribute. *** ## Input objects using this input * [Cart​Input.attributes](https://shopify.dev/docs/api/storefront/latest/input-objects/CartInput#fields-attributes) INPUT OBJECT The input fields to create a cart. * [Cart​Line​Input.attributes](https://shopify.dev/docs/api/storefront/latest/input-objects/CartLineInput#fields-attributes) INPUT OBJECT The input fields to create a merchandise line on a cart. * [Cart​Line​Update​Input.attributes](https://shopify.dev/docs/api/storefront/latest/input-objects/CartLineUpdateInput#fields-attributes) INPUT OBJECT The input fields to update a line item on a cart. *** ## Map ### Input objects using this input * [Cart​Input.attributes](https://shopify.dev/docs/api/storefront/latest/input-objects/CartInput#fields-attributes) * [Cart​Line​Input.attributes](https://shopify.dev/docs/api/storefront/latest/input-objects/CartLineInput#fields-attributes) * [Cart​Line​Update​Input.attributes](https://shopify.dev/docs/api/storefront/latest/input-objects/CartLineUpdateInput#fields-attributes)