younifyd
Menu

Post Association Type

Create a new association type

POST/api/rest/v1/association-types

Use it in a workflow

  1. Add a step and choose the Akeneo connector.
  2. Pick the Post Association Type action (under Association type).
  3. Fill in the fields below, then reference the result from later steps as {{postAssociationType.response.data}}.

Request

Request body

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

codestringrequired

Association type code

labelsobject

Association type labels for each locale

Default {}

is_quantifiedboolean

When true, the association is a quantified association

Default false

is_two_wayboolean

When true, the association is a bidirectional association

Default false

json
{
  "code": "upsell",
  "labels": {
    "en_US": "Upsell",
    "fr_FR": "Vente incitative"
  },
  "is_quantified": true,
  "is_two_way": false
}

Response

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

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