---
title: "Update/create a channel"
method: PATCH
path: "/api/rest/v1/channels/{code}"
tags: ["Channel"]
---

# Update/create a channel

`PATCH /api/rest/v1/channels/{code}`

This endpoint allows you to update a given channel. Know more about <a href="/documentation/update.html#update-behavior">Update behavior</a>. Note that if no channel exists for the given code, it creates it.

## Path parameters

- `code` string, required

## 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 `201`

Created

## Other responses

- `204` — No content to return
- `400` — Bad request
- `401` — Authentication required
- `403` — Access forbidden
- `415` — Unsupported Media type
- `422` — Unprocessable entity

---

[API](https://skmtc.net/akeneo/apis/akeneo-pim-rest-api.md) · [All operations](https://skmtc.net/akeneo/apis/akeneo-pim-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeneo/akeneo-pim-rest-api/versions/d8bda9b93b59/schema)
