Menu
Post Product Model
Create a new product model
POST
/api/rest/v1/product-modelsUse it in a workflow
- Add a step and choose the Akeneo connector.
- Pick the Post Product Model action (under Product model).
- Fill in the fields below, then reference the result from later steps as
{{postProductModel.response.data}}.
Request
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"code": "amarisshoe",
"family": "shoes",
"family_variant": "shoes_Variant",
"parent": "clothes",
"categories": [
"clothing",
"shoes"
],
"values": {
"name": [
{
"locale": "en_US",
"data": "Biker jacket"
}
],
"description": [
{
"locale": "en_US",
"scope": "ecommerce",
"data": "Biker jacket for women"
}
]
},
"associations": {
"X_SELL": {
"groups": [],
"products": [
"product_1",
"product_2"
],
"product_models": [
"product_model_1"
]
},
"UPSELL": {
"groups": [
"group_1"
],
"products": [],
"product_models": []
}
},
"quantified_associations": {
"PACK": {
"products": [
{
"identifier": "product_1",
"quantity": 2
},
{
"identifier": "product_2",
"quantity": 3
}
],
"product_models": [
{
"identifier": "product_model_1",
"quantity": 1
}
]
}
}
}
Response
Returns 201 with a any. Read it in later steps with {{postProductModel.response.data.<field>}}.
Need more? See the Akeneo guide for connection setup and behaviour shared by every action.
Was this page helpful?