Skip to content

Commit 9092589

Browse files
authored
PIM-11972: Fix add_categories and remove_categories (#1015)
1 parent 94b61b8 commit 9092589

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

content/swagger/akeneo-web-api.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

content/swagger/resources/product_models/definitions/product_model_with_intents.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ properties:
2929
items:
3030
type: string
3131
default: []
32-
add-categories:
32+
add_categories:
3333
type: array
3434
description: Codes of the <a href='api-reference.html#Category'>categories</a> to add to the product. Existing categories will be preserved. Available in SaaS only.
3535
x-validation-rules: Each string of the array is equal to an existing category code. Cannot be used with the `categories` key.
3636
items:
3737
type: string
3838
default: []
3939
x-from-version: 'SaaS'
40-
remove-categories:
40+
remove_categories:
4141
type: array
4242
description: Codes of the <a href='api-reference.html#Category'>categories</a> to remove from the product. Other categories will be preserved. Available in SaaS only.
4343
x-validation-rules: Each string of the array is equal to an existing category code. Cannot be used with the `categories` key.

content/swagger/resources/product_models/routes/product_models.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ patch:
326326
- "7.0"
327327
- "SaaS"
328328
description: This endpoint allows you to update and/or create several product models at once. Learn more about <a href="/documentation/update.html#update-behavior">Update behavior</a>. Note that if no product models exists for the given code, it creates it. In the Enterprise Edition, since the v2.3, permissions based on your user groups are applied to the product models you try to update. It may result in the creation of drafts if you only have edit rights through the product model's categories.
329-
x-body-by-line: Contains several lines, each line is a product model in JSON standard format. Modifications to existing product models can be specified using additional keys such as `add-categories` and `remove-categories`.
329+
x-body-by-line: Contains several lines, each line is a product model in JSON standard format. Modifications to existing product models can be specified using additional keys such as `add_categories` and `remove_categories`.
330330
parameters:
331331
- name: body
332332
in: body

content/swagger/resources/products/definitions/product_with_intents.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ properties:
2424
items:
2525
type: string
2626
default: []
27-
add-categories:
27+
add_categories:
2828
type: array
2929
description: Codes of the <a href='api-reference.html#Category'>categories</a> to add to the product. Existing categories will be preserved. Available in SaaS only.
3030
x-validation-rules: Each string of the array is equal to an existing category code. Cannot be used with the `categories` key.
3131
items:
3232
type: string
3333
default: []
3434
x-from-version: 'SaaS'
35-
remove-categories:
35+
remove_categories:
3636
type: array
3737
description: Codes of the <a href='api-reference.html#Category'>categories</a> to remove from the product. Other categories will be preserved. Available in SaaS only.
3838
x-validation-rules: Each string of the array is equal to an existing category code. Cannot be used with the `categories` key.

content/swagger/resources/products/routes/products.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ patch:
131131
- "7.0"
132132
- "SaaS"
133133
description: This endpoint allows you to update and/or create several products at once. Learn more about <a href="/documentation/update.html#update-behavior">Update behavior</a>. Note that if no product exists for the given identifier, it creates it. In the Enterprise Edition, since the v2.0, permissions based on your user groups are applied to the products you try to update. It may result in the creation of drafts if you only have edit rights through the product's categories.
134-
x-body-by-line: Contains several lines, each line is a product model in JSON standard format. Modifications to existing product models can be specified using additional keys such as `add-categories` and `remove-categories`.
134+
x-body-by-line: Contains several lines, each line is a product model in JSON standard format. Modifications to existing product models can be specified using additional keys such as `add_categories` and `remove_categories`.
135135
parameters:
136136
- name: body
137137
in: body

content/swagger/resources/products_uuid/routes/products_uuid.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ patch:
102102
- "7.0"
103103
- "SaaS"
104104
description: This endpoint allows you to update and/or create several products at once. Learn more about <a href="/documentation/update.html#update-behavior">Update behavior</a>. Note that if no product exists for the given uuid, it creates it. In the Enterprise Edition, permissions based on your user groups are applied to the products you try to update. It may result in the creation of drafts if you only have edit rights through the product's categories.
105-
x-body-by-line: Contains several lines, each line is a product in JSON standard format. Modifications to existing products can be specified using additional keys such as `add-categories` and `remove-categories`.
105+
x-body-by-line: Contains several lines, each line is a product in JSON standard format. Modifications to existing products can be specified using additional keys such as `add_categories` and `remove_categories`.
106106
parameters:
107107
- name: body
108108
in: body

0 commit comments

Comments
 (0)