Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEVDOCS-5966: [update] correct contentType #507

Merged
merged 16 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions reference/catalog/brands_catalog.v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1320,8 +1320,6 @@ paths:

Only one image at a time can be created. To update a brand image, use the [Update a brand](/docs/rest-catalog/brands#update-a-brand) endpoint and an `image_url`.
operationId: createBrandImage
parameters:
- $ref: '#/components/parameters/ContentType'
requestBody:
content:
multipart/form-data:
Expand Down
2 changes: 0 additions & 2 deletions reference/catalog/categories_catalog.v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1297,8 +1297,6 @@ paths:
Limit image size to `8MB`.
To update a *Category Image*, use the [Update categories](/docs/rest-catalog/category-trees/categories#update-categories) endpoint and an `image_url`.
operationId: createCategoryImage
parameters:
- $ref: '#/components/parameters/ContentType'
requestBody:
content:
multipart/form-data:
Expand Down
2 changes: 0 additions & 2 deletions reference/catalog/product-modifiers_catalog.v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1623,8 +1623,6 @@ paths:
**Required Fields**
- image_file: Form posts are the only accepted upload option.
operationId: createProductModifierImage
parameters:
- $ref: '#/components/parameters/ContentType'
requestBody:
content:
multipart/form-data:
Expand Down
2 changes: 0 additions & 2 deletions reference/catalog/product-variants_catalog.v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -886,8 +886,6 @@ paths:
- image_file: Form posts. Files larger than 1 MB are not accepted
- image_url: Any publicly available URL
operationId: createProductVariantImage
parameters:
- $ref: '#/components/parameters/ContentType'
requestBody:
content:
application/json:
Expand Down
4 changes: 1 addition & 3 deletions reference/catalog/products_catalog.v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1277,13 +1277,11 @@ paths:

**Usage Notes**
- `image_url` - `255` character limit
- For file uploads, use the `multipart/form-data` media type. See [Adding product images](/docs/store-operations/catalog#adding-product-images) for more information.
- `Content-Type` - For `image_file`, use the `multipart/form-data` media type. For `image_url`, use the `application/json` type. See [Adding product images](/docs/store-operations/catalog#adding-product-images) for more information.
- You can create only one image at a time. A product can have up to 1000 images.
- Supported image file types are BMP, GIF, JPEG, PNG, WBMP, XBM, and WEBP.
- Each image file or image uploaded by URL can be up to 8 MB.
operationId: createProductImage
parameters:
- $ref: '#/components/parameters/ContentType'
requestBody:
content:
application/json:
Expand Down
Loading