media API updated and finalised