New query parameter

Going forward, you can use the content-type query parameter to filter your media files. The new parameter is available under the following endpoints:

  • /files
  • /public/files
  • /bulk/variants

The query parameter content-type filters your files by the content type that was specified during the upload of media files, so if you uploaded an image as a binary/octet-stream content type, you are not able to retrieve it by querying for the image/jpeg content type.

This functionality is useful to get or delete a particular type of files, for example, all invoices that you know are stored as PDFs. The useful example is to filter files by content-type image/jpeg, image/png ant image/gif. This way you receive only those files which are supported for transformation. To learn more, see Filter media by content type section of the Media service documentation.

  • Send feedback

    If you find any information that is unclear or incorrect, please let us know so that we can improve the Dev Portal content.

  • Get Help

    Use our private help channel. Receive updates over email and contact our specialists directly.

  • hybris Experts

    If you need more information about this topic, visit hybris Experts to post your own question and interact with our community and experts.