AttributeValueInput
Represents an attribute value for product/collection custom fields.
input AttributeValueInput {
id: ID
values: [String!]
file: Upload
fileUrl: String
references: [ID!]
richText: String
boolean: Boolean
date: String
dateTime: DateTime
amount: Decimal
currency: String
plainText: String
reference: String
value: String
}
Fields
AttributeValueInput.id ● ID scalar
The ID of the attribute.
AttributeValueInput.values ● [String!] list scalar
The value or slug of an attribute to resolve. Legacy catch-all: DROPDOWN and MULTISELECT use it as their primary field, and DATE still accepts a 'YYYY-MM-DD' string here. Prefer the per-type field where one exists.
AttributeValueInput.file ● Upload scalar
File for FILE attribute type.
AttributeValueInput.fileUrl ● String scalar
URL of a file attribute type.
AttributeValueInput.references ● [ID!] list scalar
Not supported yet — supply a single entity ID via reference instead. Declared for forward compatibility only; see #6190.
AttributeValueInput.richText ● String scalar
Rich text value for RICH_TEXT attribute type.
AttributeValueInput.boolean ● Boolean scalar
Boolean value for BOOLEAN attribute type.
AttributeValueInput.date ● String scalar
Date value for DATE attribute type (YYYY-MM-DD format). Preferred over passing the same string in values, which remains supported for existing callers. Interpreted as midnight in the marketplace timezone.
AttributeValueInput.dateTime ● DateTime scalar
Datetime value for DATE_TIME attribute type.
AttributeValueInput.amount ● Decimal scalar
Amount value for MONEY attribute type.
AttributeValueInput.currency ● String scalar
Currency code for MONEY attribute type.
AttributeValueInput.plainText ● String scalar
Plain text value for PLAIN_TEXT attribute type.
AttributeValueInput.reference ● String scalar
Reference ID for REFERENCE attribute type.
AttributeValueInput.value ● String scalar
Value representation of the attribute value — this is the field SWATCH attributes read, as a hex colour such as '#FF0000' or '#F00'. Not interchangeable with values.
Member Of
CategoryInput input ● CollectionCreateInput input ● CollectionInput input ● CustomerInput input ● OrderFulfillInput input ● ProductBulkCreateInput input ● ProductCreateInput input ● ProductInput input ● ProductVariantBulkCreateInput input ● ProductVariantCreateInput input ● ProductVariantInput input ● StaffCreateInput input ● StaffUpdateInput input ● UserCreateInput input