Create Product Attribute
Create Product Attribute
Creates a new product attribute (like Material, Brand, etc.) that can be used to describe product characteristics.
Usage​
This mutation must be called before creating a product that uses this attribute. The attribute ID returned should be used when creating attribute values and assigning them to products.
Required Fields​
name: The display name of the attribute (e.g., "Material", "Brand")locale: The locale for the attribute namestoreId: The store ID where this attribute will be created
Optional Fields​
type: The type of attribute (TEXT, IMAGE, etc.) - defaults to TEXT if not specified
Example Response​
The mutation returns the created attribute with its ID, which should be used when creating attribute values.
GraphQL Endpoint​
https://graphql.wuilt.com
Operation: CreateProductAttribute​
Try It Out​
Query​
Query Variables
1
2
3
4
5
6
7
8
Note: Make sure to change the storeId with your store ID. For guidance on how to get your store ID, reference the Store ID guide.
Authentication​
To use this query, you will need an API key. Click the "API Key" button in the navigation bar to enter your credentials.