Create an attribute definition
Create an attribute, including full AI-generation config (snake_case body). For an AI-generated attribute set ai_generated: true + custom_instructions (reference other attributes with {{key}}), and pick selected_tools: includeWebSearch (live web research), includeDataSources (scraped sites/CSVs), includeImages (vision), includeProductAttributes. Image/video generation models are supported. inheritance_mode shares a value across a variant family (products only).
Scope: write:attributes.
post/attributes
Request
- Base URLhttps://www.merchkit.com/api/v1
- AuthHTTP bearer
Request body
Response
The created attribute definition (full config).
Example response
{
"data": {
"id": "a3d81c22-5f6e-4b09-8d17-c40a92e5b613",
"name": "Material",
"key": "material",
"data_type": "single_select_list",
"tool": "manual",
"entity_type": "product",
"channel": null,
"is_primary": false,
"custom_instructions": null,
"acceptable_values": "White Oak,Smoked Oak,Walnut",
"default_value": null,
"constraints": {},
"source_attributes": null
}
}Changes
No recorded changes to this operation across all 1 revision of this API.