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
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.