# Create a new media file **POST /api/rest/v1/retailer/media-files** This endpoint allows you to create a new media file and associate it to an attribute value of a given retailer product. ## Servers - https://content.winkelstraat.nl: https://content.winkelstraat.nl () ## Parameters ### Headers - **Content-type** (string) Equal to 'multipart/form-data', no other value allowed ### Body: application/json (object) - **parent** (string) The parent retailer product to which the media file is associated. - **attribute** (string) The image attribute to which the media file is associated. - **file** (string(binary)) The binaries of the image file. - **url** (string) The url of the image file. ## Responses ### 201 Created #### Headers - **Location** (string) URI of the created resource ### 400 Bad request #### Body: application/json (object) - **code** (integer) HTTP status code - **message** (string) Message explaining the error ### 401 Authentication required #### Body: application/json (object) - **code** (integer) HTTP status code - **message** (string) Message explaining the error ### 403 Access forbidden #### Body: application/json (object) - **code** (integer) HTTP status code - **message** (string) Message explaining the error ### 415 Unsupported Media type #### Body: application/json (object) - **code** (integer) HTTP status code - **message** (string) Message explaining the error ### 422 Unprocessable entity #### Body: application/json (object) - **code** (integer) HTTP status code - **message** (string) Message explaining the error [Powered by Bump.sh](https://bump.sh)