---
title: "Update/create several channels"
method: PATCH
path: "/api/rest/v1/channels"
tags: ["Channel"]
---

# Update/create several channels

`PATCH /api/rest/v1/channels`

## Request

- Base URL: `http://demo.akeneo.com`
- URL: `http://demo.akeneo.com/api/rest/v1/channels`
- Auth: none declared

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

## Request body

- object
  - `code` string, required: Channel code
  - `locales` string[], required: Codes of activated locales for the channel
  - `currencies` string[], required: Codes of activated currencies for the channel
  - `category_tree` string, required: Code of the category tree linked to the channel
  - `conversion_units` object: Units to which the given metric attributes should be converted when exporting products
    - `attributeCode` string: Conversion unit code used to convert the values of the attribute `attributeCode` when exporting via the channel
  - `labels` object: Channel labels for each locale
    - `localeCode` string: Channel label for the locale `localeCode`

## Response `200`

OK

- object
  - `line` integer: Line number
  - `identifier` string: Resource identifier, only filled when the resource is a product
  - `code` string: Resource code, only filled when the resource is not a product
  - `status_code` integer: HTTP status code, see <a href="/documentation/responses.html#client-errors">Client errors</a> to understand the meaning of each code
  - `message` string: Message explaining the error

## Other responses

- `401`: Authentication required
- `403`: Access forbidden
- `413`: Request Entity Too Large
- `415`: Unsupported Media type

---

[API](https://skmtc.dev/akeneo/apis/akeneo-pim-rest-api.md) - [All operations](https://skmtc.dev/akeneo/apis/akeneo-pim-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/akeneo/apis/akeneo-pim-rest-api/revisions/d8bda9b93b59?raw)
