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

Schema: Saleor 3.23.43Download SDLUpgrade guides

On this page

attributeCreate Mutation

Creates an attribute.

Triggers the following webhook events:

  • ATTRIBUTE_CREATED (async): An attribute was created.

Applied directives

@webhookEventsInfo(asyncEvents: [ATTRIBUTE_CREATED], syncEvents: [])
attributeCreate(input: AttributeCreateInput!): AttributeCreate

Returns

AttributeCreate

Show return type
type AttributeCreate {
  attribute: Attribute
  attributeErrors: [AttributeError!]! @deprecated(reason: "Use `errors` field instead.")
  errors: [AttributeError!]!
}

Arguments

input

input · AttributeCreateInput!

Fields required to create an attribute.


Schema: Saleor 3.23.43. Download SDL.

Last updated on April 13, 2026

Was this page helpful?