- Authentication
- Overview
- PAM asset category
- Asset family
- Asset
- Asset attribute
- Asset attribute option
- Asset media file
- PAM asset tag
- PAM asset
- PAM asset reference file
- PAM asset variation file
- Association type
- Attribute group
- Attribute
- Attribute option
- Category
- Channel
- Currency
- Family
- Family variant
- Locale
- Measure family
- Measurement family
- Product media file
- Product model
- Product
- Published product
- Reference entity
- Reference entity media file
- Reference entity attribute
- Reference entity attribute option
- Reference entity record
- System
- Catalogs
- Catalog products
- Product [identifier]
- Product [uuid]
Update/create a channel
PATCH
/api/rest/v1/channels/{code}
Channel
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH '/api/rest/v1/channels/' \
--header 'Content-Type: application/json' \
--data-raw '{
"category_tree": "master",
"code": "ecommerce",
"conversion_units": {
"weight": "KILOGRAM"
},
"currencies": [
"USD",
"EUR"
],
"labels": {
"de_DE": "Ecommerce",
"en_US": "Ecommerce",
"fr_FR": "Ecommerce"
},
"locales": [
"de_DE",
"en_US",
"fr_FR"
]
}'
Response Response Example
201 - Example 1
{}
Request
Path Params
code
stringÂ
required
Body Params application/json
category_tree
stringÂ
required
code
stringÂ
required
conversion_units
objectÂ
optional
attributeCode
stringÂ
optional
attributeCode
when exporting via the channelcurrencies
array[string]
required
labels
objectÂ
optional
Default:
{}
localeCode
stringÂ
optional
localeCode
locales
array[string]
required
Examples
Responses
🟢201Created
application/json
Body
object {0}
🟢204No content to return
🟠400Bad request
🟠401Authentication required
🟠403Access forbidden
🟠415Unsupported Media type
🟠422Unprocessable entity
Modified at 2023-08-15 05:53:55