Create an attribute definition
Create an attribute, including full AI-generation config. For an AI-generated attribute set aiGenerated: true + customInstructions, and selectedTools: includeWebSearch (live web research as a data source), includeDataSources (scraped sites/CSVs), includeImages (vision), includeProductAttributes. Image/video generation models are supported.
Authorizations
Workspace-scoped API key. Available scopes:
read:products: List and read products, assets, vendors, sources, and merch.write:products: Create and update products and their attribute values.delete:products: Delete products.read:attributes: List and read attribute definitions.write:attributes: Create, update, and delete attribute definitions.write:attribute_values: Set attribute values on entities.read:views: List and read saved grid views.write:views: Create and update grid views.read:vendors: List and read vendor records.write:vendors: Create and update vendor records.read:categories: List and read categories.write:categories: Create and update categories.read:channels: Read the available channel catalog.read:completeness: Check per-channel completeness for entities.read:history: Read entity history and the account change feed.read:jobs: Poll asynchronous job status.data:import: Start import operations.data:export: Start export operations.
Body
Attribute definition config. On create, name/entityType/dataType/aiGenerated are required; on update, only entityType is required and any field may be supplied.
single_line_text_field, multi_line_text_field, rich_text_field, number, boolean, date, url, json, single_select_list, multi_select_list, image, video, formula, status, progress, rank Generation prompt; reference other attributes with {{key}}.
Comma-separated allowed values for select/dictionary attributes.
AI text-generation tools. includeWebSearch = live web research; includeDataSources = scraped sites/CSVs.
includeDataSources, includeImages, includeWebSearch, includeProductAttributes gpt-image-1, nano-banana Square, Landscape, Portrait veo3.1 Response
The created attribute definition.