younifyd
Menu

Post Product Uuid

Create a new product

POST/api/rest/v1/products-uuid

Use it in a workflow

  1. Add a step and choose the Akeneo connector.
  2. Pick the Post Product Uuid action (under Product [uuid]).
  3. Fill in the fields below, then reference the result from later steps as {{postProductUuid.response.data}}.

Request

Query parameters

create_missing_optionsstring

When present in the query string (regardless of value), automatically creates missing attribute options during product/product model creation or update. This only works for simple select and multi select attributes that have the `enable_option_creation_during_import` property set to `true` (configurable via the Attribute API).

Request body

Enter the body as JSON in the step's Body field.

uuidstring

Product UUID

enabledboolean

Whether the product is enabled

Default true

familystring | null

[Family](https://api.akeneo.com/api-reference.html#Family) code from which the product inherits its attributes and attributes requirements. In the case of variant product, the given family should be the same as the product model family.

Default "null only in the case of a non variant product"

categoriesarray<string>

Codes of the [categories](https://api.akeneo.com/api-reference.html#Category) in which the product is classified

Default []

groupsarray<string>

Codes of the groups to which the product belong

Default []

parentstring | null

Code of the parent [product model](https://api.akeneo.com/api-reference.html#Productmodel) when the product is a variant

Default null

valuesobject

Product attributes values. Each key is an attribute code, and the value is an array of value objects for that attribute. See [documentation](https://api.akeneo.com/concepts/products.html#focus-on-the-product-values) for details.

associationsobject

Several associations related to groups, product models and/or other products, grouped by association types

quantified_associationsobject

Several quantified associations related to products and/or product models, grouped by quantified association types

json
{
  "uuid": "fc24e6c3-933c-4a93-8a81-e5c703d134d5",
  "enabled": true,
  "family": "smartphone",
  "categories": [
    "smartphones",
    "electronics"
  ],
  "groups": [
    "summer_collection",
    "sale"
  ],
  "parent": "my_super_battery",
  "values": {
    "description": [
      {
        "data": "T-shirt long sleeves Winter special, 100% wool",
        "locale": null,
        "scope": null
      }
    ]
  },
  "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": [
        {
          "uuid": "fc24e6c3-933c-4a93-8a81-e5c703d134d5",
          "quantity": 2
        },
        {
          "uuid": "aaf518b2-f91e-40f1-a53a-78ce5e81a6f9",
          "quantity": 3
        }
      ],
      "product_models": [
        {
          "identifier": "product_model_1",
          "quantity": 1
        }
      ]
    }
  }
}

Response

Returns 201 with a any. Read it in later steps with {{postProductUuid.response.data.<field>}}.

Need more? See the Akeneo guide for connection setup and behaviour shared by every action.