create media api resource