Skip to content
Saleor
Esc
↑↓navigate↵open⌘Jpreview

Schema: Saleor 3.23.43Download SDLUpgrade guides

On this page

AttributeValueInput Input Type

input AttributeValueInput {
  id: ID
  externalReference: String
  values: [String!] @deprecated
  dropdown: AttributeValueSelectableTypeInput
  swatch: AttributeValueSelectableTypeInput
  multiselect: [AttributeValueSelectableTypeInput!]
  numeric: String
  file: String
  contentType: String
  reference: ID
  references: [ID!]
  richText: JSONString
  plainText: String
  boolean: Boolean
  date: Date
  dateTime: DateTime
}

Fields

id

id · ID

ID of the selected attribute.

externalReference

externalReference · String

External ID of this attribute.

values

values · [String!]

The value or slug of an attribute to resolve. If the passed value is non-existent, it will be created.

dropdown · AttributeValueSelectableTypeInput

Attribute value ID or external reference.

swatch

swatch · AttributeValueSelectableTypeInput

Attribute value ID or external reference.

multiselect

multiselect · [AttributeValueSelectableTypeInput!]

List of attribute value IDs or external references.

numeric

numeric · String

Numeric value of an attribute.

file

file · String

URL of the file attribute. Every time, a new value is created.

contentType

contentType · String

File content type.

reference

reference · ID

ID of the referenced entity for single reference attribute.

Added in Saleor 3.22

references

references · [ID!]

List of entity IDs that will be used as references.

richText

richText · JSONString

Text content in JSON format.

plainText

plainText · String

Plain text content.

boolean

boolean · Boolean

Represents the boolean value of the attribute value.

date

date · Date

Represents the date value of the attribute value.

dateTime

dateTime · DateTime

Represents the date/time value of the attribute value.

Used by


Schema: Saleor 3.23.43. Download SDL.

Last updated on August 10, 2026

Was this page helpful?