Category

Create a category media file

This endpoint allows you to create a new media file and associate it to an attribute value of a given enriched category.

post/api/rest/v1/category-media-files

Request

  • Base URL
    http://demo.akeneo.com
  • Auth
    none declared. Required headers: Content-type

Headers

Content-typestring required

Equal to 'multipart/form-data'.

Request body

categorystring

The category to which the media file will be associated. It is a JSON string that follows this format '{"code":"category code", "attribute_code":"attribute code", "channel":"channel code or null", "locale":"locale code or null"}'.

filestring binary required

The binary of the file.

Response

Created

Changes

No recorded changes to this operation across all 70 revisions of this API.