POST /v4/media/upload
(Last updated: 03/10/2024)
Access to this feature is restricted and depends on your subscription type.
This endpoint allows for uploading media files.
Before starting to upload files through the API please read the media uploading instructions.
Request
Method
POST
URL
https://api.medipim.fr/v4/media/upload
Headers
Body
-
file
:name
: Name of the media file (string, required)content
: Base64 encoded content of the file (string, required)
products[]
: List of Medipim product IDs (string[], optional)
Response
Body
-
mediaItem
:id
, ... : media information (same as media query results)
Examples
You can upload images to Medipim through the API.
What do you need?
- Name (Correct version with shortcodes)
- Content: Base64 encoded content of the file
- Products: The different products the image should be linked to (Medipim ID)