v1

latestSwagger 2.02026-07-13137761.0 MB
Channel

Update/create several channels

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

patch/api/rest/v1/channels

Request body

codestring required

Channel code

localesstring[] required

Codes of activated locales for the channel

currenciesstring[] required

Codes of activated currencies for the channel

category_treestring required

Code of the category tree linked to the channel

Example request

{
  "code": "ecommerce",
  "currencies": [
    "USD",
    "EUR"
  ],
  "locales": [
    "de_DE",
    "en_US",
    "fr_FR"
  ],
  "category_tree": "master",
  "conversion_units": {
    "weight": "KILOGRAM"
  },
  "labels": {
    "en_US": "Ecommerce",
    "de_DE": "Ecommerce",
    "fr_FR": "Ecommerce"
  }
}

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