v1

latestSwagger 2.02026-07-13137761.0 MB
Association type

Update/create several association types

This endpoint allows you to update and/or create several association types at once.

patch/api/rest/v1/association-types

Request body

codestring required

Association type code

is_quantifiedboolean

When true, the association is a quantified association (Only available in the PIM Serenity version.)

is_two_wayboolean

When true, the association is a two-way association (Only available in the PIM Serenity version.)

Example request

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

Response

OK

lineinteger

Line number

identifierstring

Resource identifier, only filled when the resource is a product

codestring

Resource code, only filled when the resource is not a product

status_codeinteger

HTTP status code, see <a href="/documentation/responses.html#client-errors">Client errors</a> to understand the meaning of each code

messagestring

Message explaining the error