Menu
Patch Channel By Code
Update/create a channel
PATCH
/api/rest/v1/channels/{code}Use it in a workflow
- Add a step and choose the Akeneo connector.
- Pick the Patch Channel By Code action (under Channel).
- Fill in the fields below, then reference the result from later steps as
{{patchChannelByCode.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"code": "ecommerce",
"locales": [
"de_DE",
"en_US",
"fr_FR"
],
"currencies": [
"USD",
"EUR"
],
"category_tree": "master",
"conversion_units": {
"weight": "KILOGRAM",
"pim_config_family_rules": {
"Power": {
"en_US": "KILOWATT",
"fr_FR": {
"unit": "WATT",
"decimal_places_strategy": "round",
"decimal_places": 2
}
}
},
"pim_config_attribute_locale_rules": {
"weight": {
"en_US": "KILOGRAM"
}
}
},
"labels": {
"en_US": "Ecommerce",
"de_DE": "Ecommerce",
"fr_FR": "Ecommerce"
}
}
Response
Returns 201 with a any. Read it in later steps with {{patchChannelByCode.response.data.<field>}}.
Need more? See the Akeneo guide for connection setup and behaviour shared by every action.
Was this page helpful?