[api] fix key handling of product_media