--- title: AttributeInput - Storefront API description: The input fields for an attribute. api_version: 2024-10 api_name: storefront type: input_object api_type: graphql source_url: html: 'https://shopify.dev/docs/api/storefront/2024-10/input-objects/AttributeInput' md: >- https://shopify.dev/docs/api/storefront/2024-10/input-objects/AttributeInput.txt --- # Attribute​Input input\_object The input fields for an attribute. ## Fields * key [String!](https://shopify.dev/docs/api/storefront/2024-10/scalars/String) non-null Key or name of the attribute. * value [String!](https://shopify.dev/docs/api/storefront/2024-10/scalars/String) non-null Value of the attribute. *** ## Mutations using this input * [cart​Attributes​Update.​attributes](https://shopify.dev/docs/api/storefront/2024-10/mutations/cartAttributesUpdate#argument-attributes) MUTATION *** ## Input objects using this input * [Cart​Input.​attributes](https://shopify.dev/docs/api/storefront/2024-10/input-objects/CartInput#field-attributes) INPUT OBJECT The input fields to create a cart. * [Cart​Line​Input.​attributes](https://shopify.dev/docs/api/storefront/2024-10/input-objects/CartLineInput#field-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/2024-10/input-objects/CartLineUpdateInput#field-attributes) INPUT OBJECT The input fields to update a line item on a cart. *** ## Map ### Mutations using this input * <\~>[cart​Attributes​Update.attributes](https://shopify.dev/docs/api/storefront/2024-10/mutations/cartAttributesUpdate#argument-attributes) ### Input objects using this input * [Cart​Input.attributes](https://shopify.dev/docs/api/storefront/2024-10/input-objects/CartInput#field-attributes) * [Cart​Line​Input.attributes](https://shopify.dev/docs/api/storefront/2024-10/input-objects/CartLineInput#field-attributes) * [Cart​Line​Update​Input.attributes](https://shopify.dev/docs/api/storefront/2024-10/input-objects/CartLineUpdateInput#field-attributes)